$entity) { $decode[$entity] = $char; } $str = strtr($str, $decode); return $str; } } // modifys term form to support multilingual content function qtrans_modifyTermForm($id, $name, $term) { global $q_config; echo "\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; } preg_match("/