V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
JiaFeiX
V2EX  ›  Ruby on Rails

求助 i18n 国际化的一个问题 expected it to return a hash, but does not

  •  
  •   JiaFeiX · 2012-09-04 22:12:02 +08:00 · 4303 次点击
    这是一个创建于 4222 天前的主题,其中的信息可能已经有所发展或是发生改变。
    安装有 如下的 Gem:

    rails_admin

    devise

    在 config/locales 下有

    rails_admin.zh-CN.yml

    devise.zh-CN.yml

    在 application.rb 设置了

    config.i18n.default_locale = "zh-CN"

    但程序打开就是会出现:

    Missing translation 的提示

    然后,试图去修改 config/locales 任何一点改动,都会报错:

    can not load translations from **** /config/locales/rails_admin.zh-CN.yml, expected it to return a hash, but does not


    求大家指点,我指向想使用 中文化 呀....
    1 条回复    1970-01-01 08:00:00 +08:00
    icelatte
        1
    icelatte  
       2012-09-19 11:45:56 +08:00
    zh-CN.yml文件没有
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3976 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 10:21 · PVG 18:21 · LAX 03:21 · JFK 06:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.