This project is archived and is in readonly mode.
Changeset [1452571dee049ff4fa9e8813484e6d73cc2c9ffe] by Sven Fuchs
Revision 1452571dee049ff4fa9e8813484e6d73cc2c9ffe,
committed by Sven Fuchs
· February 28th, 2011 @ 12:30 PM
Make TranslationHelper#translate use the :rescue_format option in I18n 0.5.0 (backports 896e25e)
Don't catch exceptions here. Instead only declare that we want exceptions to be rescued as :html, but also let users configure reactions to exceptions in I18n.
Signed-off-by: Santiago Pastorino
santiago@wyeworks.com
https://github.com/rails/rails/commit/1452571dee049ff4fa9e8813484e6...
7 changed files
-
A
actionpack/test/fixtures/translations/templates/array.erb -
A
actionpack/test/fixtures/translations/templates/found.erb -
A
actionpack/test/fixtures/translations/templates/missing.erb -
R
actionpack/test/fixtures/test/scoped_translation.erb -
R
actionpack/test/fixtures/test/translation.erb -
M
actionpack/lib/action_view/helpers/translation_helper.rb -
M
actionpack/test/template/translation_helper_test.rb