Displaying 1 result from an estimated 1 matches for "normalize_key".
Did you mean:
normalize_keys
2010 Oct 01
0
Questions about translation method
...when there is no translation found. I''ve follow the rails guide about
I18n API section 6.2 and made a custom exception handler in an
initializer file.
module I18n
def custom_handler(exception, key, locale, options)
case exception
when I18n::MissingTranslationData
I18n.normalize_keys(locale, key, options[:scope]).join(''.'')
else
raise exception
end
end
end
I18n.exception_handler = :custom_handler
But this has no effect. I think I''ve found the code responsible for
this in actionpack-3.0.0/lib/action_view/helpers/translation_helper...