How to make a Rails app multi-language

I need to have a Rails application into at least two languages (French & English), but I hesistate to hardcode it.

I've read a bit about the GNU gettext library.

Does anybody know about a clear tutorial on the topic? I'm reading through the official doc, but it is not exactly for beginners.

Thanks

I need to have a Rails application into at least two languages (French & English), but I hesistate to hardcode it.

I've read a bit about the GNU gettext library.

Does anybody know about a clear tutorial on the topic? I'm reading through the official doc, but it is not exactly for beginners.

Lots to choose from... not sure which is the best, but this is a good place to start.

http://agilewebdevelopment.com/plugins/category/8

Thanks Philip, I'll have a look.

Philip Hallstrom wrote:

Dear All,

This is one chalenge I am facing at the momement as well. I am trying to move forwared from a java environmen, but i need to be sure of this and a few other thinks before makeing the leap.

Other than GNU gettext. what options are there? What would be considered the "Rails Way"

many thanks for your thoughts

Julian

Hi Julian,

give a try to Globalite Plugin @ Google Code Archive - Long-term storage for Google Code Project Hosting.

Have a nice day.

There are a few options you might consider depending on your needs.

We use simple_localization (http://simple-localization.arkanis.de/)) and are very happy with it, works perfectly in Rails 2.1.

Best regards

Peter De Berdt

Once more:

maybe useful for you later.

Reinhart

<shameless self-promotion> You can even translate your URLs and use them to set the user language:   http://github.com/raul/translate_routes/tree/master </shameless self-promotion>

I've used Gibberish. Ya Talkin' Gibberish — err.the_blog It works pretty well.

+1 for Globalite: it's very easy to translate both rails and your application, with yml files and a clean way to embed the strings in your views (translation_key.l).

    Marko