提交 90a9637d 编写于 作者: S Sven Fuchs

I18n: add aliases #t and #l to TranslationHelper#translate and #localize

上级 23fb26a0
......@@ -11,10 +11,12 @@ def translate(*args)
keys = I18n.send :normalize_translation_keys, e.locale, e.key, e.options[:scope]
content_tag('span', keys.join(', '), :class => 'translation_missing')
end
alias :t :translate
def localize(*args)
I18n.localize *args
end
alias :l :localize
end
end
end
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册