first commit

This commit is contained in:
alazhar
2020-01-02 23:15:16 +07:00
commit eda9661806
3433 changed files with 595883 additions and 0 deletions

View File

@ -0,0 +1,504 @@
tinyMCE.addI18n({en:{
common:{
edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?",
apply:"Apply",
insert:"Insert",
update:"Update",
cancel:"Cancel",
close:"Close",
browse:"Browse",
class_name:"Class",
not_set:"-- Not set --",
clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.",
clipboard_no_support:"Currently not supported by your browser, use keyboard shortcuts instead.",
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.",
invalid_data:"ERROR: Invalid values entered, these are marked in red.",
invalid_data_number:"{#field} must be a number",
invalid_data_min:"{#field} must be a number greater than {#min}",
invalid_data_size:"{#field} must be a number or percentage",
more_colors:"More colors"
},
colors:{
"000000":"Black",
"993300":"Burnt orange",
"333300":"Dark olive",
"003300":"Dark green",
"003366":"Dark azure",
"000080":"Navy Blue",
"333399":"Indigo",
"333333":"Very dark gray",
"800000":"Maroon",
"FF6600":"Orange",
"808000":"Olive",
"008000":"Green",
"008080":"Teal",
"0000FF":"Blue",
"666699":"Grayish blue",
"808080":"Gray",
"FF0000":"Red",
"FF9900":"Amber",
"99CC00":"Yellow green",
"339966":"Sea green",
"33CCCC":"Turquoise",
"3366FF":"Royal blue",
"800080":"Purple",
"999999":"Medium gray",
"FF00FF":"Magenta",
"FFCC00":"Gold",
"FFFF00":"Yellow",
"00FF00":"Lime",
"00FFFF":"Aqua",
"00CCFF":"Sky blue",
"993366":"Brown",
"C0C0C0":"Silver",
"FF99CC":"Pink",
"FFCC99":"Peach",
"FFFF99":"Light yellow",
"CCFFCC":"Pale green",
"CCFFFF":"Pale cyan",
"99CCFF":"Light sky blue",
"CC99FF":"Plum",
"FFFFFF":"White"
},
contextmenu:{
align:"Alignment",
left:"Left",
center:"Center",
right:"Right",
full:"Full"
},
insertdatetime:{
date_fmt:"%Y-%m-%d",
time_fmt:"%H:%M:%S",
insertdate_desc:"Insert date",
inserttime_desc:"Insert time",
months_long:"January,February,March,April,May,June,July,August,September,October,November,December",
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",
day_long:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday",
day_short:"Sun,Mon,Tue,Wed,Thu,Fri,Sat"
},
print:{
print_desc:"Print"
},
preview:{
preview_desc:"Preview"
},
directionality:{
ltr_desc:"Direction left to right",
rtl_desc:"Direction right to left"
},
layer:{
insertlayer_desc:"Insert new layer",
forward_desc:"Move forward",
backward_desc:"Move backward",
absolute_desc:"Toggle absolute positioning",
content:"New layer..."
},
save:{
save_desc:"Save",
cancel_desc:"Cancel all changes"
},
nonbreaking:{
nonbreaking_desc:"Insert non-breaking space character"
},
iespell:{
iespell_desc:"Run spell checking",
download:"ieSpell not detected. Do you want to install it now?"
},
advhr:{
advhr_desc:"Horizontal rule"
},
emotions:{
emotions_desc:"Emotions"
},
searchreplace:{
search_desc:"Find",
replace_desc:"Find/Replace"
},
advimage:{
image_desc:"Insert/edit image"
},
advlink:{
link_desc:"Insert/edit link"
},
xhtmlxtras:{
cite_desc:"Citation",
abbr_desc:"Abbreviation",
acronym_desc:"Acronym",
del_desc:"Deletion",
ins_desc:"Insertion",
attribs_desc:"Insert/Edit Attributes"
},
style:{
desc:"Edit CSS Style"
},
paste:{
paste_text_desc:"Paste as Plain Text",
paste_word_desc:"Paste from Word",
selectall_desc:"Select All",
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.",
plaintext_mode:"Paste is now in plain text mode. Click again to toggle back to regular paste mode."
},
paste_dlg:{
text_title:"Use CTRL + V on your keyboard to paste the text into the window.",
text_linebreaks:"Keep linebreaks",
word_title:"Use CTRL + V on your keyboard to paste the text into the window."
},
table:{
desc:"Inserts a new table",
row_before_desc:"Insert row before",
row_after_desc:"Insert row after",
delete_row_desc:"Delete row",
col_before_desc:"Insert column before",
col_after_desc:"Insert column after",
delete_col_desc:"Remove column",
split_cells_desc:"Split merged table cells",
merge_cells_desc:"Merge table cells",
row_desc:"Table row properties",
cell_desc:"Table cell properties",
props_desc:"Table properties",
paste_row_before_desc:"Paste table row before",
paste_row_after_desc:"Paste table row after",
cut_row_desc:"Cut table row",
copy_row_desc:"Copy table row",
del:"Delete table",
row:"Row",
col:"Column",
cell:"Cell"
},
autosave:{
unload_msg:"The changes you made will be lost if you navigate away from this page."
},
fullscreen:{
desc:"Toggle fullscreen mode (Alt + Shift + G)"
},
media:{
desc:"Insert / edit embedded media",
edit:"Edit embedded media"
},
fullpage:{
desc:"Document properties"
},
template:{
desc:"Insert predefined template content"
},
visualchars:{
desc:"Visual control characters on/off."
},
spellchecker:{
desc:"Toggle spellchecker (Alt + Shift + N)",
menu:"Spellchecker settings",
ignore_word:"Ignore word",
ignore_words:"Ignore all",
langs:"Languages",
wait:"Please wait...",
sug:"Suggestions",
no_sug:"No suggestions",
no_mpell:"No misspellings found.",
learn_word:"Learn word"
},
pagebreak:{
desc:"Insert Page Break"
},
advlist:{
types:"Types",
def:"Default",
lower_alpha:"Lower alpha",
lower_greek:"Lower greek",
lower_roman:"Lower roman",
upper_alpha:"Upper alpha",
upper_roman:"Upper roman",
circle:"Circle",
disc:"Disc",
square:"Square"
},
aria:{
rich_text_area:"Rich Text Area"
},
wordcount:{
words:"Words: "
}
}});
tinyMCE.addI18n("en.advanced",{
style_select:"Styles",
font_size:"Font size",
fontdefault:"Font family",
block:"Format",
paragraph:"Paragraph",
div:"Div",
address:"Address",
pre:"Preformatted",
h1:"Heading 1",
h2:"Heading 2",
h3:"Heading 3",
h4:"Heading 4",
h5:"Heading 5",
h6:"Heading 6",
blockquote:"Blockquote",
code:"Code",
samp:"Code sample",
dt:"Definition term ",
dd:"Definition description",
bold_desc:"Bold (Ctrl + B)",
italic_desc:"Italic (Ctrl + I)",
underline_desc:"Underline",
striketrough_desc:"Strikethrough (Alt + Shift + D)",
justifyleft_desc:"Align Left (Alt + Shift + L)",
justifycenter_desc:"Align Center (Alt + Shift + C)",
justifyright_desc:"Align Right (Alt + Shift + R)",
justifyfull_desc:"Align Full (Alt + Shift + J)",
bullist_desc:"Unordered list (Alt + Shift + U)",
numlist_desc:"Ordered list (Alt + Shift + O)",
outdent_desc:"Outdent",
indent_desc:"Indent",
undo_desc:"Undo (Ctrl + Z)",
redo_desc:"Redo (Ctrl + Y)",
link_desc:"Insert/edit link (Alt + Shift + A)",
unlink_desc:"Unlink (Alt + Shift + S)",
image_desc:"Insert/edit image (Alt + Shift + M)",
cleanup_desc:"Cleanup messy code",
code_desc:"Edit HTML Source",
sub_desc:"Subscript",
sup_desc:"Superscript",
hr_desc:"Insert horizontal ruler",
removeformat_desc:"Remove formatting",
forecolor_desc:"Select text color",
backcolor_desc:"Select background color",
charmap_desc:"Insert custom character",
visualaid_desc:"Toggle guidelines/invisible elements",
anchor_desc:"Insert/edit anchor",
cut_desc:"Cut",
copy_desc:"Copy",
paste_desc:"Paste",
image_props_desc:"Image properties",
newdocument_desc:"New document",
help_desc:"Help",
blockquote_desc:"Blockquote (Alt + Shift + Q)",
clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.",
path:"Path",
newdocument:"Are you sure you want to clear all contents?",
toolbar_focus:"Jump to tool buttons - Alt+Q, Jump to editor - Alt-Z, Jump to element path - Alt-X",
more_colors:"More colors",
shortcuts_desc:"Accessibility Help",
help_shortcut:" Press ALT F10 for toolbar. Press ALT 0 for help.",
rich_text_area:"Rich Text Area",
toolbar:"Toolbar"
});
tinyMCE.addI18n("en.advanced_dlg",{
about_title:"About TinyMCE",
about_general:"About",
about_help:"Help",
about_license:"License",
about_plugins:"Plugins",
about_plugin:"Plugin",
about_author:"Author",
about_version:"Version",
about_loaded:"Loaded plugins",
anchor_title:"Insert/edit anchor",
anchor_name:"Anchor name",
code_title:"HTML Source Editor",
code_wordwrap:"Word wrap",
colorpicker_title:"Select a color",
colorpicker_picker_tab:"Picker",
colorpicker_picker_title:"Color picker",
colorpicker_palette_tab:"Palette",
colorpicker_palette_title:"Palette colors",
colorpicker_named_tab:"Named",
colorpicker_named_title:"Named colors",
colorpicker_color:"Color:",
colorpicker_name:"Name:",
charmap_title:"Select custom character",
charmap_usage:"Use left and right arrows to navigate.",
image_title:"Insert/edit image",
image_src:"Image URL",
image_alt:"Image description",
image_list:"Image list",
image_border:"Border",
image_dimensions:"Dimensions",
image_vspace:"Vertical space",
image_hspace:"Horizontal space",
image_align:"Alignment",
image_align_baseline:"Baseline",
image_align_top:"Top",
image_align_middle:"Middle",
image_align_bottom:"Bottom",
image_align_texttop:"Text top",
image_align_textbottom:"Text bottom",
image_align_left:"Left",
image_align_right:"Right",
link_title:"Insert/edit link",
link_url:"Link URL",
link_target:"Target",
link_target_same:"Open link in the same window",
link_target_blank:"Open link in a new window",
link_titlefield:"Title",
link_is_email:"The URL you entered seems to be an email address, do you want to add the required mailto: prefix?",
link_is_external:"The URL you entered seems to external link, do you want to add the required http:// prefix?",
link_list:"Link list",
accessibility_help:"Accessibility Help",
accessibility_usage_title:"General Usage"
});
tinyMCE.addI18n("en.media_dlg",{
title:"Insert / edit embedded media",
general:"General",
advanced:"Advanced",
file:"File/URL",
list:"List",
size:"Dimensions",
preview:"Preview",
constrain_proportions:"Constrain proportions",
type:"Type",
id:"Id",
name:"Name",
class_name:"Class",
vspace:"V-Space",
hspace:"H-Space",
play:"Auto play",
loop:"Loop",
menu:"Show menu",
quality:"Quality",
scale:"Scale",
align:"Align",
salign:"SAlign",
wmode:"WMode",
bgcolor:"Background",
base:"Base",
flashvars:"Flashvars",
liveconnect:"SWLiveConnect",
autohref:"AutoHREF",
cache:"Cache",
hidden:"Hidden",
controller:"Controller",
kioskmode:"Kiosk mode",
playeveryframe:"Play every frame",
targetcache:"Target cache",
correction:"No correction",
enablejavascript:"Enable JavaScript",
starttime:"Start time",
endtime:"End time",
href:"href",
qtsrcchokespeed:"Choke speed",
target:"Target",
volume:"Volume",
autostart:"Auto start",
enabled:"Enabled",
fullscreen:"Fullscreen",
invokeurls:"Invoke URLs",
mute:"Mute",
stretchtofit:"Stretch to fit",
windowlessvideo:"Windowless video",
balance:"Balance",
baseurl:"Base URL",
captioningid:"Captioning id",
currentmarker:"Current marker",
currentposition:"Current position",
defaultframe:"Default frame",
playcount:"Play count",
rate:"Rate",
uimode:"UI Mode",
flash_options:"Flash options",
qt_options:"QuickTime options",
wmp_options:"Windows media player options",
rmp_options:"Real media player options",
shockwave_options:"Shockwave options",
autogotourl:"Auto goto URL",
center:"Center",
imagestatus:"Image status",
maintainaspect:"Maintain aspect",
nojava:"No java",
prefetch:"Prefetch",
shuffle:"Shuffle",
console:"Console",
numloop:"Num loops",
controls:"Controls",
scriptcallbacks:"Script callbacks",
swstretchstyle:"Stretch style",
swstretchhalign:"Stretch H-Align",
swstretchvalign:"Stretch V-Align",
sound:"Sound",
progress:"Progress",
qtsrc:"QT Src",
qt_stream_warn:"Streamed rtsp resources should be added to the QT Src field under the advanced tab.",
align_top:"Top",
align_right:"Right",
align_bottom:"Bottom",
align_left:"Left",
align_center:"Center",
align_top_left:"Top left",
align_top_right:"Top right",
align_bottom_left:"Bottom left",
align_bottom_right:"Bottom right",
flv_options:"Flash video options",
flv_scalemode:"Scale mode",
flv_buffer:"Buffer",
flv_startimage:"Start image",
flv_starttime:"Start time",
flv_defaultvolume:"Default volume",
flv_hiddengui:"Hidden GUI",
flv_autostart:"Auto start",
flv_loop:"Loop",
flv_showscalemodes:"Show scale modes",
flv_smoothvideo:"Smooth video",
flv_jscallback:"JS Callback",
html5_video_options:"HTML5 Video Options",
altsource1:"Alternative source 1",
altsource2:"Alternative source 2",
preload:"Preload",
poster:"Poster",
source:"Source"
});
tinyMCE.addI18n("en.wordpress",{
wp_adv_desc:"Show/Hide Kitchen Sink (Alt + Shift + Z)",
wp_more_desc:"Insert More Tag (Alt + Shift + T)",
wp_page_desc:"Insert Page break (Alt + Shift + P)",
wp_help_desc:"Help (Alt + Shift + H)",
wp_more_alt:"More...",
wp_page_alt:"Next page...",
add_media:"Add Media",
add_image:"Add an Image",
add_video:"Add Video",
add_audio:"Add Audio",
editgallery:"Edit Gallery",
delgallery:"Delete Gallery",
wp_fullscreen_desc:"Distraction Free Writing mode (Alt + Shift + W)"
});
tinyMCE.addI18n("en.wpeditimage",{
edit_img:"Edit Image",
del_img:"Delete Image",
adv_settings:"Advanced Settings",
none:"None",
size:"Size",
thumbnail:"Thumbnail",
medium:"Medium",
full_size:"Full Size",
current_link:"Current Link",
link_to_img:"Link to Image",
link_help:"Enter a link URL or click above for presets.",
adv_img_settings:"Advanced Image Settings",
source:"Source",
width:"Width",
height:"Height",
orig_size:"Original Size",
css:"CSS Class",
adv_link_settings:"Advanced Link Settings",
link_rel:"Link Rel",
height:"Height",
orig_size:"Original Size",
css:"CSS Class",
s60:"60%",
s70:"70%",
s80:"80%",
s90:"90%",
s100:"100%",
s110:"110%",
s120:"120%",
s130:"130%",
img_title:"Title",
caption:"Caption",
alt:"Alternative Text"
});

View File

@ -0,0 +1,565 @@
<?php
if ( ! defined( 'ABSPATH' ) )
exit;
if ( ! class_exists( '_WP_Editors' ) )
require( ABSPATH . WPINC . '/class-wp-editor.php' );
// deprecated, not used
function mce_escape($text) {
return esc_js($text);
}
function wp_mce_translation() {
$default = array(
'common' => array(
'edit_confirm' => __('Do you want to use the WYSIWYG mode for this textarea?'),
'apply' => __('Apply'),
'insert' => __('Insert'),
'update' => __('Update'),
'cancel' => __('Cancel'),
'close' => __('Close'),
'browse' => __('Browse'),
'class_name' => __('Class'),
'not_set' => __('-- Not set --'),
'clipboard_msg' => __('Copy/Cut/Paste is not available in Mozilla and Firefox.'),
'clipboard_no_support' => __('Currently not supported by your browser, use keyboard shortcuts instead.'),
'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.'),
'invalid_data' => __('ERROR: Invalid values entered, these are marked in red.'),
'invalid_data_number' => __('{#field} must be a number'),
'invalid_data_min' => __('{#field} must be a number greater than {#min}'),
'invalid_data_size' => __('{#field} must be a number or percentage'),
'more_colors' => __('More colors')
),
'colors' => array(
'000000' => __('Black'),
'993300' => __('Burnt orange'),
'333300' => __('Dark olive'),
'003300' => __('Dark green'),
'003366' => __('Dark azure'),
'000080' => __('Navy Blue'),
'333399' => __('Indigo'),
'333333' => __('Very dark gray'),
'800000' => __('Maroon'),
'FF6600' => __('Orange'),
'808000' => __('Olive'),
'008000' => __('Green'),
'008080' => __('Teal'),
'0000FF' => __('Blue'),
'666699' => __('Grayish blue'),
'808080' => __('Gray'),
'FF0000' => __('Red'),
'FF9900' => __('Amber'),
'99CC00' => __('Yellow green'),
'339966' => __('Sea green'),
'33CCCC' => __('Turquoise'),
'3366FF' => __('Royal blue'),
'800080' => __('Purple'),
'999999' => __('Medium gray'),
'FF00FF' => __('Magenta'),
'FFCC00' => __('Gold'),
'FFFF00' => __('Yellow'),
'00FF00' => __('Lime'),
'00FFFF' => __('Aqua'),
'00CCFF' => __('Sky blue'),
'993366' => __('Brown'),
'C0C0C0' => __('Silver'),
'FF99CC' => __('Pink'),
'FFCC99' => __('Peach'),
'FFFF99' => __('Light yellow'),
'CCFFCC' => __('Pale green'),
'CCFFFF' => __('Pale cyan'),
'99CCFF' => __('Light sky blue'),
'CC99FF' => __('Plum'),
'FFFFFF' => __('White')
),
'contextmenu' => array(
'align' => __('Alignment'), /* translators: alignment */
'left' => __('Left'), /* translators: alignment */
'center' => __('Center'), /* translators: alignment */
'right' => __('Right'), /* translators: alignment */
'full' => __('Full') /* translators: alignment */
),
'insertdatetime' => array(
'date_fmt' => __('%Y-%m-%d'), /* translators: year, month, date */
'time_fmt' => __('%H:%M:%S'), /* translators: hours, minutes, seconds */
'insertdate_desc' => __('Insert date'),
'inserttime_desc' => __('Insert time'),
'months_long' => __('January').','.__('February').','.__('March').','.__('April').','.__('May').','.__('June').','.__('July').','.__('August').','.__('September').','.__('October').','.__('November').','.__('December'),
'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'),
'day_long' => __('Sunday').','.__('Monday').','.__('Tuesday').','.__('Wednesday').','.__('Thursday').','.__('Friday').','.__('Saturday'),
'day_short' => __('Sun').','.__('Mon').','.__('Tue').','.__('Wed').','.__('Thu').','.__('Fri').','.__('Sat')
),
'print' => array(
'print_desc' => __('Print')
),
'preview' => array(
'preview_desc' => __('Preview')
),
'directionality' => array(
'ltr_desc' => __('Direction left to right'),
'rtl_desc' => __('Direction right to left')
),
'layer' => array(
'insertlayer_desc' => __('Insert new layer'),
'forward_desc' => __('Move forward'),
'backward_desc' => __('Move backward'),
'absolute_desc' => __('Toggle absolute positioning'),
'content' => __('New layer...')
),
'save' => array(
'save_desc' => __('Save'),
'cancel_desc' => __('Cancel all changes')
),
'nonbreaking' => array(
'nonbreaking_desc' => __('Insert non-breaking space character')
),
'iespell' => array(
'iespell_desc' => __('Run spell checking'),
'download' => __('ieSpell not detected. Do you want to install it now?')
),
'advhr' => array(
'advhr_desc' => __('Horizontal rule')
),
'emotions' => array(
'emotions_desc' => __('Emotions')
),
'searchreplace' => array(
'search_desc' => __('Find'),
'replace_desc' => __('Find/Replace')
),
'advimage' => array(
'image_desc' => __('Insert/edit image')
),
'advlink' => array(
'link_desc' => __('Insert/edit link')
),
'xhtmlxtras' => array(
'cite_desc' => __('Citation'),
'abbr_desc' => __('Abbreviation'),
'acronym_desc' => __('Acronym'),
'del_desc' => __('Deletion'),
'ins_desc' => __('Insertion'),
'attribs_desc' => __('Insert/Edit Attributes')
),
'style' => array(
'desc' => __('Edit CSS Style')
),
'paste' => array(
'paste_text_desc' => __('Paste as Plain Text'),
'paste_word_desc' => __('Paste from Word'),
'selectall_desc' => __('Select All'),
'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.'),
'plaintext_mode' => __('Paste is now in plain text mode. Click again to toggle back to regular paste mode.')
),
'paste_dlg' => array(
'text_title' => __('Use CTRL+V on your keyboard to paste the text into the window.'),
'text_linebreaks' => __('Keep linebreaks'),
'word_title' => __('Use CTRL+V on your keyboard to paste the text into the window.')
),
'table' => array(
'desc' => __('Inserts a new table'),
'row_before_desc' => __('Insert row before'),
'row_after_desc' => __('Insert row after'),
'delete_row_desc' => __('Delete row'),
'col_before_desc' => __('Insert column before'),
'col_after_desc' => __('Insert column after'),
'delete_col_desc' => __('Remove column'),
'split_cells_desc' => __('Split merged table cells'),
'merge_cells_desc' => __('Merge table cells'),
'row_desc' => __('Table row properties'),
'cell_desc' => __('Table cell properties'),
'props_desc' => __('Table properties'),
'paste_row_before_desc' => __('Paste table row before'),
'paste_row_after_desc' => __('Paste table row after'),
'cut_row_desc' => __('Cut table row'),
'copy_row_desc' => __('Copy table row'),
'del' => __('Delete table'),
'row' => __('Row'),
'col' => __('Column'),
'cell' => __('Cell')
),
'autosave' => array(
'unload_msg' => __('The changes you made will be lost if you navigate away from this page.')
),
'fullscreen' => array(
'desc' => __('Toggle fullscreen mode (Alt + Shift + G)')
),
'media' => array(
'desc' => __('Insert / edit embedded media'),
'edit' => __('Edit embedded media')
),
'fullpage' => array(
'desc' => __('Document properties')
),
'template' => array(
'desc' => __('Insert predefined template content')
),
'visualchars' => array(
'desc' => __('Visual control characters on/off.')
),
'spellchecker' => array(
'desc' => __('Toggle spellchecker (Alt + Shift + N)'),
'menu' => __('Spellchecker settings'),
'ignore_word' => __('Ignore word'),
'ignore_words' => __('Ignore all'),
'langs' => __('Languages'),
'wait' => __('Please wait...'),
'sug' => __('Suggestions'),
'no_sug' => __('No suggestions'),
'no_mpell' => __('No misspellings found.'),
'learn_word' => __('Learn word')
),
'pagebreak' => array(
'desc' => __('Insert Page Break')
),
'advlist' => array(
'types' => __('Types'),
'def' => __('Default'),
'lower_alpha' => __('Lower alpha'),
'lower_greek' => __('Lower greek'),
'lower_roman' => __('Lower roman'),
'upper_alpha' => __('Upper alpha'),
'upper_roman' => __('Upper roman'),
'circle' => __('Circle'),
'disc' => __('Disc'),
'square' => __('Square')
),
'aria' => array(
'rich_text_area' => __('Rich Text Area')
),
'wordcount' => array(
'words' => __('Words:')
)
);
$advanced = array(
'style_select' => __('Styles'), /* translators: TinyMCE inline styles */
'font_size' => __('Font size'),
'fontdefault' => __('Font family'),
'block' => __('Format'),
'paragraph' => __('Paragraph'),
'div' => __('Div'),
'address' => __('Address'),
'pre' => __('Preformatted'),
'h1' => __('Heading 1'),
'h2' => __('Heading 2'),
'h3' => __('Heading 3'),
'h4' => __('Heading 4'),
'h5' => __('Heading 5'),
'h6' => __('Heading 6'),
'blockquote' => __('Blockquote'),
'code' => __('Code'),
'samp' => __('Code sample'),
'dt' => __('Definition term '),
'dd' => __('Definition description'),
'bold_desc' => __('Bold (Ctrl + B)'),
'italic_desc' => __('Italic (Ctrl + I)'),
'underline_desc' => __('Underline'),
'striketrough_desc' => __('Strikethrough (Alt + Shift + D)'),
'justifyleft_desc' => __('Align Left (Alt + Shift + L)'),
'justifycenter_desc' => __('Align Center (Alt + Shift + C)'),
'justifyright_desc' => __('Align Right (Alt + Shift + R)'),
'justifyfull_desc' => __('Align Full (Alt + Shift + J)'),
'bullist_desc' => __('Unordered list (Alt + Shift + U)'),
'numlist_desc' => __('Ordered list (Alt + Shift + O)'),
'outdent_desc' => __('Outdent'),
'indent_desc' => __('Indent'),
'undo_desc' => __('Undo (Ctrl + Z)'),
'redo_desc' => __('Redo (Ctrl + Y)'),
'link_desc' => __('Insert/edit link (Alt + Shift + A)'),
'unlink_desc' => __('Unlink (Alt + Shift + S)'),
'image_desc' => __('Insert/edit image (Alt + Shift + M)'),
'cleanup_desc' => __('Cleanup messy code'),
'code_desc' => __('Edit HTML Source'),
'sub_desc' => __('Subscript'),
'sup_desc' => __('Superscript'),
'hr_desc' => __('Insert horizontal ruler'),
'removeformat_desc' => __('Remove formatting'),
'forecolor_desc' => __('Select text color'),
'backcolor_desc' => __('Select background color'),
'charmap_desc' => __('Insert custom character'),
'visualaid_desc' => __('Toggle guidelines/invisible elements'),
'anchor_desc' => __('Insert/edit anchor'),
'cut_desc' => __('Cut'),
'copy_desc' => __('Copy'),
'paste_desc' => __('Paste'),
'image_props_desc' => __('Image properties'),
'newdocument_desc' => __('New document'),
'help_desc' => __('Help'),
'blockquote_desc' => __('Blockquote (Alt + Shift + Q)'),
'clipboard_msg' => __('Copy/Cut/Paste is not available in Mozilla and Firefox.'),
'path' => __('Path'),
'newdocument' => __('Are you sure you want to clear all contents?'),
'toolbar_focus' => __('Jump to tool buttons - Alt+Q, Jump to editor - Alt-Z, Jump to element path - Alt-X'),
'more_colors' => __('More colors'),
'shortcuts_desc' => __('Accessibility Help'),
'help_shortcut' => __('Press ALT F10 for toolbar. Press ALT 0 for help.'),
'rich_text_area' => __('Rich Text Area'),
'toolbar' => __('Toolbar')
);
$advanced_dlg = array(
'about_title' => __('About TinyMCE'),
'about_general' => __('About'),
'about_help' => __('Help'),
'about_license' => __('License'),
'about_plugins' => __('Plugins'),
'about_plugin' => __('Plugin'),
'about_author' => __('Author'),
'about_version' => __('Version'),
'about_loaded' => __('Loaded plugins'),
'anchor_title' => __('Insert/edit anchor'),
'anchor_name' => __('Anchor name'),
'code_title' => __('HTML Source Editor'),
'code_wordwrap' => __('Word wrap'),
'colorpicker_title' => __('Select a color'),
'colorpicker_picker_tab' => __('Picker'),
'colorpicker_picker_title' => __('Color picker'),
'colorpicker_palette_tab' => __('Palette'),
'colorpicker_palette_title' => __('Palette colors'),
'colorpicker_named_tab' => __('Named'),
'colorpicker_named_title' => __('Named colors'),
'colorpicker_color' => __('Color:'),
'colorpicker_name' => _x('Name:', 'html attribute'),
'charmap_title' => __('Select custom character'),
'charmap_usage' => __('Use left and right arrows to navigate.'),
'image_title' => __('Insert/edit image'),
'image_src' => __('Image URL'),
'image_alt' => __('Image description'),
'image_list' => __('Image list'),
'image_border' => __('Border'),
'image_dimensions' => __('Dimensions'),
'image_vspace' => __('Vertical space'),
'image_hspace' => __('Horizontal space'),
'image_align' => __('Alignment'),
'image_align_baseline' => __('Baseline'),
'image_align_top' => __('Top'),
'image_align_middle' => __('Middle'),
'image_align_bottom' => __('Bottom'),
'image_align_texttop' => __('Text top'),
'image_align_textbottom' => __('Text bottom'),
'image_align_left' => __('Left'),
'image_align_right' => __('Right'),
'link_title' => __('Insert/edit link'),
'link_url' => __('Link URL'),
'link_target' => __('Target'),
'link_target_same' => __('Open link in the same window'),
'link_target_blank' => __('Open link in a new window'),
'link_titlefield' => __('Title'),
'link_is_email' => __('The URL you entered seems to be an email address, do you want to add the required mailto: prefix?'),
'link_is_external' => __('The URL you entered seems to external link, do you want to add the required http:// prefix?'),
'link_list' => __('Link list'),
'accessibility_help' => __('Accessibility Help'),
'accessibility_usage_title' => __('General Usage')
);
$media_dlg = array(
'title' => __('Insert / edit embedded media'),
'general' => __('General'),
'advanced' => __('Advanced'),
'file' => __('File/URL'),
'list' => __('List'),
'size' => __('Dimensions'),
'preview' => __('Preview'),
'constrain_proportions' => __('Constrain proportions'),
'type' => __('Type'),
'id' => __('Id'),
'name' => _x('Name', 'html attribute'),
'class_name' => __('Class'),
'vspace' => __('V-Space'),
'hspace' => __('H-Space'),
'play' => __('Auto play'),
'loop' => __('Loop'),
'menu' => __('Show menu'),
'quality' => __('Quality'),
'scale' => __('Scale'),
'align' => __('Align'),
'salign' => __('SAlign'),
'wmode' => __('WMode'),
'bgcolor' => __('Background'),
'base' => __('Base'),
'flashvars' => __('Flashvars'),
'liveconnect' => __('SWLiveConnect'),
'autohref' => __('AutoHREF'),
'cache' => __('Cache'),
'hidden' => __('Hidden'),
'controller' => __('Controller'),
'kioskmode' => __('Kiosk mode'),
'playeveryframe' => __('Play every frame'),
'targetcache' => __('Target cache'),
'correction' => __('No correction'),
'enablejavascript' => __('Enable JavaScript'),
'starttime' => __('Start time'),
'endtime' => __('End time'),
'href' => __('href'),
'qtsrcchokespeed' => __('Choke speed'),
'target' => __('Target'),
'volume' => __('Volume'),
'autostart' => __('Auto start'),
'enabled' => __('Enabled'),
'fullscreen' => __('Fullscreen'),
'invokeurls' => __('Invoke URLs'),
'mute' => __('Mute'),
'stretchtofit' => __('Stretch to fit'),
'windowlessvideo' => __('Windowless video'),
'balance' => __('Balance'),
'baseurl' => __('Base URL'),
'captioningid' => __('Captioning id'),
'currentmarker' => __('Current marker'),
'currentposition' => __('Current position'),
'defaultframe' => __('Default frame'),
'playcount' => __('Play count'),
'rate' => __('Rate'),
'uimode' => __('UI Mode'),
'flash_options' => __('Flash options'),
'qt_options' => __('QuickTime options'),
'wmp_options' => __('Windows media player options'),
'rmp_options' => __('Real media player options'),
'shockwave_options' => __('Shockwave options'),
'autogotourl' => __('Auto goto URL'),
'center' => __('Center'),
'imagestatus' => __('Image status'),
'maintainaspect' => __('Maintain aspect'),
'nojava' => __('No java'),
'prefetch' => __('Prefetch'),
'shuffle' => __('Shuffle'),
'console' => __('Console'),
'numloop' => __('Num loops'),
'controls' => __('Controls'),
'scriptcallbacks' => __('Script callbacks'),
'swstretchstyle' => __('Stretch style'),
'swstretchhalign' => __('Stretch H-Align'),
'swstretchvalign' => __('Stretch V-Align'),
'sound' => __('Sound'),
'progress' => __('Progress'),
'qtsrc' => __('QT Src'),
'qt_stream_warn' => __('Streamed rtsp resources should be added to the QT Src field under the advanced tab.'),
'align_top' => __('Top'),
'align_right' => __('Right'),
'align_bottom' => __('Bottom'),
'align_left' => __('Left'),
'align_center' => __('Center'),
'align_top_left' => __('Top left'),
'align_top_right' => __('Top right'),
'align_bottom_left' => __('Bottom left'),
'align_bottom_right' => __('Bottom right'),
'flv_options' => __('Flash video options'),
'flv_scalemode' => __('Scale mode'),
'flv_buffer' => __('Buffer'),
'flv_startimage' => __('Start image'),
'flv_starttime' => __('Start time'),
'flv_defaultvolume' => __('Default volume'),
'flv_hiddengui' => __('Hidden GUI'),
'flv_autostart' => __('Auto start'),
'flv_loop' => __('Loop'),
'flv_showscalemodes' => __('Show scale modes'),
'flv_smoothvideo' => __('Smooth video'),
'flv_jscallback' => __('JS Callback'),
'html5_video_options' => __('HTML5 Video Options'),
'altsource1' => __('Alternative source 1'),
'altsource2' => __('Alternative source 2'),
'preload' => __('Preload'),
'poster' => __('Poster'),
'source' => __('Source')
);
$wordpress = array(
'wp_adv_desc' => __('Show/Hide Kitchen Sink (Alt + Shift + Z)'),
'wp_more_desc' => __('Insert More Tag (Alt + Shift + T)'),
'wp_page_desc' => __('Insert Page break (Alt + Shift + P)'),
'wp_help_desc' => __('Help (Alt + Shift + H)'),
'wp_more_alt' => __('More...'),
'wp_page_alt' => __('Next page...'),
'add_media' => __('Add Media'),
'add_image' => __('Add an Image'),
'add_video' => __('Add Video'),
'add_audio' => __('Add Audio'),
'editgallery' => __('Edit Gallery'),
'delgallery' => __('Delete Gallery'),
'wp_fullscreen_desc' => __('Distraction Free Writing mode (Alt + Shift + W)')
);
$wpeditimage = array(
'edit_img' => __('Edit Image'),
'del_img' => __('Delete Image'),
'adv_settings' => __('Advanced Settings'),
'none' => __('None'),
'size' => __('Size'),
'thumbnail' => __('Thumbnail'),
'medium' => __('Medium'),
'full_size' => __('Full Size'),
'current_link' => __('Current Link'),
'link_to_img' => __('Link to Image'),
'link_help' => __('Enter a link URL or click above for presets.'),
'adv_img_settings' => __('Advanced Image Settings'),
'source' => __('Source'),
'width' => __('Width'),
'height' => __('Height'),
'orig_size' => __('Original Size'),
'css' => __('CSS Class'),
'adv_link_settings' => __('Advanced Link Settings'),
'link_rel' => __('Link Rel'),
'height' => __('Height'),
'orig_size' => __('Original Size'),
'css' => __('CSS Class'),
's60' => __('60%'),
's70' => __('70%'),
's80' => __('80%'),
's90' => __('90%'),
's100' => __('100%'),
's110' => __('110%'),
's120' => __('120%'),
's130' => __('130%'),
'img_title' => __('Title'),
'caption' => __('Caption'),
'alt' => __('Alternative Text')
);
$locale = _WP_Editors::$mce_locale;
$translated = 'tinyMCE.addI18n({' . $locale . ':' . json_encode( $default ) . "});\n";
$translated .= 'tinyMCE.addI18n("' . $locale . '.advanced", ' . json_encode( $advanced ) . ");\n";
$translated .= 'tinyMCE.addI18n("' . $locale . '.advanced_dlg", ' . json_encode( $advanced_dlg ) . ");\n";
$translated .= 'tinyMCE.addI18n("' . $locale . '.media_dlg", ' . json_encode( $media_dlg ) . ");\n";
$translated .= 'tinyMCE.addI18n("' . $locale . '.wordpress", ' . json_encode( $wordpress ) . ");\n";
$translated .= 'tinyMCE.addI18n("' . $locale . '.wpeditimage", ' . json_encode( $wpeditimage ) . ');';
return $translated;
}
$lang = wp_mce_translation();