You’re not receiving notifications from this thread.
Creating an application Multi Language
Hi, good evening.
Cris, I would like to create a system which will suport many language. For instance, I would like to be able to access the languages using URL like:
How is the best way to implement it?
Secondly, Imagine that is it a game application where I will be able to save the monsters data like having more than 30 colums representing the monster information like:
id, name, info1, info2, ..., info30.
How the database should be model to be able to manage multi-language? I suppose that create 30+ columns for each language would not be a good idea. Keeping in mind that it could be translate for mor than 5 languages.
If I create one table to each language, how could Active model handle the right table to get the correct data?
The same would apply to create posts to this website, the post would be translate for all the language supported.
Thanks for your time and attention.
I'm not too familiar with it, but you might try this gem: https://github.com/globalize/globalize
It can help you on the ActiveRecord model side to handle languages using a translations table it looks like.
Great app! And most of all I liked that it is configured for different language versions, which is very convenient for a user from any corner of the world.