How do you support languages?

I want to customize notices and interfaces, would you use
session[:language]
and a YAML file ?
I don’t want things automatically translated, just accurate text in
Italian,
Portuguese and English!

lang.yml

it:
welcome: Benvenuto sul Sito
en:
welcome: Welcome to the Website

application_helper.rb

def say(string)
RedCloth.new(@lang[session[:language]][string]).to_html
end


Emanuele T.
+1 (619) 549 3230
4955 Narragansett Ave Apt #9
San Diego Ca 92107-3157
http://mekdigital.com

Quoting Emanuele T. [email protected]:

I want to customize notices and interfaces, would you use session[:language]
and a YAML file ?
I don’t want things automatically translated, just accurate text in Italian,
Portuguese and English!

I use Globalite,http://code.google.com/p/globalite/. There are many,
see
http://wiki.rubyonrails.org/rails/pages/InternationalizationComparison.
And a “standard” way is coming in Rails
2.2, see
http://www.artweb-design.de/2008/7/18/the-ruby-on-rails-i18n-core-api.
And
Google will find even more.

HTH,
Jeffrey