Globalize strategy for content?

Hello,

what are your strategy for using Globalize to translate sites with lot
of full text ? I mean where do you translate your String ?
I saw on the swen’s wiki
(http://www.artweb-design.de/articles/2006/06/13/real-fun-get-on-rails-with-globalize-take-2),
that you can use the locale:set_translation method:

Locale.set_translation(‘Welcome’, Language.pick(‘de-DE’),
‘Willkommen’)

and then add all your translation in the controller ?? swen also said
that there are maybe better way, which is ?

Are you doing thing like this ?

==> If for example in your view you have the french text below, where
(controller, init file,…) and how (Locale.set_translation, directly in
the DB, …) do you translate this ? :


Bonjour ceci est un site en français

Encore une phrase que j'aimerai bien traduire pour tout le monde ;-)

... and so one ...

thanks

arnaud

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