Hello, I'm having a problem with the qTranslate plugin. If I'm on a page, and want to navigate to other language version, I clicked the flag, however it takes me to the home page in the new languagua, but not to the page I wanted.
A friend of mine put the language selection flags next to the search box of the theme, however I think he did something wrong because If I'm in a page and hover the mouse over the English Flag, Chrome shows me before I click that the url is the English version of my site, and not the English version of that page/post.
I leave here the code my friend put on the header of the template. Thanks for your help!
<ul class="idioma">
<?php
global $q_config, $lang;
if(!empty($q_config['enabled_languages'])){
//echo(get_query_car("lang"););
$sub = "<ul>";
?>
<li>
<?php
foreach($q_config['enabled_languages'] as $lenguaje){?>
<?php
if(qtrans_getLanguage() == $lenguaje){
?>
<a title="<?php echo $q_config['language_name'][$lenguaje];?>" href="<?php echo get_bloginfo("url")."/".$lenguaje."/";?>">
<img src="<?php echo content_url()."/".$q_config['flag_location'].$q_config['flag'][$lenguaje];?>" />
</a>
<?php
}else{
$sub .= '<li><a title="'.$q_config['language_name'][$lenguaje].'" href="'.get_bloginfo("url")."/".$lenguaje."/".'">
<img src="'.content_url()."/".$q_config['flag_location'].$q_config['flag'][$lenguaje].'" />
</a></li>';
}
?>
<?php
}














