librelist archives

« back to archive

Internationalization

Internationalization

From:
Issam
Date:
2011-12-16 @ 19:06
Hi All,

I was wondering how one would go about adding internationalization. If
there is a specific Gem that was in mind? I'm looking for something good
with Japanese and arabic support.

Thanks,

Issam

Re: [nesta] Internationalization

From:
Graham Ashton
Date:
2011-12-19 @ 10:04
On 16 Dec 2011, at 19:06, Issam wrote:

> I was wondering how one would go about adding internationalization.

Do you mean you want to replace any English in your view templates (or 
that are generated by helper methods) with text specific to the browser's 
locale?

> If there is a specific Gem that was in mind? I'm looking for something 
good with Japanese and arabic support.

I'm not familiar with the kinds of problems you might run into with those 
languages.

My (naïve) approach would be to make a YAML file in the ./config folder to
hold your internationalized text. That file would contain UTF-8 
characters, and Ruby (version 1.9) ought to be able to handle any tricky 
manipulations for you.

So I'm wondering what the gem would do (this is probably due to my lack of
experience of internationalizing sites).

Graham