\n// name)) { $termname = $term->name; } else { $termname = ""; } // create input fields for each language foreach($q_config['enabled_languages'] as $language) { if(isset($_GET['action']) && $_GET['action']=='edit') { echo qtrans_insertTermInput2($id, $name, $termname, $language); } else { echo qtrans_insertTermInput($id, $name, $termname, $language); } } // hide real category text echo "ins.style.display='none';\n"; echo "// ]]>\n\n"; } function qtrans_modifyCategoryForm($term) { qtrans_modifyTermForm('name', __('Category Name', 'qtranslate'), $term); qtrans_modifyTermForm('tag-name', __('Category Name', 'qtranslate'), $term); } function qtrans_modifyTagForm($term) { qtrans_modifyTermForm('name', __('Tag Name', 'qtranslate'), $term); qtrans_modifyTermForm('tag-name', __('Tag Name', 'qtranslate'), $term); } function qtrans_modifyLinkCategoryForm($term) { return qtrans_modifyTermForm('name', __('Category Name', 'qtranslate'), $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(!(isset($_REQUEST['qtranslateincompatiblemessage'])&&$_REQUEST['qtranslateincompatiblemessage']=="shown")) { echo '
'.__('The qTranslate Editor has disabled itself because it hasn\'t been tested with your Wordpress version yet. This is done to prevent Wordpress from malfunctioning. You can reenable it by clicking here (may cause data loss! Use at own risk!). To remove this message permanently, please update qTranslate to the corresponding version.', 'qtranslate').'
'; } $init_editor = false; } // save callback hook preg_match("/