L
L
LastGeneral2020-08-12 12:32:19
opencart
LastGeneral, 2020-08-12 12:32:19

How to add word translation in OpenCart 3?

It is necessary to add translation of some words to manual. /public_html/catalog/language/en-us/common/header.php
<p>{{ text_cm }}</p>

// other
$_['text_cm']            = 'В разработке';

/public_html/catalog/controller/common/header.php
// other
$data['text_cm'] = $this->language->get('text_cm');

But nothing is displayed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2020-08-13
@gurin-develop

In /catalog/language/ru-ru/common/heade.php we add the necessary translations, such as Further already in the template body in the right place . We do the same in other languages, the main thing is that the identifier is the same. I did so and did not climb into the controllers. $_['text_cm'] = 'В разработке';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question