Answer the question
In order to leave comments, you need to log in
Opencart 2 - localization, problem?
Good time
, I am translating the elements of the template, so that it would work correctly when changing languages
because NUB in php, I encountered such a problem,
for example. created in header.tpl
added in header.php language fileecho $text_new-brand;
$_['text_new-brand'] = 'Новый производитель';
$data['text_new-brand'] = $this->language->get('text_new-brand');
<?php global $config;?>
<?php if($config->get('control_fb_url') != '') { ?>
<a href="<?php echo $config->get('control_fb_url'); ?>" target="_blank"> <img class="socimg" data-toggle="tooltip" data-placement="bottom" src="catalog/view/theme/magazin/image/fb1.png" alt="Facebook" title='<?php echo $text_сs1; ?>'>
</a>
<?php } ?>
<?php } ?>
global $config;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question