[wp-trac] [WordPress Trac] #2476: Language support for TinyMCE

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 17 23:06:58 GMT 2006


#2476: Language support for TinyMCE
-----------------------+----------------------------------------------------
       Id:  2476       |      Status:  new                     
Component:  General    |    Modified:  Fri Feb 17 23:06:58 2006
 Severity:  normal     |   Milestone:  2.1                     
 Priority:  normal     |     Version:  2.0.1                   
    Owner:  anonymous  |    Reporter:  capt_kirk               
-----------------------+----------------------------------------------------
 ===BACKGROUND===

 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.

 ===PROPOSED CHANGE===

 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

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2476>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list