Language switching button doesn't work
-
I have already asked for help regarding this problem, but as it seems not resolved yet, I’m asking for help again.
I am using both: “language menu” in my header + my own picture in the sidebar. The language menu works well.
I was using the qtranslate plugin before, and my own button / picture code was working great as well.When I’ve switched to qtranslate-x plugin, it stopped working.
I mean, switching from Fr (the default language) to En works, but it doesn’t works from EN to FR.When I un-check: “Hide URL language information for default language. ” it works! But then I can’t access to my wp-admin!
Could someone help me with this? Or maybe I could use another code?
Here is the code :
<?php if(qtranxf_getLanguage()=='fr'): ?> <div class="langSWITCHER_EN"> <a class="languen" href="<?php echo getUrlInTargetLanguage("en"); ?>" >Translate</a> </div> <?php endif; ?> <?php if(qtranxf_getLanguage()=='en'): ?> <div class="langSWITCHER_FR"> <a class="langufr" href="<?php echo getUrlInTargetLanguage("fr"); ?>" >Traduire</a> </div> <?php endif; ?>Notice also that I was previously using the qtrans_ code, with the Compatibility Functions enabled, but the problem was the same…
See link and the sidebar image “Je parle franΓ§ais” / “I speak English”
The topic ‘Language switching button doesn't work’ is closed to new replies.