Weather by You!
Templates and Projects support => Php templates => Topic started by: alessandro on December 14, 2013, 08:15:58 PM
-
Can anyone help me to make the top menu from Weather Blues v2 template multi-lingual??
Thank in advance,
Alessandro
-
Hi Alessandro,
Menu is the "lost one" as I don't have planned translation for it!
To add multilingual menus, you'll have to modify each and every
language files to add menu translations.
In folder lang, you'll find all language files named: text_standard_XX,
where XX is the language "short" name. you could add variables for all
menu items, this way:
$menu_today = "Today";
$menu_yesterday = "yesterday";
...
Then, modify your menu file: header_menu.php to replace all texts
by variable you just have created.
So, actual menu item:
<a href="today.php" title="Today's observations">Today</a>
become:
<a href="today.php" title="Today's observations"><?php echo $menu_today; ?></a>
This way, all menu items will be translated
Hope this help,
Regards,
Jacques
Ps Before doing changes, update to the latest language files, with your TMM (manage) page!
-
Hello,
I have made all the changes you told me about, but nothing works.
I am sending you the files in order to she them.
Thanks,
Alessandro
-
Hi Alessandro,
You've simply done a typing mistake in your text_standard_gr.php file,
you spelled variable name:
$menu_Iformation on station
Instead of:
$menu_Iformation_on_station
Regards,
Jacques