Newbie on rails - language switch

pablo wrote:


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

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.