ruby on rails - adding translations to database records -


i @ end off project. implemented few languages. moment, have categories placed in database, these categories in native latvian language, trick able change language of these records simultaneously display language change.

it means if choose locale en, these category names displayed in english. ideas! store ultiple language translation within records, think it's bad idea. or store put latvian category name id inside <%= i18n.t 'category_id_in_latvian'%> , in yml files put translation ?
or there other solution?

thanks

you should take @ globalize gem:

github of globalize3 gem

this gem should need. ;)

and if doesn't, please, explain why providing more details on want , i'll update answer according needs.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -