\n// name, $language); } else { echo qtrans_insertTermInput($id, $name, $term->name, $language); } } // hide real category text echo "ins.style.display='none';\n"; echo "// ]]>\n\n"; } function qtrans_modifyCategoryForm($term) { return qtrans_modifyTermForm('cat_name', __('Category Name'), $term); } function qtrans_modifyTagForm($term) { return qtrans_modifyTermForm('name', __('Tag Name'), $term); } function qtrans_modifyLinkCategoryForm($term) { return qtrans_modifyTermForm('name', __('Category Name'), $term); } // Modifys TinyMCE to edit multilingual content function qtrans_modifyRichEditor($old_content) { global $q_config; $init_editor = true; if($GLOBALS['wp_version'] != QT_SUPPORTED_WP_VERSION) { if($_REQUEST['qtranslateincompatiblemessage']!="shown") { echo '
'.__('This version of qTranslate has not been tested with your Wordpress version. To prevent Wordpress from malfunctioning, ' .'the qTranslate Editor has been disabled. You can reenable it by clicking here (may cause data loss!). ' .'To remove this message, please update qTranslate to the corresponding version.').'
'; } $init_editor = false; } // don't do anything to the editor if it's not rich if(!user_can_richedit()) return $old_content; preg_match("/