Changeset 19420 for trunk/wp-includes/js/tinymce/langs/wp-langs.php
- Timestamp:
- 11/23/2011 07:06:52 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/js/tinymce/langs/wp-langs.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/tinymce/langs/wp-langs.php
r19263 r19420 1 1 <?php 2 2 3 // escape text only if it needs translating4 3 function mce_escape($text) { 5 global $wp_editor; 6 7 if ( 'en' == $wp_editor->mce_locale ) 8 return $text; 9 else 10 return esc_js($text); 4 return esc_js($text); 11 5 } 12 6 13 $lang = 'tinyMCE.addI18n({' . $this->mce_locale . ':{ 7 if ( ! class_exists( '_WP_Editors' ) ) 8 require( ABSPATH . WPINC . '/class-wp-editor.php' ); 9 10 $lang = 'tinyMCE.addI18n({' . _WP_Editors::$mce_locale . ':{ 14 11 common:{ 15 12 edit_confirm:"' . mce_escape( __('Do you want to use the WYSIWYG mode for this textarea?') ) . '", … … 233 230 }}); 234 231 235 tinyMCE.addI18n("' . $this->mce_locale . '.advanced",{232 tinyMCE.addI18n("' . _WP_Editors::$mce_locale . '.advanced",{ 236 233 style_select:"' . mce_escape( /* translators: TinyMCE font styles */ _x('Styles', 'TinyMCE font styles') ) . '", 237 234 font_size:"' . mce_escape( __('Font size') ) . '", … … 299 296 }); 300 297 301 tinyMCE.addI18n("' . $this->mce_locale . '.advanced_dlg",{298 tinyMCE.addI18n("' . _WP_Editors::$mce_locale . '.advanced_dlg",{ 302 299 about_title:"' . mce_escape( __('About TinyMCE') ) . '", 303 300 about_general:"' . mce_escape( __('About') ) . '", … … 353 350 }); 354 351 355 tinyMCE.addI18n("' . $this->mce_locale . '.media_dlg",{352 tinyMCE.addI18n("' . _WP_Editors::$mce_locale . '.media_dlg",{ 356 353 title:"' . mce_escape( __('Insert / edit embedded media') ) . '", 357 354 general:"' . mce_escape( __('General') ) . '", … … 463 460 }); 464 461 465 tinyMCE.addI18n("' . $this->mce_locale . '.wordpress",{462 tinyMCE.addI18n("' . _WP_Editors::$mce_locale . '.wordpress",{ 466 463 wp_adv_desc:"' . mce_escape( __('Show/Hide Kitchen Sink (Alt + Shift + Z)') ) . '", 467 464 wp_more_desc:"' . mce_escape( __('Insert More Tag (Alt + Shift + T)') ) . '", … … 478 475 }); 479 476 480 tinyMCE.addI18n("' . $this->mce_locale . '.wpeditimage",{477 tinyMCE.addI18n("' . _WP_Editors::$mce_locale . '.wpeditimage",{ 481 478 edit_img:"' . mce_escape( __('Edit Image') ) . '", 482 479 del_img:"' . mce_escape( __('Delete Image') ) . '",
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)