This question has already been answered:
I want to create a 4-language website, but I don’t know how to get started. Please tell me.
This question has already been answered:
I want to create a 4-language website, but I don’t know how to get started. Please tell me.
A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .
Is the site static? Who is doing the filling and how often? What exactly needs to be translated? Do I need to translate text on images? Will additional languages be added during use? A bunch of questions. Sometimes it is more convenient to create a complete copy of the site and make an adaptation for another language. Tell us more about the problem.
Well, how.
Create 3 files of dictionaries (or in the database, which in some cases is even better).
Type, for example:
{ 'hello':'здравствуй', 'world':'мир' } For all other languages except the main one (English is better as it).
Output all phrases, inscriptions and texts through the translation function, which takes the current language from the system settings and translates the phrase.
Source: https://ru.stackoverflow.com/questions/367325/
All Articles