Answer the question
In order to leave comments, you need to log in
How to organize a multilingual site?
Good afternoon! A question of such a plan. There is a project on Symfony 2, you need to make it possible to translate the site into other languages (for example, an xml file with translation), there are quite a lot of constants in the code. Also, part of the content is pulled from the database. How to organize all this correctly?
Answer the question
In order to leave comments, you need to log in
Symfony Translation
In the database, it will be necessary to create separate fields / tables for a specific language. You can store a locale variable both in the url and in the session and cookies. Everything is in the link.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question