aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/translation_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* translation method of TranslationHelper module returns always SafeBuffer ↵Santiago Pastorino2010-03-161-1/+1
| | | | | | [#4194 status:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Change array entries to safe doesn't worth then the array is joined as a ↵Santiago Pastorino2010-03-161-1/+1
| | | | | | string losing the safe property of his entries [#4134 status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Bump i18n for new public I18n.normalize_keysJeremy Kemper2010-02-251-1/+1
|
* ruby 1.9 array.to_s returns a string representing an escaped arraySantiago Pastorino2010-02-181-1/+1
| | | | Signed-off-by: Yehuda Katz <yehudakatz@YK.local>
* i18n translate with arrays issue solvedSantiago Pastorino2010-02-181-2/+3
| | | | Signed-off-by: Yehuda Katz <yehudakatz@YK.local>
* For performance reasons, you can no longer call html_safe! on Strings. ↵Yehuda Katz2010-01-311-1/+1
| | | | | | | | | | | | Instead, all Strings are always not html_safe?. Instead, you can get a SafeBuffer from a String by calling #html_safe, which will SafeBuffer.new(self). * Additionally, instead of doing concat("</form>".html_safe), you can do safe_concat("</form>"), which will skip both the flag set, and the flag check. * For the first pass, I converted virtually all #html_safe!s to #html_safe, and the tests pass. A further optimization would be to try to use #safe_concat as much as possible, reducing the performance impact if we know up front that a String is safe.
* Fix t('.helper').José Valim2010-01-261-2/+6
|
* Translated strings in the view are assumed html_safe (Closes #3401)David Heinemeier Hansson2009-12-241-1/+1
|
* Fix some Ruby warnings: `*' interpreted as argument prefixBryan Helmkamp2009-11-091-1/+1
|
* Added partial scoping to TranslationHelper#translate, so if you call ↵David Heinemeier Hansson2009-02-101-1/+19
| | | | translate('.foo') from the people/index.html.erb template, you'll actually be calling I18n.translate(people.index.foo) [DHH]
* A little less hokus pokusDavid Heinemeier Hansson2008-10-281-5/+4
|
* I18n: add aliases #t and #l to TranslationHelper#translate and #localizeSven Fuchs2008-08-251-0/+2
|
* fixing another timezone dependent testSven Fuchs2008-07-161-1/+1
|
* Added localize helper methodLuca Guidi2008-07-081-0/+4
|
* align with changes in i18nSven Fuchs2008-07-061-3/+3
|
* add a translation helperSven Fuchs2008-07-061-0/+16