Multiple languages

How can i make an application with 2 laguages without making a copy of
the app. Only to define a database of languages and use them.
Thanks

Globalize

http://www.globalize-rails.org/globalize

Gokhan
www.sylow.net
Barabule Muci wrote:

How can i make an application with 2 laguages without making a copy of
the app. Only to define a database of languages and use them.
Thanks

Barabule Muci wrote:

How can i make an application with 2 laguages without making a copy of
the app. Only to define a database of languages and use them.
Thanks

i suggest you to use database for translations, but in order to avoid
the call to the db every time you need a set of translations, serilize
the collection to an xml file on your server, from which you will read.
any time you make changes on the translations, just reproducte the file.

Barabule Muci wrote:

How can i make an application with 2 laguages without making a copy of
the app. Only to define a database of languages and use them.
Thanks

also a nice alternative is ruby gettext. with that you can just type
_(‘your localized text’)
in your controllers or views, and run
rake updatepo
to create a standard .pot file you can give away to translators that can
then use the gettext translator gui “poEdit” (available on various
platforms) or any text-editor to create whatever language version you
want without the need to access any db or code.
then copy the returned translation file to your app and run
rake makemo

works nice even with automatic browser-locale detection so you can
switch the language in your browser settings.

have a look at this howto:

http://www.yotabanana.com/hiki/ruby-gettext-howto-rails.html

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs