Running ZC 1.3.9c with Ceon URI Mapping v3.6.1 on my local machine (currently). My site has two languages (English and Spanish) and I've defined language-specific URIs for all my pages.
I'm also using the "Languages and Currency in Header" mod v1.0, which uses this code
Code:
$content = " ";
while (list($key, $value) = each($lng->catalog_languages)) {
$content .= '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . zen_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name'], '', '', 'align="middle"') . '</a> ';
}
echo $content;
to insert the language links in the header. My problem is that these links (1) don't get "translated" and (2) include the language_id= parameter.
For example, I've got the contact_us page translated to /contact_us for English and /contactar for Spanish. If you're currently on the English version of the page, the English language link is /localhost/mystore/contact_us&language_id=en and the Spanish language link is /localhost/mystore/contact_us&language_id=es. When you click on the links, they're resolved to /localhost/mystore/contact_us&language_id=en and /localhost/mystore/contactar, respectively
Is there any way to get the language_id parameter stripped?
Bookmarks