This project is archived and is in readonly mode.

Changeset [1452571dee049ff4fa9e8813484e6d73cc2c9ffe] 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...

Committed by Sven Fuchs

  • 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

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>