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 Tozzato
+1 (619) 549 3230
4955 Narragansett Ave Apt #9
San Diego Ca 92107-3157
http://mekdigital.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---