Tag: switch

  • Language selection in WordPress using qTranslate plugin

    Language selection in WordPress using qTranslate plugin

    qTranslate is a very handy and powerful i18n plugin for WordPress. In order to enable visitors of your WP site to switch between languages you need to include qTranslate’s widget. Following you find the necessary steps to do so.

    1. Install qTranslate (http://www.qianqin.de/qtranslate/)
    2. edit the plugin settings to enable/disable your supported languages
    3. edit your WP layout template (e.g. sidebar.php) and add to qTranslate widget:
      echo qtrans_generateLanguageSelectCode('both');
      

    Currently, the qTranslate widget supports to following styles:

    • image
    • dropdown
    • text
    • both

    For more information on the parameters of qtrans_generateLanguageSelectCode have a look at plugins/qtranslate/qtranslate_widget.php.

    If you are looking for a plugin to support multilingual text have a look at the gText widget which works like a charm in combination with qTranslate.