I
I
Ilya17912017-07-06 15:42:34
1C-Bitrix
Ilya1791, 2017-07-06 15:42:34

How to make a multilingual site on Bitrix without resorting to splitting into subdomains?

Good afternoon!
How to make a site on Bitrix so that the menu, products in the catalog and text change depending on the selected language? The only solution that comes to mind is to make a get request, and depending on its value, write the output of Russian or English text. But this solution is inconvenient, I would like a more universal one.
Does anyone have any ideas?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Aristarkh Deryapa, 2017-07-06
@isisTance

Make a folder per language i.e. type like this:
| root
| - ru
| -- /home
| --- /www
| - en
| -- /home
| --- /www
ps root-s, home-s, www-s purely for visualization.

A
Alexander Filippenko, 2017-07-06
@alexfilus

If you arrange subfolders, then no problem. We create a new site in the admin panel, select the en language in its settings, and specify the name of the site, let's say also en. A folder will be created. In this new folder we copy the entire public part.
If there are lang files for components and their templates, they will be picked up by themselves. Infoblocks can be switched in the settings. The rest of the inscriptions, if they were made using the included areas, then we take these same areas into a folder called as the site id and everywhere when connecting, substitute the SITE_ID or LID constant, as appropriate)
If the urls should be the same, then first get ready to be crucified SEOs, secondly, you will need crutches on cookies or sessions.
But it's better not to do that anyway.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question