3 if ( ! defined( 'ABSPATH' ) )
6 // deprecated, not used
7 function mce_escape($text) {
11 function wp_mce_translation() {
15 'edit_confirm' => __('Do you want to use the WYSIWYG mode for this textarea?'),
16 'apply' => __('Apply'),
17 'insert' => __('Insert'),
18 'update' => __('Update'),
19 'cancel' => __('Cancel'),
20 'close' => __('Close'),
21 'browse' => __('Browse'),
22 'class_name' => __('Class'),
23 'not_set' => __('-- Not set --'),
24 'clipboard_msg' => __('Copy/Cut/Paste is not available in Mozilla and Firefox.'),
25 'clipboard_no_support' => __('Currently not supported by your browser, use keyboard shortcuts instead.'),
26 'popup_blocked' => __('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.'),
27 'invalid_data' => __('ERROR: Invalid values entered, these are marked in red.'),
28 'invalid_data_number' => __('{#field} must be a number'),
29 'invalid_data_min' => __('{#field} must be a number greater than {#min}'),
30 'invalid_data_size' => __('{#field} must be a number or percentage'),
31 'more_colors' => __('More colors')
35 '000000' => __('Black'),
36 '993300' => __('Burnt orange'),
37 '333300' => __('Dark olive'),
38 '003300' => __('Dark green'),
39 '003366' => __('Dark azure'),
40 '000080' => __('Navy Blue'),
41 '333399' => __('Indigo'),
42 '333333' => __('Very dark gray'),
43 '800000' => __('Maroon'),
44 'FF6600' => __('Orange'),
45 '808000' => __('Olive'),
46 '008000' => __('Green'),
47 '008080' => __('Teal'),
48 '0000FF' => __('Blue'),
49 '666699' => __('Grayish blue'),
50 '808080' => __('Gray'),
51 'FF0000' => __('Red'),
52 'FF9900' => __('Amber'),
53 '99CC00' => __('Yellow green'),
54 '339966' => __('Sea green'),
55 '33CCCC' => __('Turquoise'),
56 '3366FF' => __('Royal blue'),
57 '800080' => __('Purple'),
58 '999999' => __('Medium gray'),
59 'FF00FF' => __('Magenta'),
60 'FFCC00' => __('Gold'),
61 'FFFF00' => __('Yellow'),
62 '00FF00' => __('Lime'),
63 '00FFFF' => __('Aqua'),
64 '00CCFF' => __('Sky blue'),
65 '993366' => __('Brown'),
66 'C0C0C0' => __('Silver'),
67 'FF99CC' => __('Pink'),
68 'FFCC99' => __('Peach'),
69 'FFFF99' => __('Light yellow'),
70 'CCFFCC' => __('Pale green'),
71 'CCFFFF' => __('Pale cyan'),
72 '99CCFF' => __('Light sky blue'),
73 'CC99FF' => __('Plum'),
74 'FFFFFF' => __('White')
77 'contextmenu' => array(
78 'align' => __('Alignment'), /* translators: alignment */
79 'left' => __('Left'), /* translators: alignment */
80 'center' => __('Center'), /* translators: alignment */
81 'right' => __('Right'), /* translators: alignment */
82 'full' => __('Full') /* translators: alignment */
85 'insertdatetime' => array(
86 'date_fmt' => __('%Y-%m-%d'), /* translators: year, month, date */
87 'time_fmt' => __('%H:%M:%S'), /* translators: hours, minutes, seconds */
88 'insertdate_desc' => __('Insert date'),
89 'inserttime_desc' => __('Insert time'),
90 'months_long' => __('January').','.__('February').','.__('March').','.__('April').','.__('May').','.__('June').','.__('July').','.__('August').','.__('September').','.__('October').','.__('November').','.__('December'),
91 'months_short' => __('Jan_January_abbreviation').','.__('Feb_February_abbreviation').','.__('Mar_March_abbreviation').','.__('Apr_April_abbreviation').','.__('May_May_abbreviation').','.__('Jun_June_abbreviation').','.__('Jul_July_abbreviation').','.__('Aug_August_abbreviation').','.__('Sep_September_abbreviation').','.__('Oct_October_abbreviation').','.__('Nov_November_abbreviation').','.__('Dec_December_abbreviation'),
92 'day_long' => __('Sunday').','.__('Monday').','.__('Tuesday').','.__('Wednesday').','.__('Thursday').','.__('Friday').','.__('Saturday'),
93 'day_short' => __('Sun').','.__('Mon').','.__('Tue').','.__('Wed').','.__('Thu').','.__('Fri').','.__('Sat')
97 'print_desc' => __('Print')
101 'preview_desc' => __('Preview')
104 'directionality' => array(
105 'ltr_desc' => __('Direction left to right'),
106 'rtl_desc' => __('Direction right to left')
110 'insertlayer_desc' => __('Insert new layer'),
111 'forward_desc' => __('Move forward'),
112 'backward_desc' => __('Move backward'),
113 'absolute_desc' => __('Toggle absolute positioning'),
114 'content' => __('New layer...')
118 'save_desc' => __('Save'),
119 'cancel_desc' => __('Cancel all changes')
122 'nonbreaking' => array(
123 'nonbreaking_desc' => __('Insert non-breaking space character')
127 'iespell_desc' => __('Run spell checking'),
128 'download' => __('ieSpell not detected. Do you want to install it now?')
132 'advhr_desc' => __('Horizontale rule')
136 'emotions_desc' => __('Emotions')
139 'searchreplace' => array(
140 'search_desc' => __('Find'),
141 'replace_desc' => __('Find/Replace')
145 'image_desc' => __('Insert/edit image')
149 'link_desc' => __('Insert/edit link')
152 'xhtmlxtras' => array(
153 'cite_desc' => __('Citation'),
154 'abbr_desc' => __('Abbreviation'),
155 'acronym_desc' => __('Acronym'),
156 'del_desc' => __('Deletion'),
157 'ins_desc' => __('Insertion'),
158 'attribs_desc' => __('Insert/Edit Attributes')
162 'desc' => __('Edit CSS Style')
166 'paste_text_desc' => __('Paste as Plain Text'),
167 'paste_word_desc' => __('Paste from Word'),
168 'selectall_desc' => __('Select All'),
169 'plaintext_mode_sticky' => __('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.'),
170 'plaintext_mode' => __('Paste is now in plain text mode. Click again to toggle back to regular paste mode.')
173 'paste_dlg' => array(
174 'text_title' => __('Use CTRL+V on your keyboard to paste the text into the window.'),
175 'text_linebreaks' => __('Keep linebreaks'),
176 'word_title' => __('Use CTRL+V on your keyboard to paste the text into the window.')
180 'desc' => __('Inserts a new table'),
181 'row_before_desc' => __('Insert row before'),
182 'row_after_desc' => __('Insert row after'),
183 'delete_row_desc' => __('Delete row'),
184 'col_before_desc' => __('Insert column before'),
185 'col_after_desc' => __('Insert column after'),
186 'delete_col_desc' => __('Remove column'),
187 'split_cells_desc' => __('Split merged table cells'),
188 'merge_cells_desc' => __('Merge table cells'),
189 'row_desc' => __('Table row properties'),
190 'cell_desc' => __('Table cell properties'),
191 'props_desc' => __('Table properties'),
192 'paste_row_before_desc' => __('Paste table row before'),
193 'paste_row_after_desc' => __('Paste table row after'),
194 'cut_row_desc' => __('Cut table row'),
195 'copy_row_desc' => __('Copy table row'),
196 'del' => __('Delete table'),
198 'col' => __('Column'),
203 'unload_msg' => __('The changes you made will be lost if you navigate away from this page.')
206 'fullscreen' => array(
207 'desc' => __('Toggle fullscreen mode (Alt + Shift + G)')
211 'desc' => __('Insert / edit embedded media'),
212 'edit' => __('Edit embedded media')
216 'desc' => __('Document properties')
220 'desc' => __('Insert predefined template content')
223 'visualchars' => array(
224 'desc' => __('Visual control characters on/off.')
227 'spellchecker' => array(
228 'desc' => __('Toggle spellchecker (Alt + Shift + N)'),
229 'menu' => __('Spellchecker settings'),
230 'ignore_word' => __('Ignore word'),
231 'ignore_words' => __('Ignore all'),
232 'langs' => __('Languages'),
233 'wait' => __('Please wait...'),
234 'sug' => __('Suggestions'),
235 'no_sug' => __('No suggestions'),
236 'no_mpell' => __('No misspellings found.'),
237 'learn_word' => __('Learn word')
240 'pagebreak' => array(
241 'desc' => __('Insert Page Break')
245 'types' => __('Types'),
246 'def' => __('Default'),
247 'lower_alpha' => __('Lower alpha'),
248 'lower_greek' => __('Lower greek'),
249 'lower_roman' => __('Lower roman'),
250 'upper_alpha' => __('Upper alpha'),
251 'upper_roman' => __('Upper roman'),
252 'circle' => __('Circle'),
253 'disc' => __('Disc'),
254 'square' => __('Square')
258 'rich_text_area' => __('Rich Text Area')
261 'wordcount' => array(
262 'words' => __('Words:')
267 'style_select' => __('Styles'), /* translators: TinyMCE inline styles */
268 'font_size' => __('Font size'),
269 'fontdefault' => __('Font family'),
270 'block' => __('Format'),
271 'paragraph' => __('Paragraph'),
273 'address' => __('Address'),
274 'pre' => __('Preformatted'),
275 'h1' => __('Heading 1'),
276 'h2' => __('Heading 2'),
277 'h3' => __('Heading 3'),
278 'h4' => __('Heading 4'),
279 'h5' => __('Heading 5'),
280 'h6' => __('Heading 6'),
281 'blockquote' => __('Blockquote'),
282 'code' => __('Code'),
283 'samp' => __('Code sample'),
284 'dt' => __('Definition term '),
285 'dd' => __('Definition description'),
286 'bold_desc' => __('Bold (Ctrl + B)'),
287 'italic_desc' => __('Italic (Ctrl + I)'),
288 'underline_desc' => __('Underline'),
289 'striketrough_desc' => __('Strikethrough (Alt + Shift + D)'),
290 'justifyleft_desc' => __('Align Left (Alt + Shift + L)'),
291 'justifycenter_desc' => __('Align Center (Alt + Shift + C)'),
292 'justifyright_desc' => __('Align Right (Alt + Shift + R)'),
293 'justifyfull_desc' => __('Align Full (Alt + Shift + J)'),
294 'bullist_desc' => __('Unordered list (Alt + Shift + U)'),
295 'numlist_desc' => __('Ordered list (Alt + Shift + O)'),
296 'outdent_desc' => __('Outdent'),
297 'indent_desc' => __('Indent'),
298 'undo_desc' => __('Undo (Ctrl + Z)'),
299 'redo_desc' => __('Redo (Ctrl + Y)'),
300 'link_desc' => __('Insert/edit link (Alt + Shift + A)'),
301 'unlink_desc' => __('Unlink (Alt + Shift + S)'),
302 'image_desc' => __('Insert/edit image (Alt + Shift + M)'),
303 'cleanup_desc' => __('Cleanup messy code'),
304 'code_desc' => __('Edit HTML Source'),
305 'sub_desc' => __('Subscript'),
306 'sup_desc' => __('Superscript'),
307 'hr_desc' => __('Insert horizontal ruler'),
308 'removeformat_desc' => __('Remove formatting'),
309 'forecolor_desc' => __('Select text color'),
310 'backcolor_desc' => __('Select background color'),
311 'charmap_desc' => __('Insert custom character'),
312 'visualaid_desc' => __('Toggle guidelines/invisible elements'),
313 'anchor_desc' => __('Insert/edit anchor'),
314 'cut_desc' => __('Cut'),
315 'copy_desc' => __('Copy'),
316 'paste_desc' => __('Paste'),
317 'image_props_desc' => __('Image properties'),
318 'newdocument_desc' => __('New document'),
319 'help_desc' => __('Help'),
320 'blockquote_desc' => __('Blockquote (Alt + Shift + Q)'),
321 'clipboard_msg' => __('Copy/Cut/Paste is not available in Mozilla and Firefox.'),
322 'path' => __('Path'),
323 'newdocument' => __('Are you sure you want to clear all contents?'),
324 'toolbar_focus' => __('Jump to tool buttons - Alt+Q, Jump to editor - Alt-Z, Jump to element path - Alt-X'),
325 'more_colors' => __('More colors'),
326 'shortcuts_desc' => __('Accessibility Help'),
327 'help_shortcut' => __('Press ALT F10 for toolbar. Press ALT 0 for help.'),
328 'rich_text_area' => __('Rich Text Area'),
329 'toolbar' => __('Toolbar')
332 $advanced_dlg = array(
333 'about_title' => __('About TinyMCE'),
334 'about_general' => __('About'),
335 'about_help' => __('Help'),
336 'about_license' => __('License'),
337 'about_plugins' => __('Plugins'),
338 'about_plugin' => __('Plugin'),
339 'about_author' => __('Author'),
340 'about_version' => __('Version'),
341 'about_loaded' => __('Loaded plugins'),
342 'anchor_title' => __('Insert/edit anchor'),
343 'anchor_name' => __('Anchor name'),
344 'code_title' => __('HTML Source Editor'),
345 'code_wordwrap' => __('Word wrap'),
346 'colorpicker_title' => __('Select a color'),
347 'colorpicker_picker_tab' => __('Picker'),
348 'colorpicker_picker_title' => __('Color picker'),
349 'colorpicker_palette_tab' => __('Palette'),
350 'colorpicker_palette_title' => __('Palette colors'),
351 'colorpicker_named_tab' => __('Named'),
352 'colorpicker_named_title' => __('Named colors'),
353 'colorpicker_color' => __('Color:'),
354 'colorpicker_name' => _x('Name:', 'html attribute'),
355 'charmap_title' => __('Select custom character'),
356 'charmap_usage' => __('Use left and right arrows to navigate.'),
357 'image_title' => __('Insert/edit image'),
358 'image_src' => __('Image URL'),
359 'image_alt' => __('Image description'),
360 'image_list' => __('Image list'),
361 'image_border' => __('Border'),
362 'image_dimensions' => __('Dimensions'),
363 'image_vspace' => __('Vertical space'),
364 'image_hspace' => __('Horizontal space'),
365 'image_align' => __('Alignment'),
366 'image_align_baseline' => __('Baseline'),
367 'image_align_top' => __('Top'),
368 'image_align_middle' => __('Middle'),
369 'image_align_bottom' => __('Bottom'),
370 'image_align_texttop' => __('Text top'),
371 'image_align_textbottom' => __('Text bottom'),
372 'image_align_left' => __('Left'),
373 'image_align_right' => __('Right'),
374 'link_title' => __('Insert/edit link'),
375 'link_url' => __('Link URL'),
376 'link_target' => __('Target'),
377 'link_target_same' => __('Open link in the same window'),
378 'link_target_blank' => __('Open link in a new window'),
379 'link_titlefield' => __('Title'),
380 'link_is_email' => __('The URL you entered seems to be an email address, do you want to add the required mailto: prefix?'),
381 'link_is_external' => __('The URL you entered seems to external link, do you want to add the required http:// prefix?'),
382 'link_list' => __('Link list'),
383 'accessibility_help' => __('Accessibility Help'),
384 'accessibility_usage_title' => __('General Usage')
388 'title' => __('Insert / edit embedded media'),
389 'general' => __('General'),
390 'advanced' => __('Advanced'),
391 'file' => __('File/URL'),
392 'list' => __('List'),
393 'size' => __('Dimensions'),
394 'preview' => __('Preview'),
395 'constrain_proportions' => __('Constrain proportions'),
396 'type' => __('Type'),
398 'name' => _x('Name', 'html attribute'),
399 'class_name' => __('Class'),
400 'vspace' => __('V-Space'),
401 'hspace' => __('H-Space'),
402 'play' => __('Auto play'),
403 'loop' => __('Loop'),
404 'menu' => __('Show menu'),
405 'quality' => __('Quality'),
406 'scale' => __('Scale'),
407 'align' => __('Align'),
408 'salign' => __('SAlign'),
409 'wmode' => __('WMode'),
410 'bgcolor' => __('Background'),
411 'base' => __('Base'),
412 'flashvars' => __('Flashvars'),
413 'liveconnect' => __('SWLiveConnect'),
414 'autohref' => __('AutoHREF'),
415 'cache' => __('Cache'),
416 'hidden' => __('Hidden'),
417 'controller' => __('Controller'),
418 'kioskmode' => __('Kiosk mode'),
419 'playeveryframe' => __('Play every frame'),
420 'targetcache' => __('Target cache'),
421 'correction' => __('No correction'),
422 'enablejavascript' => __('Enable JavaScript'),
423 'starttime' => __('Start time'),
424 'endtime' => __('End time'),
425 'href' => __('href'),
426 'qtsrcchokespeed' => __('Choke speed'),
427 'target' => __('Target'),
428 'volume' => __('Volume'),
429 'autostart' => __('Auto start'),
430 'enabled' => __('Enabled'),
431 'fullscreen' => __('Fullscreen'),
432 'invokeurls' => __('Invoke URLs'),
433 'mute' => __('Mute'),
434 'stretchtofit' => __('Stretch to fit'),
435 'windowlessvideo' => __('Windowless video'),
436 'balance' => __('Balance'),
437 'baseurl' => __('Base URL'),
438 'captioningid' => __('Captioning id'),
439 'currentmarker' => __('Current marker'),
440 'currentposition' => __('Current position'),
441 'defaultframe' => __('Default frame'),
442 'playcount' => __('Play count'),
443 'rate' => __('Rate'),
444 'uimode' => __('UI Mode'),
445 'flash_options' => __('Flash options'),
446 'qt_options' => __('Quicktime options'),
447 'wmp_options' => __('Windows media player options'),
448 'rmp_options' => __('Real media player options'),
449 'shockwave_options' => __('Shockwave options'),
450 'autogotourl' => __('Auto goto URL'),
451 'center' => __('Center'),
452 'imagestatus' => __('Image status'),
453 'maintainaspect' => __('Maintain aspect'),
454 'nojava' => __('No java'),
455 'prefetch' => __('Prefetch'),
456 'shuffle' => __('Shuffle'),
457 'console' => __('Console'),
458 'numloop' => __('Num loops'),
459 'controls' => __('Controls'),
460 'scriptcallbacks' => __('Script callbacks'),
461 'swstretchstyle' => __('Stretch style'),
462 'swstretchhalign' => __('Stretch H-Align'),
463 'swstretchvalign' => __('Stretch V-Align'),
464 'sound' => __('Sound'),
465 'progress' => __('Progress'),
466 'qtsrc' => __('QT Src'),
467 'qt_stream_warn' => __('Streamed rtsp resources should be added to the QT Src field under the advanced tab.'),
468 'align_top' => __('Top'),
469 'align_right' => __('Right'),
470 'align_bottom' => __('Bottom'),
471 'align_left' => __('Left'),
472 'align_center' => __('Center'),
473 'align_top_left' => __('Top left'),
474 'align_top_right' => __('Top right'),
475 'align_bottom_left' => __('Bottom left'),
476 'align_bottom_right' => __('Bottom right'),
477 'flv_options' => __('Flash video options'),
478 'flv_scalemode' => __('Scale mode'),
479 'flv_buffer' => __('Buffer'),
480 'flv_startimage' => __('Start image'),
481 'flv_starttime' => __('Start time'),
482 'flv_defaultvolume' => __('Default volume'),
483 'flv_hiddengui' => __('Hidden GUI'),
484 'flv_autostart' => __('Auto start'),
485 'flv_loop' => __('Loop'),
486 'flv_showscalemodes' => __('Show scale modes'),
487 'flv_smoothvideo' => __('Smooth video'),
488 'flv_jscallback' => __('JS Callback'),
489 'html5_video_options' => __('HTML5 Video Options'),
490 'altsource1' => __('Alternative source 1'),
491 'altsource2' => __('Alternative source 2'),
492 'preload' => __('Preload'),
493 'poster' => __('Poster'),
494 'source' => __('Source')
498 'wp_adv_desc' => __('Show/Hide Kitchen Sink (Alt + Shift + Z)'),
499 'wp_more_desc' => __('Insert More Tag (Alt + Shift + T)'),
500 'wp_page_desc' => __('Insert Page break (Alt + Shift + P)'),
501 'wp_help_desc' => __('Help (Alt + Shift + H)'),
502 'wp_more_alt' => __('More...'),
503 'wp_page_alt' => __('Next page...'),
504 'add_media' => __('Add Media'),
505 'add_image' => __('Add an Image'),
506 'add_video' => __('Add Video'),
507 'add_audio' => __('Add Audio'),
508 'editgallery' => __('Edit Gallery'),
509 'delgallery' => __('Delete Gallery')
512 $wpeditimage = array(
513 'edit_img' => __('Edit Image'),
514 'del_img' => __('Delete Image'),
515 'adv_settings' => __('Advanced Settings'),
516 'none' => __('None'),
517 'size' => __('Size'),
518 'thumbnail' => __('Thumbnail'),
519 'medium' => __('Medium'),
520 'full_size' => __('Full Size'),
521 'current_link' => __('Current Link'),
522 'link_to_img' => __('Link to Image'),
523 'link_help' => __('Enter a link URL or click above for presets.'),
524 'adv_img_settings' => __('Advanced Image Settings'),
525 'source' => __('Source'),
526 'width' => __('Width'),
527 'height' => __('Height'),
528 'orig_size' => __('Original Size'),
529 'css' => __('CSS Class'),
530 'adv_link_settings' => __('Advanced Link Settings'),
531 'link_rel' => __('Link Rel'),
532 'height' => __('Height'),
533 'orig_size' => __('Original Size'),
534 'css' => __('CSS Class'),
539 's100' => __('100%'),
540 's110' => __('110%'),
541 's120' => __('120%'),
542 's130' => __('130%'),
543 'img_title' => __('Title'),
544 'caption' => __('Caption'),
545 'alt' => __('Alternate Text')
548 $locale = _WP_Editors::$mce_locale;
550 $translated = 'tinyMCE.addI18n({' . $locale . ':' . json_encode( $default ) . "});\n";
551 $translated .= 'tinyMCE.addI18n("' . $locale . '.advanced", ' . json_encode( $advanced ) . ");\n";
552 $translated .= 'tinyMCE.addI18n("' . $locale . '.advanced_dlg", ' . json_encode( $advanced_dlg ) . ");\n";
553 $translated .= 'tinyMCE.addI18n("' . $locale . '.media_dlg", ' . json_encode( $media_dlg ) . ");\n";
554 $translated .= 'tinyMCE.addI18n("' . $locale . '.wordpress", ' . json_encode( $wordpress ) . ");\n";
555 $translated .= 'tinyMCE.addI18n("' . $locale . '.wpeditimage", ' . json_encode( $wpeditimage ) . ');';
560 $lang = wp_mce_translation();