Weather by You!

Templates and Projects support => Php templates => Topic started by: alessandro on December 14, 2013, 08:15:58 PM

Title: Multi-lingual menu for Weather Blues v2 template
Post 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
Title: Re: Multi-lingual menu for Weather Blues v2 template
Post by: Mr.Meteo on December 15, 2013, 06:47:05 AM
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!
Title: Re: Multi-lingual menu for Weather Blues v2 template
Post by: alessandro on December 17, 2013, 11:32:39 AM
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
Title: Re: Multi-lingual menu for Weather Blues v2 template
Post by: Mr.Meteo on December 22, 2013, 07:21:03 AM
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