search for: set_transl

Displaying 2 results from an estimated 2 matches for "set_transl".

2006 Jul 26
0
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 ? ==&...
2006 Apr 13
0
Globalize not with Rails 1.1.2
...al ''NL Titel'', news_item.title end def test_add_string_translations Globalize::Locale.set_base_language(''en-US'') Globalize::Locale.set(''en-US'') language = Globalize::Language.pick ''nl-NL'' Globalize::Locale.set_translation( "This is written in English", language, "Dit is geschreven in het Nederlands" ) assert_equal ''This is written in English'', "This is written in English".t Globalize::Locale.set(''nl-NL'') asser...