Newbie on rails - language switch

pablo wrote:

Hello!

I'm a newbie but so far ROR is great. I am working on a new project where i will have many forms and quite complicated database. Anyway..there will be at least 3 different languages that will support these forms. What is the best way to change the labels or form errors depending on what language user have chosen. I dont want to have too much views if i can do it better.

-- Posted via http://www.ruby-forum.com/.

I generally take the approach of keeping form text in a table in the database, keyed by a message ID and language.

This way, adding a new language is just data entry (no code), unless you support pictograph and right-to-left flows.