For example, I have created a custom post creator. I am using wp_editor()
to generate “WYSIWYG” editors for content.
I am using qTranslate
for multi-language user experience. Unfortunately I am forced to create a separate “WYSIWYG” editor for every language translation. Overkill.
How to enable / implement qTranslate
language tabs as they are in default post creator.
1 – I would think that the qtranslate plugin will add the tabs to the wp_editor() editor automatically.
At least , it was doing it when I used it for CPT ..
2 – there is this plugin which helps plugin authors to implement qtranslate in own plugins .
3 – there is a filter
add_filter(âthe_editorâ, âqtrans_modifyRichEditorâ);
in qtranslate you might want to investigate4 – you can also use a simple loop in order to create the tabs using
qtrans_getLanguage()