Web-Experience-Toolkit/Drupal7-WET-Distro — Issue #65: Bilingual language switcher
Author: mgifford
Created: 2012-03-07 20:47:50+00:00
State: open

Was demoing the site at a client and realized that the menu link comes with assumptions that it shouldn't

the menu bar:
$vars['menu_lang_bar']

in:
genesis_clf_intranet/template-preprocess.php

should use:
http://api.drupal.org/api/drupal/modules!translation!translation.module/function/translation_path_get_translations/7

in this bunch of code here:

$menu_languages = language_list('enabled');
$language_links = array();
foreach ($menu_languages[1] as $menu_language) {
if ($menu_language->language != i18n_language()->language) {
$language_links[$menu_language->language] = array(
'href' => $path,
'title' => $menu_language->native,
'language' => $menu_language,
'attributes' => array(
'lang' => $menu_language->language,
'class' => 'language-link',
),
);
}
}

as per:

http://drupal.org/node/1049230#comment-4429676