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