aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/translation_helper_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Move template tests from actionpack to actionviewPiotr Sarnacki2013-06-201-138/+0
|
* Fixed typo new_defautls -> new_defaults.Philip Arndt2012-05-231-3/+13
| | | | | * Added tests for 'else' case in ActionView::Helpers::TranslationHelper#wrap_translate_defaults * Also updated the testing syntax of translation.html_safe? asserts to provide better output upon failure.
* wrap translate defaults to use translate helper features, closes #1102Sergey Nartimov2012-04-301-1/+24
|
* Don't html-escape the :count option to translate if it's a Numeric. Fixes #3685.Jon Leighton2011-11-191-1/+11
|
* _html translation should escape interpolated argumentslest2011-11-171-0/+6
|
* Make MissingTranslation exception handler respect :rescue_formatAndrew White2011-06-151-0/+8
|
* Allow back passing :rescue_format => nil and test addedSantiago Pastorino2010-12-041-0/+5
|
* Make TranslationHelper#translate use the :rescue_format option in I18n 0.5.0Sven Fuchs2010-12-041-27/+40
| | | | | | 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: José Valim <jose.valim@gmail.com>
* Clean up unused methods from AV::Base and pass in the template object on ↵José Valim2010-10-101-2/+2
| | | | rendering.
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-4/+4
| | | | 's/[ \t]*$//' -i {} \;)
* i18n: t() handles single keys returning an Array, alsoJeremy Kemper2010-05-241-0/+10
|
* translate method doesn't support arrays anymore and is optimized to be used ↵Santiago Pastorino2010-05-241-14/+2
| | | | | | with strings or symbols Signed-off-by: José Valim <jose.valim@gmail.com>
* Revert "translation method for arrays on TranslationHelper module returns an ↵Santiago Pastorino2010-05-241-15/+14
| | | | | | | | array where values for keys of the form (.|_)html keys are html_safe" This reverts commit 05c95b5c5815c0b3ae55fda7a897922b7f3ec2c7. Signed-off-by: José Valim <jose.valim@gmail.com>
* translation method for arrays on TranslationHelper module returns an array ↵Santiago Pastorino2010-05-241-14/+15
| | | | | | | | where values for keys of the form (.|_)html keys are html_safe [#4675] Signed-off-by: José Valim <jose.valim@gmail.com>
* Changed translate helper so that it doesn’t mark every translation as safe ↵Craig Davey2010-04-131-1/+16
| | | | | | HTML. Only keys with a "_html" suffix and keys named "html" are considered to be safe HTML. All other translations are left untouched. Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* scope_key_by_partial fix for Ruby 1.9 when there's virtual_path [#4202 ↵Santiago Pastorino2010-03-161-0/+6
| | | | | | state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* translation method of TranslationHelper module returns always SafeBuffer ↵Santiago Pastorino2010-03-161-1/+8
| | | | | | [#4194 status:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Revert "i18n translate with arrays issue solved"Yehuda Katz2010-02-191-5/+0
| | | | This reverts commit e7055e5b084f5e29e9cf8dab8d56943da65ccb43.
* i18n translate with arrays issue solvedSantiago Pastorino2010-02-191-0/+5
|
* i18n translate with arrays issue solvedSantiago Pastorino2010-02-181-0/+5
| | | | Signed-off-by: Yehuda Katz <yehudakatz@YK.local>
* Fix t('.helper').José Valim2010-01-261-5/+5
|
* Fix testsDavid Heinemeier Hansson2009-12-251-2/+2
|
* Added partial scoping to TranslationHelper#translate, so if you call ↵David Heinemeier Hansson2009-02-101-0/+6
| | | | translate('.foo') from the people/index.html.erb template, you'll actually be calling I18n.translate(people.index.foo) [DHH]
* Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha.Jeremy Kemper2009-02-031-19/+17
|
* use :en as a default locale (in favor of :en-US)Sven Fuchs2008-11-181-3/+3
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Proper API for reloading translationsDavid Heinemeier Hansson2008-10-291-2/+2
|
* fixing another timezone dependent testSven Fuchs2008-07-161-25/+5
|
* Added localize helper methodLuca Guidi2008-07-081-0/+6
|
* add a translation helperSven Fuchs2008-07-061-0/+42