2012-02-02 106 views

回答

0

在你的config/application.rb中可能是線#34註釋掉

# config.i18n.default_locale = :de 

你應該有這樣的:

config.i18n.default_locale = :pt # if pt means Portugese, I'm not sure now... 

你可能會需要把一些翻譯在配置/區域設置/ pt.yml。更多關於翻譯的Rails應用程序,你會發現在Rails Guides i18n section

+0

現在正出現在我的屏幕上: 名稱翻譯丟失:pt.activerecord.errors.models .workflow.attributes.name.blank 我是否必須下載包含該語言的任何軟件包? – 2012-02-02 19:06:13

+0

您必須使用自定義翻譯來填充config/locales/pt.yml。閱讀指南:) – 2012-02-02 19:34:51

+0

Tks。完美工作。我通過https://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/pt-BR.yml獲取字典。 ;) – 2012-02-03 11:03:20