A
A
Arthur2015-01-22 23:50:06
PostgreSQL
Arthur, 2015-01-22 23:50:06

What are the approaches to internationalizing data in a database and which one is correct?

There was a question about the internationalization of articles and other data that, according to the selected locale, should be displayed in the desired language.
How to display text in different languages ​​in templates and notifications is understandable, but what about the data in the database? How to organize this business?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Boris Penkovsky, 2015-01-23
@Able1991

Usually I added a locale field to the collections, you specify the language in which it is displayed for each entry, because for example, not every news in Russian will have an Arabic translation, and a translator is usually not always at hand

R
romanwb, 2015-01-26
@romanwb

Excellent gem https://github.com/globalize/globalize
Used in the project, no complaints

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question