Ticket #3733 (closed defect (bug): fixed)
Some string in TinyMCE can't be translated
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | low | Milestone: | 2.3 |
| Component: | I18N | Version: | 2.1 |
| Severity: | normal | Keywords: | i18n |
| Cc: | andy, nbachiyski@… |
Description
Line 47 in wp-includes/js/tinymce/tiny_mce_gzip.php has been replaced from
$search2 = "/ : (['\"])(.*)\\1/Uem";
to
$search2 = "/\\s:\\s(['\"])(.*)\\1(,|\\s*})/Uem";
in http://trac.wordpress.org/changeset/3664#file87 .
So some string in wp-includes\js\tinymce\plugins\wordpress\langs\en.js can't be translated, such as
justifyleft_desc : 'Align left (' + metaKey + '+f)',
In WordPress 2.0.7, I can translate “Align left (” in my po file, but in WordPress 2.1 it does not work.
Change History
And the new regular expression has another mistake. In wp-includes\js\tinymce\plugins\paste\langs\en.js, the last two line are
selectall_desc : 'Select All' });
Because of the "m" pattern modifier which means multiline mode, it does not match "(,|
s*})", so it can't be translate too.
Just delete "(,|
s*})", the two bug will be killed.
Sorry for my poor english, hoop you can understand.
