我尝试使用区域设置显示西班牙语文本,但它一直使用英语作为默认设置。我的代码:
# config/application.rb
config.i18n.default_locale = :es
# config/locales/es.yml
es:
sections:
fashion: Moda
# haml template
= t("sections.fashion")在视图中生成以下html:<span class="translation_missing" title="translation missing: en.sections.fashion">Fashion</span>。我是不是遗漏了什么?
提前感谢
发布于 2013-06-14 02:57:37
https://stackoverflow.com/questions/15073107
复制相似问题