Support » Plugins » [Plugins:qTranslate] How to NOT display active language in qTranslate selector

  • I have set up qTranslate and configured to place the language selector in the header where I want it. But I can’t find out anywhere how to only display the inactive language in the selector.
    ex:
    English content page –> just show “Français” button
    French content page –> just show “English” button

    Currently I have <?php qtrans_generateLanguageSelectCode('text'); ?> where I want my language switch, but don’t know how to get it to show only one (not active) language.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter piggy1

    (@piggy1)

    I ended up fixing it using the following, if anyone else needs this.

    <div id="lang_select"><a href="<?php _e("<!--:en-->" . qtrans_convertURL($url, 'fr') . "<!--:--><!--:fr-->" . qtrans_convertURL($url, 'en') . "<!--:-->"); ?>" lang="<?php _e("<!--:en-->fr<!--:--><!--:fr-->en<!--:-->"); ?>">
          <?php _e("<!--:en-->Fran&ccedil;ais<!--:--><!--:fr-->English<!--:-->"); ?>
          </a></div>

    Thread Starter piggy1

    (@piggy1)

    Actually the above only fixes the problem if I leave permalinks in the default style. Other options don’t work with this solution as slug names are different for English and French.

    Back to the drawing board.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugins:qTranslate] How to NOT display active language in qTranslate selector’ is closed to new replies.