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 setting 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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top