For example i have project model and 5 available locales. User should be able to create project localized to those 5 locales?
What is the best way to add this kind of feature, is there some rails way for this?
I understand that i should store all those translations in database, but something like text_en, text_pt, text_es, text_fr, text_it for each field is scares me.
Can you give me an advice? Thanks!
UPD. Seems like i find nice tool for the job https://github.com/svenfuchs/globalize3 🙂
You may want to use a serialized attribute for locale-dependent data, and define a title (or anything) as a hash:
The problem will be that you will not be able to do SQL search for the textual values. If you want to search projects by names, just extract the locale-dependent attributes to another table: