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.

You may also like...

2 Responses

  1. bcb says:

    hey there solid blog website and layout. I really hope That’s not me annoying you I recently desired to inquire what precisely extension you employ to show the most recent commentary with your blog? I would like to do exactly the same for my free new iphone 4 page however cant find the plugin or widget for this. Interesting time

    • Hey there,
      I am using a customized version of the zbench wp theme which includes this functionality based on a widget. Furthermore I have adapted the way comments are displayed below blog posts. Please have a look at the following post which explains the changes I have made: . Cheers

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.