Author Topic: Multi-lingual menu for Weather Blues v2 template  (Read 1348 times)

Offline alessandro

  • Newbie
  • *
  • Posts: 6
    • Current Weather Conditions at Arachova, Parnassos, Greece
Multi-lingual menu for Weather Blues v2 template
« 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

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Multi-lingual menu for Weather Blues v2 template
« Reply #1 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!
« Last Edit: December 15, 2013, 06:49:03 AM by Mr.Meteo »
Please, consider supporting this site 

Offline alessandro

  • Newbie
  • *
  • Posts: 6
    • Current Weather Conditions at Arachova, Parnassos, Greece
Re: Multi-lingual menu for Weather Blues v2 template
« Reply #2 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

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Multi-lingual menu for Weather Blues v2 template
« Reply #3 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
Please, consider supporting this site