新手问题 ruby 汉化问题

xiaoxiao · 2013年06月15日 · 最后由 xiaoxiao 回复于 2013年06月15日 · 2186 次阅读

我在 locales 中添加了 zh.yml 文件内容如下 zh: add: "添加" add_all: "添加全部" 然后在 application.rb 中添加了 config.i18n.default_locale = :zh 在 view 中使用<%= t(:add) %> 为什么会出现错误 can not load translations from C:/Users/yang/Desktop/windowextapp/config/locales/zh.yml, expected it to return a hash, but does not 求助,我的 rails 是 3.2.13 ruby 1.9.3

需要 登录 后方可回复, 如果你还没有账号请 注册新账号