V
V
Vladimir2016-12-09 12:16:38
1C-Bitrix
Vladimir, 2016-12-09 12:16:38

How to make one page of the Bitrix website in English?

Good afternoon! A question. I have News and News pages. I want to use one infoblock and one component for these pages (bitrix.news.list)
How can I make the information on the News page displayed in Russian, and for News in English?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Korolev, 2016-12-09
Portev @Vladimir Portev

Create an additional property "Text in English" for the news, add a new parameter, for example, LANG, to the news.list component (via the .parameters.php file for the template used), into which, depending on the page, pass ru or en, and then to The template itself, depending on the value of the LANG parameter, output either Russian text from some fields (properties) or English text from other fields (properties).
But this is a special case. If the task is actually wider, i.e. Since the site must have two language versions with translation of all content, then there are several implementation options, and the choice of one or another method depends on many factors.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question