I'm using the plugin Qtranslate for the Italian-English version of my website.
If I use the widget to the language selection is fine.
Instead, if use the function
<?php qtrans_generateLanguageSelectCode ('image');?>
this does not take into account the parent page, for example:
lavoro/pagina-italiano/ -> should change to -> work/pagina-inglese
instead remains as
lavoro/pagina-italiano/ -> should change to -> lavoro/pagina-inglese
then I get a 404 error.
Obviously the abbreviations of the page I have setup I, according to my needs.
I repeat: the widget everything is working correctly.