开发者

Changing the en.yaml for another one in rails

开发者 https://www.devze.com 2023-04-01 02:53 出处:网络
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

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

精彩评论

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

关注公众号