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 @ http://code.google.com/p/globalite/

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:

http://teapoci.blogspot.com/2008/05/translation-for-your-ruby-on-rails-web.html

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. http://errtheblog.com/posts/55-ya-talkin-gibberish
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