How to configure Rails for French?

I need to develop a Ruby on Rails application for my company and don’t know how to configure it for a French site.

I do not need support for multiple languages, I just want to have error messages, plurality and date format for the French language.

I tried to install:

config.i18n.default_locale = :fr

in my application.rbfile, but it has no effect.

Are these features already implemented in RoR 3? Or will I have to translate these things myself?

+5
source share
3 answers

, config.i18n.default_locale = :fr config/application.rb, fr.yml aplication config/locales . :
fr.yml

..

+6

Add to rails-i18n your Gemfile:

gem 'rails-i18n'
0
source

All Articles