How to chnage qTranslate language switcher?

You put below 1 line query only in your page. Other queries you want use your style.

1. qtrans_generateLanguageSelectCode(‘dropdown’);

2. How to get current qTranslate language : qtrans_getLanguage();

3. How to avoid home link reset the current language : just put this line “bloginfo( ‘url’ );” in link part.

You find this line echo "<li $current>
<a href='".get_settings('home')."'>Home</a></li>"; 
and remove the href quotation part. then you put above line you can use very nice.

4.  Create dropdown fields for each language
<?php
foreach(qtrans_getSortedLanguages() as $language) {
echo $language;
}

?>

5. qtranslate language convert url :  <?php echo qtrans_convertURL($url, $lang); ?>

🙂 that is all. Enjoy…

thanks for all google users. I found lot of time to spent this. I search more keyword then i find this above topics. So, again i tell you thanks for all google users.

Leave a Reply

© 2020 Spirituality