Change the language on a custom menu link

THE FILES WE HAVE TO EDIT:

1. header.tpl on /catalog/view/theme/yourthemefolder/template/common
2. header.php on /catalog/language/english and /catalog/language/yourlanguage (you going to edit 2 files for 2 languages)
3. header.php on /catalog/controller/common

THE CODE WE HAVE TO WRITE:

on the 1. you just create the following:

CODE: SELECT ALL
     <li><a href="http://byzantiumicons.com/saints-index"><?php echo $new_linktext; ?></a></li>

on the 2. the languages files we doing the following:

CODE: SELECT ALL
$_['new_linktext'] = 'Your English Text';

For a different language we just go to the language folder and we add the same as the above just with the none-nglish lanauge text.

3. Finally here we create the following:

$this->data[‘new_linktext’] = $this->language->get(‘new_linktext’);

just write it below: $this->data[‘text_home’] = $this->language->get(‘text_home’);

Thats it.

×

Hello!

Click one of our representatives below to chat on WhatsApp or send us an email to [email protected]

× Cantact us through Whatsapp