Multilingual WordPress plugins [closed]

I’d look into qTranslate. I haven’t ever used it, but it’s the only free alternative to WPML that I’ve ever seen. That being said, I’d suggest you just pony up the $30-80 for WPML. It’s by far the best-maintained and cleanest multilingual plugin you can get and it’s absolutely dirt cheap, considering what you get. … Read more

Creating custom permalink structure for languages

Your question is complicated enough to answer by myself, but I would suggest you to install qTranslate plugin. As the plugin’s description says: Choose one of 3 Modes to make your URLs pretty and SEO-friendly. – The everywhere compatible ?lang=en, simple and beautiful /en/foo/ or nice and neat en.yoursite.com So you can try to inspect … Read more

Change admin language based on user (in single-site)

Ok, finally got to the core of WP Native Dashboard basic concept and it’s working now. The file is being used as a mu-plugin, and whenever I have to work in the site I rename it from set-user-locale.phpa to set-user-locale.php, and then back again. Thus activating and deactivating without the plugin being on the client’s … Read more

qTranslate get content by language [closed]

You must use the qTranslate native functions to do your job. Use qtrans_use, that is the function that do all the job in qTranslate. It’s defined in qtranslate_core.php, line 747 function qtrans_use($lang, $text, $show_available=false) Use it on the raw content of the post! Try this code: <?php $id=47; $post = get_page($id); $content = qtrans_use(‘en’, $post->post_content,false); … Read more

How to get a translated string from a language other than the current one?

To find the answer to this question, you just need to look at how WordPress retrieves the translations. Ultimately it is the load_textdomain() function that does this. When we take a look at its source we find that it creates a MO object and loads the translations from a .mo file into it. Then it … Read more