I’ve created this plugin because I have a client who wants only certain sections of their site to be available in translation. The qTranslate plugin is one of the best available, but like all others, works globally. I’ve tried WPML, and it seems great, but the way it handles the translated pages makes it even less suitable to my client’s site than qTranslate.
So, I’m trying to create a plugin that:
- Allows you to define which sections should or shouldn’t have qTranslate applied to them (a section being a page and all its descendants)
- Allows you to say which languages apply to which sections (again, qTranslate applies the enabled languages globally)
- Tests to see if we’re in a translated section, and if not, removes all of qTranslates hooks to disable its functionality
I’ve got a lot done, but I’m stuck. When I first tried this, I was having problems removing qTranslate functionality from the edit screen – TinyMCE was breaking.
I assume this issue is still there, but at the moment, the client is saying they can just ignore the unnecessary editor tabs in the backend. The main issue I’m trying to attack now is making sure that language URLs for unselected sections return a 404. Currently, if Chinese is enabled, but according to this plugin the page
/one-language/ and its descendants aren’t to be translated, then
/one-language/zh/ returns the page in the default language. Ideally, it should return a 404.
I’m sure there’s other issues, and other good things this plugin could do. I’m releasing it here to see if anyone else can help out. I assume I’m not the only one looking for this kind of functionality!
If you have any questions, or get things working better, please contact me.
qTranslate SelectiveContributors: gyrus
Tags: multilingual, language, admin, bilingual, i18n, l10n, multilanguage
Requires at least: 3.0
Tested up to: 3.0.4
Stable tag: 0.1
Donate Link: www.qianqin.de/qtranslate/contribute/
qTranslate Selective works with the qTranslate plugin to allow selective application of multilingual functionality to certain sections of a site.
qTranslate is a fantastic plugin for adding multilingual functionality to your site. However, it applies globally, and sometimes you might want to only apply this functionality - or only apply certain languages - to certain areas of a site. This plugin allows you to associate certain sections (i.e. pages and their descendants) with particular languages active in the qTranslate plugin; everywhere else, qTranslate will be inactive.
It also allows you to deactivate qTranslate for posts.
- Upload the
qtranslate-selectivefolder into your site's
- Go to the list of installed *Plugins* in WordPress and activate it.
- Go to *Settings > qTranslate Selective* and change configuration if necessary.
- First version
- Doesn't work properly yet!
Comments on this post are closed.