开发者

Changing the en.yaml for another one in rails

I managed to get a fr.yaml. I want this to be the default, an old Rails 2.2 tutorial says to add:

config.i18n.default_locale = :fr

in environment.rb

It does not work, my rails server crashes on this config line.

What is the syntax for this settin开发者_如何转开发g in Rails 3? I do not want a multi-language app, I want to use only the french settings.


In Rails3, you add this line to application.rb

config.i18n.default_locale = :fr


This goes in config/application.rb in rails 3.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜