web/wp-includes/js/tinymce/langs/wp-langs.php
changeset 204 09a1c134465b
parent 194 32102edaa81b
equal deleted inserted replaced
203:f507feede89a 204:09a1c134465b
     1 <?php
     1 <?php
     2 
     2 
     3 if ( ! defined( 'ABSPATH' ) )
     3 if ( ! defined( 'ABSPATH' ) )
     4 	exit;
     4 	exit;
       
     5 
       
     6 if ( ! class_exists( '_WP_Editors' ) )
       
     7 	require( ABSPATH . WPINC . '/class-wp-editor.php' );
     5 
     8 
     6 // deprecated, not used
     9 // deprecated, not used
     7 function mce_escape($text) {
    10 function mce_escape($text) {
     8 	return esc_js($text);
    11 	return esc_js($text);
     9 }
    12 }
    10 
       
    11 if ( ! class_exists( '_WP_Editors' ) )
       
    12 	require( ABSPATH . WPINC . '/class-wp-editor.php' );
       
    13 
    13 
    14 function wp_mce_translation() {
    14 function wp_mce_translation() {
    15 
    15 
    16 	$default = array(
    16 	$default = array(
    17 		'common' => array(
    17 		'common' => array(
   130 			'iespell_desc' => __('Run spell checking'),
   130 			'iespell_desc' => __('Run spell checking'),
   131 			'download' => __('ieSpell not detected. Do you want to install it now?')
   131 			'download' => __('ieSpell not detected. Do you want to install it now?')
   132 		),
   132 		),
   133 
   133 
   134 		'advhr' => array(
   134 		'advhr' => array(
   135 			'advhr_desc' => __('Horizontale rule')
   135 			'advhr_desc' => __('Horizontal rule')
   136 		),
   136 		),
   137 
   137 
   138 		'emotions' => array(
   138 		'emotions' => array(
   139 			'emotions_desc' => __('Emotions')
   139 			'emotions_desc' => __('Emotions')
   140 		),
   140 		),
   444 		'defaultframe' => __('Default frame'),
   444 		'defaultframe' => __('Default frame'),
   445 		'playcount' => __('Play count'),
   445 		'playcount' => __('Play count'),
   446 		'rate' => __('Rate'),
   446 		'rate' => __('Rate'),
   447 		'uimode' => __('UI Mode'),
   447 		'uimode' => __('UI Mode'),
   448 		'flash_options' => __('Flash options'),
   448 		'flash_options' => __('Flash options'),
   449 		'qt_options' => __('Quicktime options'),
   449 		'qt_options' => __('QuickTime options'),
   450 		'wmp_options' => __('Windows media player options'),
   450 		'wmp_options' => __('Windows media player options'),
   451 		'rmp_options' => __('Real media player options'),
   451 		'rmp_options' => __('Real media player options'),
   452 		'shockwave_options' => __('Shockwave options'),
   452 		'shockwave_options' => __('Shockwave options'),
   453 		'autogotourl' => __('Auto goto URL'),
   453 		'autogotourl' => __('Auto goto URL'),
   454 		'center' => __('Center'),
   454 		'center' => __('Center'),
   507 		'add_media' => __('Add Media'),
   507 		'add_media' => __('Add Media'),
   508 		'add_image' => __('Add an Image'),
   508 		'add_image' => __('Add an Image'),
   509 		'add_video' => __('Add Video'),
   509 		'add_video' => __('Add Video'),
   510 		'add_audio' => __('Add Audio'),
   510 		'add_audio' => __('Add Audio'),
   511 		'editgallery' => __('Edit Gallery'),
   511 		'editgallery' => __('Edit Gallery'),
   512 		'delgallery' => __('Delete Gallery')
   512 		'delgallery' => __('Delete Gallery'),
       
   513 		'wp_fullscreen_desc' => __('Distraction Free Writing mode (Alt + Shift + W)')
   513 	);
   514 	);
   514 
   515 
   515 	$wpeditimage = array(
   516 	$wpeditimage = array(
   516 		'edit_img' => __('Edit Image'),
   517 		'edit_img' => __('Edit Image'),
   517 		'del_img' => __('Delete Image'),
   518 		'del_img' => __('Delete Image'),
   543 		's110' => __('110%'),
   544 		's110' => __('110%'),
   544 		's120' => __('120%'),
   545 		's120' => __('120%'),
   545 		's130' => __('130%'),
   546 		's130' => __('130%'),
   546 		'img_title' => __('Title'),
   547 		'img_title' => __('Title'),
   547 		'caption' => __('Caption'),
   548 		'caption' => __('Caption'),
   548 		'alt' => __('Alternate Text')
   549 		'alt' => __('Alternative Text')
   549 	);
   550 	);
   550 
   551 
   551 	$locale = _WP_Editors::$mce_locale;
   552 	$locale = _WP_Editors::$mce_locale;
   552 
   553 
   553 	$translated = 'tinyMCE.addI18n({' . $locale . ':' . json_encode( $default ) . "});\n";
   554 	$translated = 'tinyMCE.addI18n({' . $locale . ':' . json_encode( $default ) . "});\n";