Changeset 17625 for trunk/wp-includes/js/tinymce/langs/wp-langs.php
- Timestamp:
- 04/10/2011 06:36:05 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/tinymce/langs/wp-langs.php
r16656 r17625 1 1 <?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 }15 2 16 3 // escape text only if it needs translating … … 18 5 global $language; 19 6 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); 22 11 } 23 12 … … 37 26 popup_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.') ) . '", 38 27 invalid_data:"' . mce_escape( __('Error: Invalid values entered, these are marked in red.') ) . '", 28 invalid_data_number:"' . mce_escape( __('{#field} must be a number') ) . '", 29 invalid_data_min:"' . mce_escape( __('{#field} must be a number greater than {#min}') ) . '", 30 invalid_data_size:"' . mce_escape( __('{#field} must be a number or percentage') ) . '", 39 31 more_colors:"' . mce_escape( __('More colors') ) . '" 32 }, 33 colors:{ 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') ) . '" 40 74 }, 41 75 contextmenu:{ … … 114 148 paste_text_desc:"' . mce_escape( __('Paste as Plain Text') ) . '", 115 149 paste_word_desc:"' . mce_escape( __('Paste from Word') ) . '", 116 selectall_desc:"' . mce_escape( __('Select All') ) . '" 150 selectall_desc:"' . mce_escape( __('Select All') ) . '", 151 plaintext_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.') ) . '", 152 plaintext_mode:"' . mce_escape( __('Paste is now in plain text mode. Click again to toggle back to regular paste mode.') ) . '" 117 153 }, 118 154 paste_dlg:{ … … 151 187 media:{ 152 188 desc:"' . 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') ) . '",155 189 edit:"' . mce_escape( __('Edit embedded media') ) . '" 156 190 }, … … 173 207 sug:"' . mce_escape( __('Suggestions') ) . '", 174 208 no_sug:"' . mce_escape( __('No suggestions') ) . '", 175 no_mpell:"' . mce_escape( __('No misspellings found.') ) . '" 209 no_mpell:"' . mce_escape( __('No misspellings found.') ) . '", 210 learn_word:"' . mce_escape( __('Learn word') ) . '" 176 211 }, 177 212 pagebreak:{ 178 213 desc:"' . mce_escape( __('Insert Page Break') ) . '" 179 }}}); 214 }, 215 advlist:{ 216 types:"' . mce_escape( __('Types') ) . '", 217 def:"' . mce_escape( __('Default') ) . '", 218 lower_alpha:"' . mce_escape( __('Lower alpha') ) . '", 219 lower_greek:"' . mce_escape( __('Lower greek') ) . '", 220 lower_roman:"' . mce_escape( __('Lower roman') ) . '", 221 upper_alpha:"' . mce_escape( __('Upper alpha') ) . '", 222 upper_roman:"' . mce_escape( __('Upper roman') ) . '", 223 circle:"' . mce_escape( __('Circle') ) . '", 224 disc:"' . mce_escape( __('Disc') ) . '", 225 square:"' . mce_escape( __('Square') ) . '" 226 }, 227 aria:{ 228 rich_text_area:"' . mce_escape( __('Rich Text Area') ) . '" 229 }, 230 wordcount:{ 231 words:"' . mce_escape( __('Words:') ) . ' " 232 } 233 }}); 180 234 181 235 tinyMCE.addI18n("' . $language . '.advanced",{ … … 214 268 redo_desc:"' . mce_escape( __('Redo') ) . ' (Ctrl+Y)", 215 269 link_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') ) . '",218 270 unlink_desc:"' . mce_escape( __('Unlink') ) . ' (Alt+Shift+S)", 219 271 image_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') ) . '",222 272 cleanup_desc:"' . mce_escape( __('Cleanup messy code') ) . '", 223 273 code_desc:"' . mce_escape( __('Edit HTML Source') ) . '", … … 243 293 toolbar_focus:"' . mce_escape( __('Jump to tool buttons - Alt+Q, Jump to editor - Alt-Z, Jump to element path - Alt-X') ) . '", 244 294 more_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') ) . '" 295 shortcuts_desc:"' . mce_escape( __('Accessibility Help') ) . '", 296 help_shortcut:" ' . mce_escape( __('Press ALT F10 for toolbar. Press ALT 0 for help.') ) . '", 297 rich_text_area:"' . mce_escape( __('Rich Text Area') ) . '", 298 toolbar:"' . mce_escape( __('Toolbar') ) . '" 247 299 }); 248 300 … … 296 348 link_is_email:"' . mce_escape( __('The URL you entered seems to be an email address, do you want to add the required mailto: prefix?') ) . '", 297 349 link_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') ) . '" 350 link_list:"' . mce_escape( __('Link list') ) . '", 351 accessibility_help:"' . mce_escape( __('Accessibility Help') ) . '", 352 accessibility_usage_title:"' . mce_escape( __('General Usage') ) . '" 299 353 }); 300 354 … … 400 454 flv_showscalemodes:"' . mce_escape( __('Show scale modes') ) . '", 401 455 flv_smoothvideo:"' . mce_escape( __('Smooth video') ) . '", 402 flv_jscallback:"' . mce_escape( __('JS Callback') ) . '" 456 flv_jscallback:"' . mce_escape( __('JS Callback') ) . '", 457 html5_video_options:"' . mce_escape( __('HTML5 Video Options') ) . '", 458 altsource1:"' . mce_escape( __('Alternative source 1') ) . '", 459 altsource2:"' . mce_escape( __('Alternative source 2') ) . '", 460 preload:"' . mce_escape( __('Preload') ) . '", 461 poster:"' . mce_escape( __('Poster') ) . '", 462 source:"' . mce_escape( __('Source') ) . '" 403 463 }); 404 464
Note: See TracChangeset
for help on using the changeset viewer.