Bilingual Menus / Canadian Way
Hi Canadian Guys and Girls
How to display the switch language bar in the main menu like you do on your sites (government and community alike and switch between Fr/En without showing the other menu? I would like to do a site following the Canadian way (language switcher in the center menu and when you click one language you go the respective side). I'm using D6 with Internationalization/Localization/Nices menues modules
I work on local server, have all pages in 2 languages : en/es, but menu tabs in both languages appear in the menu central bar, can you help me with this?
Any help is welcome.
Maria / Melbourne

Ical feed
I use CSS to hide the
I use CSS to hide the selected (active) language link. I suppose you could do it with a theme override somewhere, but the CSS method is much simpler IMHO.
Not sure if I understand your
Not sure if I understand your issue. However, if you need the straight-up language switching links, try something like this:
<?php$path = drupal_is_front_page() ? '<front>' : $_GET['q'];
$languages = language_list('enabled');
foreach ($languages[1] as $lang) {
$links[$lang->language] = array(
'href' => $path,
'title' => $lang->native,
'language' => $lang,
'attributes' => array('class' => 'language-link'),
);
}
drupal_alter('translation_link', $links, $path);
unset($links[$language->language]);
foreach ($links AS $link) {
$items[] = l($link['title'], $link['href'], array('language' => $link['language']));
}
return theme('item_list', $items);
?>
Maybe you can append these to an existing menu of yours. Btw, have you tried multilingual variables to show different menus as primary/secondary menus depending upon the active language?
Use i18n menus
There are several approaches to this problem, ranging from simple to rather tricky. That said, if you enable i18n menus, you can set the language of each menu item. When viewing a page, only menu items set to the current language or language neutral will be displayed. The downside is that you need to enter each page into your menus twice (both EN and ES versions) but since your site has only two languages this is likely the easiest solution for you.
--
Openflows Community Technology Lab