Language support for TinyMCE
|Reported by:||capt_kirk||Owned by:||anonymous|
I haven't been able to figure out a way to restore the native TinyMCE language support. It looks like tiny_mce_gzip.php will apply wp_translate_tinymce_lang, which in turn applies the overall WordPress mo and po files. So, if there is a phrase that's in the master mo and po, you're good to go. But since the TinyMCE plugins are not WordPress plugins, there is no obvious way to make and apply a mo and po file for them.
The only language files that ship with the WP instance of TinyMCE are the en.js files. The only phrases that I could find supported in the overall WP mo and po files are in support of the TinyMCE WP help popup. If you want to install the other lang files from TinyMCE, e.g., de.js or zh_TW.js, it appears you're out of luck.
I propose changing the following code in tiny_mce_gzip.php to allow loading TinyMCE lang files, if they exist. The code change finds WP's locale setting (xx), and then checks to see if there are corresponding xx.js files for core TinyMCE, the active TinyMCE theme, and any plugins. If there are not corresponding xx.js files, then the default en.js file is loaded. After that, the the wp_translate_tinymce_lang function is still called.
Patch to wp-includes/tiny_mce_gzip.php attached
Change History (13)
- Priority changed from high to normal
- Resolution fixed deleted
- Status changed from closed to reopened