X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6c2093b29d74b145b85e61c4fff09b5f13afa0e5..f1c6a87aa137c11d0aff5a4b0e563ac2c2a8f82d:/config/initializers/i18n.rb diff --git a/config/initializers/i18n.rb b/config/initializers/i18n.rb index b4399a9f8..6e0930017 100644 --- a/config/initializers/i18n.rb +++ b/config/initializers/i18n.rb @@ -3,10 +3,10 @@ module I18n module PluralizationFallback def pluralize(locale, entry, count) super - rescue InvalidPluralizationData => ex - raise ex unless ex.entry.key?(:other) + rescue InvalidPluralizationData => e + raise e unless e.entry.key?(:other) - ex.entry[:other] + e.entry[:other] end end end