diff options
author | Luca Guidi <guidi.luca@gmail.com> | 2008-07-08 12:37:49 +0200 |
---|---|---|
committer | Luca Guidi <guidi.luca@gmail.com> | 2008-07-08 12:37:49 +0200 |
commit | cf5d6ab9a849d19ac683180cc7b603ca94b13ed7 (patch) | |
tree | 2f8f679e37c1d6725040b311af2768dfda34b228 /actionpack/lib/action_view/helpers | |
parent | 2949918b4cea26435d1f0a076fe884c8113b40fa (diff) | |
download | rails-cf5d6ab9a849d19ac683180cc7b603ca94b13ed7.tar.gz rails-cf5d6ab9a849d19ac683180cc7b603ca94b13ed7.tar.bz2 rails-cf5d6ab9a849d19ac683180cc7b603ca94b13ed7.zip |
Added localize helper method
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r-- | actionpack/lib/action_view/helpers/translation_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/translation_helper.rb b/actionpack/lib/action_view/helpers/translation_helper.rb index c13c2dfc04..e1010ccf5f 100644 --- a/actionpack/lib/action_view/helpers/translation_helper.rb +++ b/actionpack/lib/action_view/helpers/translation_helper.rb @@ -11,6 +11,10 @@ module ActionView keys = I18n.send :normalize_translation_keys, e.locale, e.key, e.options[:scope] content_tag('span', keys.join(', '), :class => 'translation_missing') end + + def localize(*args) + I18n.l *args + end end end end
\ No newline at end of file |