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.
- Install qTranslate (http://www.qianqin.de/qtranslate/)
- edit the plugin settings to enable/disable your supported languages
- edit your WP layout template (e.g. sidebar.php) and add to qTranslate widget:
Currently, the qTranslate widget supports to following styles:
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.