Make WordPress Core


Ignore:
Timestamp:
04/10/2011 06:36:05 PM (14 years ago)
Author:
azaozz
Message:

Update TinyMCE to 3.4.2, includes native <iframe>, <audio>, <video> support and stops removing HTML 5.0 tags, fixes #17086

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/langs/wp-langs.php

    r16656 r17625  
    11<?php
    2 
    3 function mce_put_file( $path, $content ) {
    4     if ( function_exists('file_put_contents') )
    5         return @file_put_contents( $path, $content );
    6 
    7     $newfile = false;
    8     $fp = @fopen( $path, 'wb' );
    9     if ($fp) {
    10         $newfile = fwrite( $fp, $content );
    11         fclose($fp);
    12     }
    13     return $newfile;
    14 }
    152
    163// escape text only if it needs translating
     
    185    global $language;
    196
    20     if ( 'en' == $language ) return $text;
    21     else return esc_js($text);
     7    if ( 'en' == $language )
     8        return $text;
     9    else
     10        return esc_js($text);
    2211}
    2312
     
    3726popup_blocked:"' . mce_escape( __('Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.') ) . '",
    3827invalid_data:"' . mce_escape( __('Error: Invalid values entered, these are marked in red.') ) . '",
     28invalid_data_number:"' . mce_escape( __('{#field} must be a number') ) . '",
     29invalid_data_min:"' . mce_escape( __('{#field} must be a number greater than {#min}') ) . '",
     30invalid_data_size:"' . mce_escape( __('{#field} must be a number or percentage') ) . '",
    3931more_colors:"' . mce_escape( __('More colors') ) . '"
     32},
     33colors:{
     34"000000":"' . mce_escape( __('Black') ) . '",
     35"993300":"' . mce_escape( __('Burnt orange') ) . '",
     36"333300":"' . mce_escape( __('Dark olive') ) . '",
     37"003300":"' . mce_escape( __('Dark green') ) . '",
     38"003366":"' . mce_escape( __('Dark azure') ) . '",
     39"000080":"' . mce_escape( __('Navy Blue') ) . '",
     40"333399":"' . mce_escape( __('Indigo') ) . '",
     41"333333":"' . mce_escape( __('Very dark gray') ) . '",
     42"800000":"' . mce_escape( __('Maroon') ) . '",
     43"FF6600":"' . mce_escape( __('Orange') ) . '",
     44"808000":"' . mce_escape( __('Olive') ) . '",
     45"008000":"' . mce_escape( __('Green') ) . '",
     46"008080":"' . mce_escape( __('Teal') ) . '",
     47"0000FF":"' . mce_escape( __('Blue') ) . '",
     48"666699":"' . mce_escape( __('Grayish blue') ) . '",
     49"808080":"' . mce_escape( __('Gray') ) . '",
     50"FF0000":"' . mce_escape( __('Red') ) . '",
     51"FF9900":"' . mce_escape( __('Amber') ) . '",
     52"99CC00":"' . mce_escape( __('Yellow green') ) . '",
     53"339966":"' . mce_escape( __('Sea green') ) . '",
     54"33CCCC":"' . mce_escape( __('Turquoise') ) . '",
     55"3366FF":"' . mce_escape( __('Royal blue') ) . '",
     56"800080":"' . mce_escape( __('Purple') ) . '",
     57"999999":"' . mce_escape( __('Medium gray') ) . '",
     58"FF00FF":"' . mce_escape( __('Magenta') ) . '",
     59"FFCC00":"' . mce_escape( __('Gold') ) . '",
     60"FFFF00":"' . mce_escape( __('Yellow') ) . '",
     61"00FF00":"' . mce_escape( __('Lime') ) . '",
     62"00FFFF":"' . mce_escape( __('Aqua') ) . '",
     63"00CCFF":"' . mce_escape( __('Sky blue') ) . '",
     64"993366":"' . mce_escape( __('Brown') ) . '",
     65"C0C0C0":"' . mce_escape( __('Silver') ) . '",
     66"FF99CC":"' . mce_escape( __('Pink') ) . '",
     67"FFCC99":"' . mce_escape( __('Peach') ) . '",
     68"FFFF99":"' . mce_escape( __('Light yellow') ) . '",
     69"CCFFCC":"' . mce_escape( __('Pale green') ) . '",
     70"CCFFFF":"' . mce_escape( __('Pale cyan') ) . '",
     71"99CCFF":"' . mce_escape( __('Light sky blue') ) . '",
     72"CC99FF":"' . mce_escape( __('Plum') ) . '",
     73"FFFFFF":"' . mce_escape( __('White') ) . '"
    4074},
    4175contextmenu:{
     
    114148paste_text_desc:"' . mce_escape( __('Paste as Plain Text') ) . '",
    115149paste_word_desc:"' . mce_escape( __('Paste from Word') ) . '",
    116 selectall_desc:"' . mce_escape( __('Select All') ) . '"
     150selectall_desc:"' . mce_escape( __('Select All') ) . '",
     151plaintext_mode_sticky:"' . mce_escape( __('Paste is now in plain text mode. Click again to toggle back to regular paste mode. After you paste something you will be returned to regular paste mode.') ) . '",
     152plaintext_mode:"' . mce_escape( __('Paste is now in plain text mode. Click again to toggle back to regular paste mode.') ) . '"
    117153},
    118154paste_dlg:{
     
    151187media:{
    152188desc:"' . mce_escape( __('Insert / edit embedded media') ) . '",
    153 delta_width:"' . /* translators: Extra width for the media popup in pixels */ mce_escape( _x('0', 'media popup width') ) . '",
    154 delta_height:"' . /* translators: Extra height for the media popup in pixels */ mce_escape( _x('0', 'media popup height') ) . '",
    155189edit:"' . mce_escape( __('Edit embedded media') ) . '"
    156190},
     
    173207sug:"' . mce_escape( __('Suggestions') ) . '",
    174208no_sug:"' . mce_escape( __('No suggestions') ) . '",
    175 no_mpell:"' . mce_escape( __('No misspellings found.') ) . '"
     209no_mpell:"' . mce_escape( __('No misspellings found.') ) . '",
     210learn_word:"' . mce_escape( __('Learn word') ) . '"
    176211},
    177212pagebreak:{
    178213desc:"' . mce_escape( __('Insert Page Break') ) . '"
    179 }}});
     214},
     215advlist:{
     216types:"' . mce_escape( __('Types') ) . '",
     217def:"' . mce_escape( __('Default') ) . '",
     218lower_alpha:"' . mce_escape( __('Lower alpha') ) . '",
     219lower_greek:"' . mce_escape( __('Lower greek') ) . '",
     220lower_roman:"' . mce_escape( __('Lower roman') ) . '",
     221upper_alpha:"' . mce_escape( __('Upper alpha') ) . '",
     222upper_roman:"' . mce_escape( __('Upper roman') ) . '",
     223circle:"' . mce_escape( __('Circle') ) . '",
     224disc:"' . mce_escape( __('Disc') ) . '",
     225square:"' . mce_escape( __('Square') ) . '"
     226},
     227aria:{
     228rich_text_area:"' . mce_escape( __('Rich Text Area') ) . '"
     229},
     230wordcount:{
     231words:"' . mce_escape( __('Words:') ) . ' "
     232}
     233}});
    180234
    181235tinyMCE.addI18n("' . $language . '.advanced",{
     
    214268redo_desc:"' . mce_escape( __('Redo') ) . ' (Ctrl+Y)",
    215269link_desc:"' . mce_escape( __('Insert/edit link') ) . ' (Alt+Shift+A)",
    216 link_delta_width:"' . /* translators: Extra width for the link popup in pixels */ mce_escape( _x('0', 'link popup width') ) . '",
    217 link_delta_height:"' . /* translators: Extra height for the link popup in pixels */ mce_escape( _x('0', 'link popup height') ) . '",
    218270unlink_desc:"' . mce_escape( __('Unlink') ) . ' (Alt+Shift+S)",
    219271image_desc:"' . mce_escape( __('Insert/edit image') ) . ' (Alt+Shift+M)",
    220 image_delta_width:"' . /* translators: Extra width for the image popup in pixels */ mce_escape( _x('0', 'image popup width') ) . '",
    221 image_delta_height:"' . /* translators: Extra height for the image popup in pixels */ mce_escape( _x('0', 'image popup height') ) . '",
    222272cleanup_desc:"' . mce_escape( __('Cleanup messy code') ) . '",
    223273code_desc:"' . mce_escape( __('Edit HTML Source') ) . '",
     
    243293toolbar_focus:"' . mce_escape( __('Jump to tool buttons - Alt+Q, Jump to editor - Alt-Z, Jump to element path - Alt-X') ) . '",
    244294more_colors:"' . mce_escape( __('More colors') ) . '",
    245 colorpicker_delta_width:"' . /* translators: Extra width for the colorpicker popup in pixels */ mce_escape( _x('0', 'colorpicker popup width') ) . '",
    246 colorpicker_delta_height:"' . /* translators: Extra height for the colorpicker popup in pixels */ mce_escape( _x('0', 'colorpicker popup height') ) . '"
     295shortcuts_desc:"' . mce_escape( __('Accessibility Help') ) . '",
     296help_shortcut:" ' . mce_escape( __('Press ALT F10 for toolbar. Press ALT 0 for help.') ) . '",
     297rich_text_area:"' . mce_escape( __('Rich Text Area') ) . '",
     298toolbar:"' . mce_escape( __('Toolbar') ) . '"
    247299});
    248300
     
    296348link_is_email:"' . mce_escape( __('The URL you entered seems to be an email address, do you want to add the required mailto: prefix?') ) . '",
    297349link_is_external:"' . mce_escape( __('The URL you entered seems to external link, do you want to add the required http:// prefix?') ) . '",
    298 link_list:"' . mce_escape( __('Link list') ) . '"
     350link_list:"' . mce_escape( __('Link list') ) . '",
     351accessibility_help:"' . mce_escape( __('Accessibility Help') ) . '",
     352accessibility_usage_title:"' . mce_escape( __('General Usage') ) . '"
    299353});
    300354
     
    400454flv_showscalemodes:"' . mce_escape( __('Show scale modes') ) . '",
    401455flv_smoothvideo:"' . mce_escape( __('Smooth video') ) . '",
    402 flv_jscallback:"' . mce_escape( __('JS Callback') ) . '"
     456flv_jscallback:"' . mce_escape( __('JS Callback') ) . '",
     457html5_video_options:"' . mce_escape( __('HTML5 Video Options') ) . '",
     458altsource1:"' . mce_escape( __('Alternative source 1') ) . '",
     459altsource2:"' . mce_escape( __('Alternative source 2') ) . '",
     460preload:"' . mce_escape( __('Preload') ) . '",
     461poster:"' . mce_escape( __('Poster') ) . '",
     462source:"' . mce_escape( __('Source') ) . '"
    403463});
    404464
Note: See TracChangeset for help on using the changeset viewer.