Please sign in to comment.
Add flexibility to exception handling (deprectates I18n.default_excep…
…tion_handler). Add an I18n::ExceptionHandler class to allow the inclusion of modules for more flexiblity in handling exceptions. Also, include the ability to html format the message of MissingTranslationData similar to what ActionPack's view translation helper does (so it can be removed or bypassed over there, giving more control to users). Also, add the ability to pass an :exception_handler option to force usage of an exception_handler per request. Also, deprecate I18n.default_exception_handler. Please use the class I18n::ExceptionHandler instead (an instance of which is set to I18n.exception_handler by default)
- Loading branch information...
Showing with 82 additions and 41 deletions.