diff --git a/lib/i18n/backend/translate.rb b/lib/i18n/backend/translate.rb index eb825aa..a520156 100644 --- a/lib/i18n/backend/translate.rb +++ b/lib/i18n/backend/translate.rb @@ -28,7 +28,7 @@ def translate(locale, key, options = {}) return nil if tr.to_s.empty? - values = options.except(*I18n::Backend::Base::RESERVED_KEYS) + values = options.except(*RESERVED_KEYS) tr = resolve(locale, key, tr, options) tr = interpolate(locale, tr, values) if values diff --git a/test/tc_backend_properties.rb b/test/tc_backend_properties.rb index c9b9309..29e636d 100644 --- a/test/tc_backend_properties.rb +++ b/test/tc_backend_properties.rb @@ -26,7 +26,7 @@ def test_1020_escaped_operators_in_key end def test_1030_key_without_assign_and_value - assert_equal( "translation missing: cze, empty_key", I18n.t("empty_key") ) + assert_equal( "translation missing: cze.empty_key", I18n.t("empty_key") ) end end