Switching web page languages - how?

Is there support to somehow automate the localization of web pages in
Rails? I need to create an application that must allow the user to
dynamically switch between several languages – luckily, all of them
left-to-right languages.

Most guides and books do not even mention that issue and assume everyone
is using English. Are there any guides or documentation about how to
best do this?

Roman H. wrote:

Is there support to somehow automate the localization of web pages in
Rails? I need to create an application that must allow the user to
dynamically switch between several languages – luckily, all of them
left-to-right languages.

Most guides and books do not even mention that issue and assume everyone
is using English. Are there any guides or documentation about how to
best do this?

Roman

  1. gem install localization_generator
  2. edit envrionments.rb, application.rb (as per docs)
  3. done

Ilan B. wrote:

Roman H. wrote:

Is there support to somehow automate the localization of web pages in
Rails? I need to create an application that must allow the user to
dynamically switch between several languages – luckily, all of them
left-to-right languages.

Most guides and books do not even mention that issue and assume everyone
is using English. Are there any guides or documentation about how to
best do this?

Roman

  1. gem install localization_generator
  2. edit envrionments.rb, application.rb (as per docs)
  3. done

Thanks for the info … is there also a way to localize the messages
that are generated by validates… and which appear in the flash? Not
sure if there are any other messages that rails will show to the user
eventually, but I would need to localize all of them.

Rails doesn’t support i18n (Internationalization) yet.

You could check out the Globalize plugin, perhaps that already fits
what you are looking for.

On 11/1/06, Roman H. [email protected] wrote:

Is there support to somehow automate the localization of web pages in
Rails? I need to create an application that must allow the user to
dynamically switch between several languages – luckily, all of them
left-to-right languages.

Most guides and books do not even mention that issue and assume everyone
is using English. Are there any guides or documentation about how to
best do this?

Have a look at:
http://raa.ruby-lang.org/project/ruby-gettext/

Isak