How to make a Rails app multi-language

2 views
Skip to first unread message

Sébastien Clément

unread,
Jun 25, 2008, 4:55:15 PM6/25/08
to rubyonra...@googlegroups.com
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
--
Posted via http://www.ruby-forum.com/.

Philip Hallstrom

unread,
Jun 25, 2008, 4:56:29 PM6/25/08
to rubyonra...@googlegroups.com
> 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

Sébastien Clément

unread,
Jun 25, 2008, 4:59:30 PM6/25/08
to rubyonra...@googlegroups.com
Thanks Philip, I'll have a look.

--
Posted via http://www.ruby-forum.com/.

julian

unread,
Jun 25, 2008, 5:09:39 PM6/25/08
to Ruby on Rails: Talk
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

On Jun 25, 10:59 pm, Sébastien Clément <rails-mailing-l...@andreas-

Gianluca Tessarolo

unread,
Jun 26, 2008, 3:26:49 AM6/26/08
to rubyonra...@googlegroups.com
Hi Julian,

give a try to Globalite Plugin @ http://code.google.com/p/globalite/

Have a nice day.

Peter De Berdt

unread,
Jun 26, 2008, 4:53:30 AM6/26/08
to rubyonra...@googlegroups.com

On 25 Jun 2008, at 23:09, julian wrote:

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"

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


Rails Terrorist

unread,
Jun 26, 2008, 5:19:19 AM6/26/08
to rubyonra...@googlegroups.com

Raul Murciano

unread,
Jun 26, 2008, 5:49:51 AM6/26/08
to rubyonra...@googlegroups.com
<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>

--
Raul Murciano - Freelance Web Developer
http://raul.murciano.net

Matt Grande

unread,
Jun 26, 2008, 9:14:52 AM6/26/08
to Ruby on Rails: Talk
I've used Gibberish. http://errtheblog.com/posts/55-ya-talkin-gibberish
It works pretty well.

Marko Anastasov

unread,
Jun 26, 2008, 9:15:19 AM6/26/08
to Ruby on Rails: Talk
+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
Reply all
Reply to author
Forward
0 new messages