I have two languages in my OC english & arabic. and I have to add some links to top menu but I have to detect which language is using so I can write the top menu in arabic or english.
here its my code
<?php if ($language_code == 'ar'): ?>
<li id="custom_menu_id">
<a href="http://antakiherbs.com/index.php?route=module/blog">blu blu</a>
<li>
<?php else: ?>
<li id="custom_menu_id">
<a href="http://antakiherbs.com/index.php?route=module/blog">Blog</a>
<li>
<?php endif; ?>
and I got this error.
Notice: Undefined variable: language_code in /home3/antakihe/public_html/catalog/view/theme/shoppica2/template/tb/menu.tpl on line 57
|
|
Hi,
Here is a tutorial that will help you to add language variables in your theme:
http://support.themeburn.com/topic/add-custom-translation-ready-text
BR,
ThemeBurn team
|
|