A
A
alrof2016-12-28 11:57:32
symfony
alrof, 2016-12-28 11:57:32

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

2 answer(s)
A
Alexander Evgenievich, 2016-12-28
@alrof

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.

A
alrof, 2016-12-28
@alrof

thanks what you need!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question