multilingual WPtouch with qTranslate
Description
I’ve modified the last WPtouch beta to make it compatible with qTranslate. So I can have a multiliingual web site usable with an iPhone ot an iPod touch.
State of the beta
The sources are based on the WPtouch’s version 1.9_beta8.6
Now what is working :
- There is an optional menu to add a language selector. It is activated in the plugin preferences.
- I’ve made the Search working with all languages. It used to work only with the default language. (perhaps this mods concern only users with ?lang=## URL)
- All of the text fields but the website title are localizable by using qTranlsate tags.
What is not working :
- Access to admin pages for users with ?lang=## URL . In fact, I’ve founded a workaround but this is a qTranlate modification. See below.
- The website title should not have characters like [ :## ] or < !–:##– >. Preferences are broken and the plugin is working with all default options.
For Wordpress admin pages access, if you use URL with ?lang=##, you have to modify in the qtranslate_core.php file (qTranslate plugin) the trans_convertBlogInfoURL() function. It shoul be:
function qtrans_convertBlogInfoURL($url, $what) {
if($what=='stylesheet_url') return $url;
if($what=='template_url') return $url;
if($what=='template_directory') return $url;
if($what=='stylesheet_directory') return $url;
if($what=='wpurl') return $url;
return qtrans_convertURL($url);
}
Please make your remarks about the plugin in the comments of this post
Download
History :
- R1 (29/07/2009) : initial release
Installation
Delete old version of WPtouch and install the one you’ve just downloaded.
Be aware this is a beta version base on an othe beta version of WPtouch. Backup you data before !
Sources
Sources are hosted on github

Comments are closed.