aboutsummaryrefslogtreecommitdiff
path: root/sources/plugins/colordialog
diff options
context:
space:
mode:
Diffstat (limited to 'sources/plugins/colordialog')
-rw-r--r--sources/plugins/colordialog/dialogs/colordialog.css20
-rw-r--r--sources/plugins/colordialog/dialogs/colordialog.js343
-rw-r--r--sources/plugins/colordialog/lang/af.js11
-rw-r--r--sources/plugins/colordialog/lang/ar.js11
-rw-r--r--sources/plugins/colordialog/lang/az.js11
-rw-r--r--sources/plugins/colordialog/lang/bg.js11
-rw-r--r--sources/plugins/colordialog/lang/bn.js11
-rw-r--r--sources/plugins/colordialog/lang/bs.js11
-rw-r--r--sources/plugins/colordialog/lang/ca.js11
-rw-r--r--sources/plugins/colordialog/lang/cs.js11
-rw-r--r--sources/plugins/colordialog/lang/cy.js11
-rw-r--r--sources/plugins/colordialog/lang/da.js11
-rw-r--r--sources/plugins/colordialog/lang/de-ch.js11
-rw-r--r--sources/plugins/colordialog/lang/de.js11
-rw-r--r--sources/plugins/colordialog/lang/el.js11
-rw-r--r--sources/plugins/colordialog/lang/en-au.js11
-rw-r--r--sources/plugins/colordialog/lang/en-ca.js11
-rw-r--r--sources/plugins/colordialog/lang/en-gb.js11
-rw-r--r--sources/plugins/colordialog/lang/en.js11
-rw-r--r--sources/plugins/colordialog/lang/eo.js11
-rw-r--r--sources/plugins/colordialog/lang/es.js11
-rw-r--r--sources/plugins/colordialog/lang/et.js11
-rw-r--r--sources/plugins/colordialog/lang/eu.js11
-rw-r--r--sources/plugins/colordialog/lang/fa.js11
-rw-r--r--sources/plugins/colordialog/lang/fi.js11
-rw-r--r--sources/plugins/colordialog/lang/fo.js11
-rw-r--r--sources/plugins/colordialog/lang/fr-ca.js11
-rw-r--r--sources/plugins/colordialog/lang/fr.js11
-rw-r--r--sources/plugins/colordialog/lang/gl.js11
-rw-r--r--sources/plugins/colordialog/lang/gu.js11
-rw-r--r--sources/plugins/colordialog/lang/he.js11
-rw-r--r--sources/plugins/colordialog/lang/hi.js11
-rw-r--r--sources/plugins/colordialog/lang/hr.js11
-rw-r--r--sources/plugins/colordialog/lang/hu.js11
-rw-r--r--sources/plugins/colordialog/lang/id.js11
-rw-r--r--sources/plugins/colordialog/lang/is.js11
-rw-r--r--sources/plugins/colordialog/lang/it.js11
-rw-r--r--sources/plugins/colordialog/lang/ja.js11
-rw-r--r--sources/plugins/colordialog/lang/ka.js11
-rw-r--r--sources/plugins/colordialog/lang/km.js11
-rw-r--r--sources/plugins/colordialog/lang/ko.js11
-rw-r--r--sources/plugins/colordialog/lang/ku.js11
-rw-r--r--sources/plugins/colordialog/lang/lt.js11
-rw-r--r--sources/plugins/colordialog/lang/lv.js11
-rw-r--r--sources/plugins/colordialog/lang/mk.js11
-rw-r--r--sources/plugins/colordialog/lang/mn.js11
-rw-r--r--sources/plugins/colordialog/lang/ms.js11
-rw-r--r--sources/plugins/colordialog/lang/nb.js11
-rw-r--r--sources/plugins/colordialog/lang/nl.js11
-rw-r--r--sources/plugins/colordialog/lang/no.js11
-rw-r--r--sources/plugins/colordialog/lang/oc.js11
-rw-r--r--sources/plugins/colordialog/lang/pl.js11
-rw-r--r--sources/plugins/colordialog/lang/pt-br.js11
-rw-r--r--sources/plugins/colordialog/lang/pt.js11
-rw-r--r--sources/plugins/colordialog/lang/ro.js11
-rw-r--r--sources/plugins/colordialog/lang/ru.js11
-rw-r--r--sources/plugins/colordialog/lang/si.js11
-rw-r--r--sources/plugins/colordialog/lang/sk.js11
-rw-r--r--sources/plugins/colordialog/lang/sl.js11
-rw-r--r--sources/plugins/colordialog/lang/sq.js11
-rw-r--r--sources/plugins/colordialog/lang/sr-latn.js11
-rw-r--r--sources/plugins/colordialog/lang/sr.js11
-rw-r--r--sources/plugins/colordialog/lang/sv.js11
-rw-r--r--sources/plugins/colordialog/lang/th.js11
-rw-r--r--sources/plugins/colordialog/lang/tr.js11
-rw-r--r--sources/plugins/colordialog/lang/tt.js11
-rw-r--r--sources/plugins/colordialog/lang/ug.js11
-rw-r--r--sources/plugins/colordialog/lang/uk.js11
-rw-r--r--sources/plugins/colordialog/lang/vi.js11
-rw-r--r--sources/plugins/colordialog/lang/zh-cn.js11
-rw-r--r--sources/plugins/colordialog/lang/zh.js11
-rw-r--r--sources/plugins/colordialog/plugin.js71
72 files changed, 1193 insertions, 0 deletions
diff --git a/sources/plugins/colordialog/dialogs/colordialog.css b/sources/plugins/colordialog/dialogs/colordialog.css
new file mode 100644
index 0000000..3ec0d2a
--- /dev/null
+++ b/sources/plugins/colordialog/dialogs/colordialog.css
@@ -0,0 +1,20 @@
1/**
2 * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3 * For licensing, see LICENSE.md or http://ckeditor.com/license
4 */
5
6.cke_colordialog_colorcell {
7 width: 12px; /* All cells have equal width which depends on parent width (in this case table parent). Width works more like max-width. */
8 height: 14px;
9 padding: 1px; /* Padding is replaced by border for focused cells. Prevents 'jumping' when adding borders. */
10}
11
12.cke_colordialog_colorcell.cke_colordialog_focused_light,
13.cke_colordialog_colorcell.cke_colordialog_focused_dark {
14 padding: 0; /* Shrink cell to allow 1px border indicating focus. */
15 border: 1px dotted #000;
16}
17
18.cke_colordialog_colorcell.cke_colordialog_focused_dark {
19 border-color: #FFF;
20}
diff --git a/sources/plugins/colordialog/dialogs/colordialog.js b/sources/plugins/colordialog/dialogs/colordialog.js
new file mode 100644
index 0000000..cb67766
--- /dev/null
+++ b/sources/plugins/colordialog/dialogs/colordialog.js
@@ -0,0 +1,343 @@
1/**
2 * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3 * For licensing, see LICENSE.md or http://ckeditor.com/license
4 */
5
6CKEDITOR.dialog.add( 'colordialog', function( editor ) {
7 // Define some shorthands.
8 var $el = CKEDITOR.dom.element,
9 $doc = CKEDITOR.document,
10 lang = editor.lang.colordialog,
11 colorCellCls = 'cke_colordialog_colorcell',
12 focusedColorLightCls = 'cke_colordialog_focused_light',
13 focusedColorDarkCls = 'cke_colordialog_focused_dark',
14 selectedColorCls = 'cke_colordialog_selected';
15
16 // Reference the dialog.
17 var dialog,
18 selected;
19
20 var spacer = {
21 type: 'html',
22 html: ' '
23 };
24
25 function clearSelected() {
26 $doc.getById( selHiColorId ).removeStyle( 'background-color' );
27 dialog.getContentElement( 'picker', 'selectedColor' ).setValue( '' );
28 removeSelected();
29 }
30
31 function updateSelected( evt ) {
32 var target = evt.data.getTarget(),
33 color;
34
35 if ( target.getName() == 'td' && ( color = target.getChild( 0 ).getHtml() ) ) {
36 removeSelected();
37
38 selected = target;
39 selected.setAttribute( 'aria-selected', true );
40 selected.addClass( selectedColorCls );
41 dialog.getContentElement( 'picker', 'selectedColor' ).setValue( color );
42 }
43 }
44
45 function removeSelected() {
46 if ( selected ) {
47 selected.removeClass( selectedColorCls );
48 selected.removeAttribute( 'aria-selected' ); // Attribute aria-selected should also be removed when selection changes.
49 selected = null;
50 }
51 }
52
53 // Basing black-white decision off of luma scheme using the Rec. 709 version.
54 function isLightColor( color ) {
55 color = color.replace( /^#/, '' );
56 for ( var i = 0, rgb = []; i <= 2; i++ )
57 rgb[ i ] = parseInt( color.substr( i * 2, 2 ), 16 );
58 var luma = ( 0.2126 * rgb[ 0 ] ) + ( 0.7152 * rgb[ 1 ] ) + ( 0.0722 * rgb[ 2 ] );
59 return luma >= 165;
60 }
61
62 // Distinguish focused and hover states.
63 var focused, hovered;
64
65 // Apply highlight style.
66 function updateHighlight( event ) {
67 // Convert to event.
68 !event.name && ( event = new CKEDITOR.event( event ) );
69
70 var isFocus = !( /mouse/ ).test( event.name ),
71 target = event.data.getTarget(),
72 color;
73
74 if ( target.getName() == 'td' && ( color = target.getChild( 0 ).getHtml() ) ) {
75 removeHighlight( event );
76
77 isFocus ? focused = target : hovered = target;
78
79 // Apply CSS class to show focus.
80 if ( isFocus ) {
81 target.addClass( isLightColor( color ) ? focusedColorLightCls : focusedColorDarkCls );
82 }
83 setHighlight( color );
84 }
85 }
86
87 function clearHighlight() {
88 focused.removeClass( focusedColorLightCls );
89 focused.removeClass( focusedColorDarkCls );
90 setHighlight( false );
91 focused = null;
92 }
93
94 // Remove previously focused style.
95 function removeHighlight( event ) {
96 var isFocus = !( /mouse/ ).test( event.name ),
97 target = isFocus && focused;
98
99 if ( target ) {
100 target.removeClass( focusedColorLightCls );
101 target.removeClass( focusedColorDarkCls );
102 }
103
104 if ( !( focused || hovered ) ) {
105 setHighlight( false );
106 }
107 }
108
109 function setHighlight( color ) {
110 if ( color ) {
111 $doc.getById( hicolorId ).setStyle( 'background-color', color );
112 $doc.getById( hicolorTextId ).setHtml( color );
113
114 } else {
115 $doc.getById( hicolorId ).removeStyle( 'background-color' );
116 $doc.getById( hicolorTextId ).setHtml( '&nbsp;' );
117 }
118 }
119
120 function onKeyStrokes( evt ) {
121 var domEvt = evt.data;
122
123 var element = domEvt.getTarget();
124 var relative, nodeToMove;
125 var keystroke = domEvt.getKeystroke(),
126 rtl = editor.lang.dir == 'rtl';
127
128 switch ( keystroke ) {
129 // UP-ARROW
130 case 38:
131 // relative is TR
132 if ( ( relative = element.getParent().getPrevious() ) ) {
133 nodeToMove = relative.getChild( [ element.getIndex() ] );
134 nodeToMove.focus();
135 }
136 domEvt.preventDefault();
137 break;
138 // DOWN-ARROW
139 case 40:
140 // relative is TR
141 if ( ( relative = element.getParent().getNext() ) ) {
142 nodeToMove = relative.getChild( [ element.getIndex() ] );
143 if ( nodeToMove && nodeToMove.type == 1 )
144 nodeToMove.focus();
145
146 }
147 domEvt.preventDefault();
148 break;
149
150 // SPACE
151 // ENTER
152 case 32:
153 case 13:
154 updateSelected( evt );
155 domEvt.preventDefault();
156 break;
157
158 // RIGHT-ARROW
159 case rtl ? 37 : 39:
160 // relative is TD
161 if ( ( nodeToMove = element.getNext() ) ) {
162 if ( nodeToMove.type == 1 ) {
163 nodeToMove.focus();
164 domEvt.preventDefault( true );
165 }
166 }
167 // relative is TR
168 else if ( ( relative = element.getParent().getNext() ) ) {
169 nodeToMove = relative.getChild( [ 0 ] );
170 if ( nodeToMove && nodeToMove.type == 1 ) {
171 nodeToMove.focus();
172 domEvt.preventDefault( true );
173 }
174 }
175 break;
176
177 // LEFT-ARROW
178 case rtl ? 39 : 37:
179 // relative is TD
180 if ( ( nodeToMove = element.getPrevious() ) ) {
181 nodeToMove.focus();
182 domEvt.preventDefault( true );
183 }
184 // relative is TR
185 else if ( ( relative = element.getParent().getPrevious() ) ) {
186 nodeToMove = relative.getLast();
187 nodeToMove.focus();
188 domEvt.preventDefault( true );
189 }
190 break;
191 default:
192 // Do not stop not handled events.
193 return;
194 }
195 }
196
197 function createColorTable() {
198 table = CKEDITOR.dom.element.createFromHtml( '<table tabIndex="-1" class="cke_colordialog_table"' +
199 ' aria-label="' + lang.options + '" role="grid" style="border-collapse:separate;" cellspacing="0">' +
200 '<caption class="cke_voice_label">' + lang.options + '</caption>' +
201 '<tbody role="presentation"></tbody></table>' );
202
203 table.on( 'mouseover', updateHighlight );
204 table.on( 'mouseout', removeHighlight );
205
206 // Create the base colors array.
207 var aColors = [ '00', '33', '66', '99', 'cc', 'ff' ];
208
209 // This function combines two ranges of three values from the color array into a row.
210 function appendColorRow( rangeA, rangeB ) {
211 for ( var i = rangeA; i < rangeA + 3; i++ ) {
212 var row = new $el( table.$.insertRow( -1 ) );
213 row.setAttribute( 'role', 'row' );
214
215 for ( var j = rangeB; j < rangeB + 3; j++ ) {
216 for ( var n = 0; n < 6; n++ ) {
217 appendColorCell( row.$, '#' + aColors[ j ] + aColors[ n ] + aColors[ i ] );
218 }
219 }
220 }
221 }
222
223 // This function create a single color cell in the color table.
224 function appendColorCell( targetRow, color ) {
225 var cell = new $el( targetRow.insertCell( -1 ) );
226 cell.setAttribute( 'class', 'ColorCell ' + colorCellCls );
227 cell.setAttribute( 'tabIndex', -1 );
228 cell.setAttribute( 'role', 'gridcell' );
229
230 cell.on( 'keydown', onKeyStrokes );
231 cell.on( 'click', updateSelected );
232 cell.on( 'focus', updateHighlight );
233 cell.on( 'blur', removeHighlight );
234
235 cell.setStyle( 'background-color', color );
236
237 var colorLabel = numbering( 'color_table_cell' );
238 cell.setAttribute( 'aria-labelledby', colorLabel );
239 cell.append( CKEDITOR.dom.element.createFromHtml( '<span id="' + colorLabel + '" class="cke_voice_label">' + color + '</span>', CKEDITOR.document ) );
240 }
241
242 appendColorRow( 0, 0 );
243 appendColorRow( 3, 0 );
244 appendColorRow( 0, 3 );
245 appendColorRow( 3, 3 );
246
247 // Create the last row.
248 var oRow = new $el( table.$.insertRow( -1 ) );
249 oRow.setAttribute( 'role', 'row' );
250
251 // Create the gray scale colors cells.
252 appendColorCell( oRow.$, '#000000' );
253 for ( var n = 0; n < 16; n++ ) {
254 var c = n.toString( 16 );
255 appendColorCell( oRow.$, '#' + c + c + c + c + c + c );
256 }
257 appendColorCell( oRow.$, '#ffffff' );
258 }
259
260 var numbering = function( id ) {
261 return CKEDITOR.tools.getNextId() + '_' + id;
262 },
263 hicolorId = numbering( 'hicolor' ),
264 hicolorTextId = numbering( 'hicolortext' ),
265 selHiColorId = numbering( 'selhicolor' ),
266 table;
267
268 createColorTable();
269
270 // Load CSS.
271 CKEDITOR.document.appendStyleSheet( CKEDITOR.getUrl( CKEDITOR.plugins.get( 'colordialog' ).path + 'dialogs/colordialog.css' ) );
272
273 return {
274 title: lang.title,
275 minWidth: 360,
276 minHeight: 220,
277 onLoad: function() {
278 // Update reference.
279 dialog = this;
280 },
281 onHide: function() {
282 clearSelected();
283 clearHighlight();
284 },
285 contents: [ {
286 id: 'picker',
287 label: lang.title,
288 accessKey: 'I',
289 elements: [ {
290 type: 'hbox',
291 padding: 0,
292 widths: [ '70%', '10%', '30%' ],
293 children: [ {
294 type: 'html',
295 html: '<div></div>',
296 onLoad: function() {
297 CKEDITOR.document.getById( this.domId ).append( table );
298 },
299 focus: function() {
300 // Restore the previously focused cell,
301 // otherwise put the initial focus on the first table cell.
302 ( focused || this.getElement().getElementsByTag( 'td' ).getItem( 0 ) ).focus();
303 }
304 },
305 spacer,
306 {
307 type: 'vbox',
308 padding: 0,
309 widths: [ '70%', '5%', '25%' ],
310 children: [ {
311 type: 'html',
312 html: '<span>' + lang.highlight + '</span>' +
313 '<div id="' + hicolorId + '" style="border: 1px solid; height: 74px; width: 74px;"></div>' +
314 '<div id="' + hicolorTextId + '">&nbsp;</div><span>' + lang.selected + '</span>' +
315 '<div id="' + selHiColorId + '" style="border: 1px solid; height: 20px; width: 74px;"></div>'
316 },
317 {
318 type: 'text',
319 label: lang.selected,
320 labelStyle: 'display:none',
321 id: 'selectedColor',
322 style: 'width: 76px;margin-top:4px',
323 onChange: function() {
324 // Try to update color preview with new value. If fails, then set it no none.
325 try {
326 $doc.getById( selHiColorId ).setStyle( 'background-color', this.getValue() );
327 } catch ( e ) {
328 clearSelected();
329 }
330 }
331 },
332 spacer,
333 {
334 type: 'button',
335 id: 'clear',
336 label: lang.clear,
337 onClick: clearSelected
338 } ]
339 } ]
340 } ]
341 } ]
342 };
343} );
diff --git a/sources/plugins/colordialog/lang/af.js b/sources/plugins/colordialog/lang/af.js
new file mode 100644
index 0000000..2fc0118
--- /dev/null
+++ b/sources/plugins/colordialog/lang/af.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'af', {
6 clear: 'Herstel',
7 highlight: 'Aktief',
8 options: 'Kleuropsies',
9 selected: 'Geselekteer',
10 title: 'Kies kleur'
11} );
diff --git a/sources/plugins/colordialog/lang/ar.js b/sources/plugins/colordialog/lang/ar.js
new file mode 100644
index 0000000..cec0667
--- /dev/null
+++ b/sources/plugins/colordialog/lang/ar.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'ar', {
6 clear: 'مسح',
7 highlight: 'تحديد',
8 options: 'اختيارات الألوان',
9 selected: 'اللون المختار',
10 title: 'اختر اللون'
11} );
diff --git a/sources/plugins/colordialog/lang/az.js b/sources/plugins/colordialog/lang/az.js
new file mode 100644
index 0000000..0ddae4b
--- /dev/null
+++ b/sources/plugins/colordialog/lang/az.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'az', {
6 clear: 'Təmizlə',
7 highlight: 'Ayırmaq',
8 options: 'Rəng seçimləri',
9 selected: 'Seçilmiş rəng',
10 title: 'Rəngi seç'
11} );
diff --git a/sources/plugins/colordialog/lang/bg.js b/sources/plugins/colordialog/lang/bg.js
new file mode 100644
index 0000000..bd99938
--- /dev/null
+++ b/sources/plugins/colordialog/lang/bg.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'bg', {
6 clear: 'Изчистване',
7 highlight: 'Осветяване',
8 options: 'Цветови опции',
9 selected: 'Изберете цвят',
10 title: 'Изберете цвят'
11} );
diff --git a/sources/plugins/colordialog/lang/bn.js b/sources/plugins/colordialog/lang/bn.js
new file mode 100644
index 0000000..1f07b18
--- /dev/null
+++ b/sources/plugins/colordialog/lang/bn.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'bn', {
6 clear: 'Clear', // MISSING
7 highlight: 'Highlight', // MISSING
8 options: 'Color Options', // MISSING
9 selected: 'Selected Color', // MISSING
10 title: 'Select color' // MISSING
11} );
diff --git a/sources/plugins/colordialog/lang/bs.js b/sources/plugins/colordialog/lang/bs.js
new file mode 100644
index 0000000..94093f9
--- /dev/null
+++ b/sources/plugins/colordialog/lang/bs.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'bs', {
6 clear: 'Clear', // MISSING
7 highlight: 'Highlight', // MISSING
8 options: 'Color Options', // MISSING
9 selected: 'Selected Color', // MISSING
10 title: 'Select color' // MISSING
11} );
diff --git a/sources/plugins/colordialog/lang/ca.js b/sources/plugins/colordialog/lang/ca.js
new file mode 100644
index 0000000..09a2062
--- /dev/null
+++ b/sources/plugins/colordialog/lang/ca.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'ca', {
6 clear: 'Neteja',
7 highlight: 'Destacat',
8 options: 'Opcions del color',
9 selected: 'Color Seleccionat',
10 title: 'Seleccioni el color'
11} );
diff --git a/sources/plugins/colordialog/lang/cs.js b/sources/plugins/colordialog/lang/cs.js
new file mode 100644
index 0000000..56a99b7
--- /dev/null
+++ b/sources/plugins/colordialog/lang/cs.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'cs', {
6 clear: 'Vyčistit',
7 highlight: 'Zvýraznit',
8 options: 'Nastavení barvy',
9 selected: 'Vybráno',
10 title: 'Výběr barvy'
11} );
diff --git a/sources/plugins/colordialog/lang/cy.js b/sources/plugins/colordialog/lang/cy.js
new file mode 100644
index 0000000..84501b6
--- /dev/null
+++ b/sources/plugins/colordialog/lang/cy.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'cy', {
6 clear: 'Clirio',
7 highlight: 'Uwcholeuo',
8 options: 'Opsiynau Lliw',
9 selected: 'Lliw a Ddewiswyd',
10 title: 'Dewis lliw'
11} );
diff --git a/sources/plugins/colordialog/lang/da.js b/sources/plugins/colordialog/lang/da.js
new file mode 100644
index 0000000..24188c7
--- /dev/null
+++ b/sources/plugins/colordialog/lang/da.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'da', {
6 clear: 'Nulstil',
7 highlight: 'Markér',
8 options: 'Farvemuligheder',
9 selected: 'Valgt farve',
10 title: 'Vælg farve'
11} );
diff --git a/sources/plugins/colordialog/lang/de-ch.js b/sources/plugins/colordialog/lang/de-ch.js
new file mode 100644
index 0000000..9c9f542
--- /dev/null
+++ b/sources/plugins/colordialog/lang/de-ch.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'de-ch', {
6 clear: 'Entfernen',
7 highlight: 'Hervorheben',
8 options: 'Farboptionen',
9 selected: 'Ausgewählte Farbe',
10 title: 'Farbe auswählen'
11} );
diff --git a/sources/plugins/colordialog/lang/de.js b/sources/plugins/colordialog/lang/de.js
new file mode 100644
index 0000000..eac47c7
--- /dev/null
+++ b/sources/plugins/colordialog/lang/de.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'de', {
6 clear: 'Entfernen',
7 highlight: 'Hervorheben',
8 options: 'Farboptionen',
9 selected: 'Ausgewählte Farbe',
10 title: 'Farbe auswählen'
11} );
diff --git a/sources/plugins/colordialog/lang/el.js b/sources/plugins/colordialog/lang/el.js
new file mode 100644
index 0000000..ac63513
--- /dev/null
+++ b/sources/plugins/colordialog/lang/el.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'el', {
6 clear: 'Εκκαθάριση',
7 highlight: 'Σήμανση',
8 options: 'Επιλογές Χρωμάτων',
9 selected: 'Επιλεγμένο Χρώμα',
10 title: 'Επιλογή χρώματος'
11} );
diff --git a/sources/plugins/colordialog/lang/en-au.js b/sources/plugins/colordialog/lang/en-au.js
new file mode 100644
index 0000000..4f979a0
--- /dev/null
+++ b/sources/plugins/colordialog/lang/en-au.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'en-au', {
6 clear: 'Clear', // MISSING
7 highlight: 'Highlight', // MISSING
8 options: 'Color Options', // MISSING
9 selected: 'Selected Color', // MISSING
10 title: 'Select color' // MISSING
11} );
diff --git a/sources/plugins/colordialog/lang/en-ca.js b/sources/plugins/colordialog/lang/en-ca.js
new file mode 100644
index 0000000..4a42cdf
--- /dev/null
+++ b/sources/plugins/colordialog/lang/en-ca.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'en-ca', {
6 clear: 'Clear', // MISSING
7 highlight: 'Highlight', // MISSING
8 options: 'Color Options', // MISSING
9 selected: 'Selected Color', // MISSING
10 title: 'Select color' // MISSING
11} );
diff --git a/sources/plugins/colordialog/lang/en-gb.js b/sources/plugins/colordialog/lang/en-gb.js
new file mode 100644
index 0000000..75a4a57
--- /dev/null
+++ b/sources/plugins/colordialog/lang/en-gb.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'en-gb', {
6 clear: 'Clear',
7 highlight: 'Highlight',
8 options: 'Colour Options',
9 selected: 'Selected Colour',
10 title: 'Select colour'
11} );
diff --git a/sources/plugins/colordialog/lang/en.js b/sources/plugins/colordialog/lang/en.js
new file mode 100644
index 0000000..1cc75ee
--- /dev/null
+++ b/sources/plugins/colordialog/lang/en.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'en', {
6 clear: 'Clear',
7 highlight: 'Highlight',
8 options: 'Color Options',
9 selected: 'Selected Color',
10 title: 'Select color'
11} );
diff --git a/sources/plugins/colordialog/lang/eo.js b/sources/plugins/colordialog/lang/eo.js
new file mode 100644
index 0000000..ad6b72f
--- /dev/null
+++ b/sources/plugins/colordialog/lang/eo.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'eo', {
6 clear: 'Forigi',
7 highlight: 'Detaloj',
8 options: 'Opcioj pri koloroj',
9 selected: 'Selektita koloro',
10 title: 'Selekti koloron'
11} );
diff --git a/sources/plugins/colordialog/lang/es.js b/sources/plugins/colordialog/lang/es.js
new file mode 100644
index 0000000..4a930bf
--- /dev/null
+++ b/sources/plugins/colordialog/lang/es.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'es', {
6 clear: 'Borrar',
7 highlight: 'Muestra',
8 options: 'Opciones de colores',
9 selected: 'Elegido',
10 title: 'Elegir color'
11} );
diff --git a/sources/plugins/colordialog/lang/et.js b/sources/plugins/colordialog/lang/et.js
new file mode 100644
index 0000000..ed99a3c
--- /dev/null
+++ b/sources/plugins/colordialog/lang/et.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'et', {
6 clear: 'Eemalda',
7 highlight: 'Näidis',
8 options: 'Värvi valikud',
9 selected: 'Valitud värv',
10 title: 'Värvi valimine'
11} );
diff --git a/sources/plugins/colordialog/lang/eu.js b/sources/plugins/colordialog/lang/eu.js
new file mode 100644
index 0000000..0b317ec
--- /dev/null
+++ b/sources/plugins/colordialog/lang/eu.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'eu', {
6 clear: 'Garbitu',
7 highlight: 'Nabarmendu',
8 options: 'Kolore aukerak',
9 selected: 'Hautatutako kolorea',
10 title: 'Hautatu kolorea'
11} );
diff --git a/sources/plugins/colordialog/lang/fa.js b/sources/plugins/colordialog/lang/fa.js
new file mode 100644
index 0000000..cbd4caf
--- /dev/null
+++ b/sources/plugins/colordialog/lang/fa.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'fa', {
6 clear: 'پاک کردن',
7 highlight: 'متمایز',
8 options: 'گزینه​های رنگ',
9 selected: 'رنگ انتخاب شده',
10 title: 'انتخاب رنگ'
11} );
diff --git a/sources/plugins/colordialog/lang/fi.js b/sources/plugins/colordialog/lang/fi.js
new file mode 100644
index 0000000..d95dfd2
--- /dev/null
+++ b/sources/plugins/colordialog/lang/fi.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'fi', {
6 clear: 'Poista',
7 highlight: 'Korostus',
8 options: 'Värin ominaisuudet',
9 selected: 'Valittu',
10 title: 'Valitse väri'
11} );
diff --git a/sources/plugins/colordialog/lang/fo.js b/sources/plugins/colordialog/lang/fo.js
new file mode 100644
index 0000000..d0e9ba7
--- /dev/null
+++ b/sources/plugins/colordialog/lang/fo.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'fo', {
6 clear: 'Strika',
7 highlight: 'Framheva',
8 options: 'Litmøguleikar',
9 selected: 'Valdur litur',
10 title: 'Vel lit'
11} );
diff --git a/sources/plugins/colordialog/lang/fr-ca.js b/sources/plugins/colordialog/lang/fr-ca.js
new file mode 100644
index 0000000..07b39aa
--- /dev/null
+++ b/sources/plugins/colordialog/lang/fr-ca.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'fr-ca', {
6 clear: 'Effacer',
7 highlight: 'Surligner',
8 options: 'Options de couleur',
9 selected: 'Couleur sélectionnée',
10 title: 'Choisir une couleur'
11} );
diff --git a/sources/plugins/colordialog/lang/fr.js b/sources/plugins/colordialog/lang/fr.js
new file mode 100644
index 0000000..c8cd27b
--- /dev/null
+++ b/sources/plugins/colordialog/lang/fr.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'fr', {
6 clear: 'Effacer',
7 highlight: 'Pointée',
8 options: 'Options de couleur',
9 selected: 'Couleur choisie',
10 title: 'Sélectionner une couleur'
11} );
diff --git a/sources/plugins/colordialog/lang/gl.js b/sources/plugins/colordialog/lang/gl.js
new file mode 100644
index 0000000..58012a2
--- /dev/null
+++ b/sources/plugins/colordialog/lang/gl.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'gl', {
6 clear: 'Limpar',
7 highlight: 'Resaltar',
8 options: 'Opcións de cor',
9 selected: 'Cor seleccionado',
10 title: 'Seleccione unha cor'
11} );
diff --git a/sources/plugins/colordialog/lang/gu.js b/sources/plugins/colordialog/lang/gu.js
new file mode 100644
index 0000000..f6cb406
--- /dev/null
+++ b/sources/plugins/colordialog/lang/gu.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'gu', {
6 clear: 'સાફ કરવું',
7 highlight: 'હાઈઈટ',
8 options: 'રંગના વિકલ્પ',
9 selected: 'પસંદ કરેલો રંગ',
10 title: 'રંગ પસંદ કરો'
11} );
diff --git a/sources/plugins/colordialog/lang/he.js b/sources/plugins/colordialog/lang/he.js
new file mode 100644
index 0000000..df15025
--- /dev/null
+++ b/sources/plugins/colordialog/lang/he.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'he', {
6 clear: 'ניקוי',
7 highlight: 'סימון',
8 options: 'אפשרויות צבע',
9 selected: 'בחירה',
10 title: 'בחירת צבע'
11} );
diff --git a/sources/plugins/colordialog/lang/hi.js b/sources/plugins/colordialog/lang/hi.js
new file mode 100644
index 0000000..3de17e1
--- /dev/null
+++ b/sources/plugins/colordialog/lang/hi.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'hi', {
6 clear: 'Clear', // MISSING
7 highlight: 'Highlight', // MISSING
8 options: 'Color Options', // MISSING
9 selected: 'Selected Color', // MISSING
10 title: 'Select color' // MISSING
11} );
diff --git a/sources/plugins/colordialog/lang/hr.js b/sources/plugins/colordialog/lang/hr.js
new file mode 100644
index 0000000..af3c205
--- /dev/null
+++ b/sources/plugins/colordialog/lang/hr.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'hr', {
6 clear: 'Očisti',
7 highlight: 'Istaknuto',
8 options: 'Opcije boje',
9 selected: 'Odabrana boja',
10 title: 'Odaberi boju'
11} );
diff --git a/sources/plugins/colordialog/lang/hu.js b/sources/plugins/colordialog/lang/hu.js
new file mode 100644
index 0000000..868027f
--- /dev/null
+++ b/sources/plugins/colordialog/lang/hu.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'hu', {
6 clear: 'Ürítés',
7 highlight: 'Nagyítás',
8 options: 'Szín opciók',
9 selected: 'Kiválasztott',
10 title: 'Válasszon színt'
11} );
diff --git a/sources/plugins/colordialog/lang/id.js b/sources/plugins/colordialog/lang/id.js
new file mode 100644
index 0000000..aa6f3c1
--- /dev/null
+++ b/sources/plugins/colordialog/lang/id.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'id', {
6 clear: 'Hapus',
7 highlight: 'Sorot',
8 options: 'Pilihan Warna',
9 selected: 'Warna Dipilih',
10 title: 'Pilih Warna'
11} );
diff --git a/sources/plugins/colordialog/lang/is.js b/sources/plugins/colordialog/lang/is.js
new file mode 100644
index 0000000..0e174fc
--- /dev/null
+++ b/sources/plugins/colordialog/lang/is.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'is', {
6 clear: 'Clear', // MISSING
7 highlight: 'Highlight', // MISSING
8 options: 'Color Options', // MISSING
9 selected: 'Selected Color', // MISSING
10 title: 'Select color' // MISSING
11} );
diff --git a/sources/plugins/colordialog/lang/it.js b/sources/plugins/colordialog/lang/it.js
new file mode 100644
index 0000000..f711bbc
--- /dev/null
+++ b/sources/plugins/colordialog/lang/it.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'it', {
6 clear: 'cancella',
7 highlight: 'Evidenzia',
8 options: 'Opzioni colore',
9 selected: 'Seleziona il colore',
10 title: 'Selezionare il colore'
11} );
diff --git a/sources/plugins/colordialog/lang/ja.js b/sources/plugins/colordialog/lang/ja.js
new file mode 100644
index 0000000..e9f1b24
--- /dev/null
+++ b/sources/plugins/colordialog/lang/ja.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'ja', {
6 clear: 'クリア',
7 highlight: 'ハイライト',
8 options: 'カラーオプション',
9 selected: '選択された色',
10 title: '色選択'
11} );
diff --git a/sources/plugins/colordialog/lang/ka.js b/sources/plugins/colordialog/lang/ka.js
new file mode 100644
index 0000000..d5ca13c
--- /dev/null
+++ b/sources/plugins/colordialog/lang/ka.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'ka', {
6 clear: 'გასუფთავება',
7 highlight: 'ჩვენება',
8 options: 'ფერის პარამეტრები',
9 selected: 'არჩეული ფერი',
10 title: 'ფერის შეცვლა'
11} );
diff --git a/sources/plugins/colordialog/lang/km.js b/sources/plugins/colordialog/lang/km.js
new file mode 100644
index 0000000..9358fb9
--- /dev/null
+++ b/sources/plugins/colordialog/lang/km.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'km', {
6 clear: 'សម្អាត',
7 highlight: 'បន្លិច​ពណ៌',
8 options: 'ជម្រើស​ពណ៌',
9 selected: 'ពណ៌​ដែល​បាន​រើស',
10 title: 'រើស​ពណ៌'
11} );
diff --git a/sources/plugins/colordialog/lang/ko.js b/sources/plugins/colordialog/lang/ko.js
new file mode 100644
index 0000000..fb7f0f3
--- /dev/null
+++ b/sources/plugins/colordialog/lang/ko.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'ko', {
6 clear: '비우기',
7 highlight: '강조',
8 options: '색상 옵션',
9 selected: '선택된 색상',
10 title: '색상 선택'
11} );
diff --git a/sources/plugins/colordialog/lang/ku.js b/sources/plugins/colordialog/lang/ku.js
new file mode 100644
index 0000000..20f0232
--- /dev/null
+++ b/sources/plugins/colordialog/lang/ku.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'ku', {
6 clear: 'پاکیکەوە',
7 highlight: 'نیشانکردن',
8 options: 'هەڵبژاردەی ڕەنگەکان',
9 selected: 'ڕەنگی هەڵبژێردراو',
10 title: 'هەڵبژاردنی ڕەنگ'
11} );
diff --git a/sources/plugins/colordialog/lang/lt.js b/sources/plugins/colordialog/lang/lt.js
new file mode 100644
index 0000000..73135a9
--- /dev/null
+++ b/sources/plugins/colordialog/lang/lt.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'lt', {
6 clear: 'Išvalyti',
7 highlight: 'Paryškinti',
8 options: 'Spalvos nustatymai',
9 selected: 'Pasirinkta spalva',
10 title: 'Pasirinkite spalvą'
11} );
diff --git a/sources/plugins/colordialog/lang/lv.js b/sources/plugins/colordialog/lang/lv.js
new file mode 100644
index 0000000..ffe1d21
--- /dev/null
+++ b/sources/plugins/colordialog/lang/lv.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'lv', {
6 clear: 'Notīrīt',
7 highlight: 'Paraugs',
8 options: 'Krāsas uzstādījumi',
9 selected: 'Izvēlētā krāsa',
10 title: 'Izvēlies krāsu'
11} );
diff --git a/sources/plugins/colordialog/lang/mk.js b/sources/plugins/colordialog/lang/mk.js
new file mode 100644
index 0000000..704fb2d
--- /dev/null
+++ b/sources/plugins/colordialog/lang/mk.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'mk', {
6 clear: 'Clear', // MISSING
7 highlight: 'Highlight', // MISSING
8 options: 'Color Options', // MISSING
9 selected: 'Selected Color', // MISSING
10 title: 'Select color' // MISSING
11} );
diff --git a/sources/plugins/colordialog/lang/mn.js b/sources/plugins/colordialog/lang/mn.js
new file mode 100644
index 0000000..4e05303
--- /dev/null
+++ b/sources/plugins/colordialog/lang/mn.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'mn', {
6 clear: 'Clear', // MISSING
7 highlight: 'Highlight', // MISSING
8 options: 'Color Options', // MISSING
9 selected: 'Selected Color', // MISSING
10 title: 'Select color' // MISSING
11} );
diff --git a/sources/plugins/colordialog/lang/ms.js b/sources/plugins/colordialog/lang/ms.js
new file mode 100644
index 0000000..0b6601b
--- /dev/null
+++ b/sources/plugins/colordialog/lang/ms.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'ms', {
6 clear: 'Clear', // MISSING
7 highlight: 'Highlight', // MISSING
8 options: 'Color Options', // MISSING
9 selected: 'Selected Color', // MISSING
10 title: 'Select color' // MISSING
11} );
diff --git a/sources/plugins/colordialog/lang/nb.js b/sources/plugins/colordialog/lang/nb.js
new file mode 100644
index 0000000..f113e21
--- /dev/null
+++ b/sources/plugins/colordialog/lang/nb.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'nb', {
6 clear: 'Tøm',
7 highlight: 'Merk',
8 options: 'Alternativer for farge',
9 selected: 'Valgt farge',
10 title: 'Velg farge'
11} );
diff --git a/sources/plugins/colordialog/lang/nl.js b/sources/plugins/colordialog/lang/nl.js
new file mode 100644
index 0000000..efa32bd
--- /dev/null
+++ b/sources/plugins/colordialog/lang/nl.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'nl', {
6 clear: 'Wissen',
7 highlight: 'Actief',
8 options: 'Kleuropties',
9 selected: 'Geselecteerde kleur',
10 title: 'Selecteer kleur'
11} );
diff --git a/sources/plugins/colordialog/lang/no.js b/sources/plugins/colordialog/lang/no.js
new file mode 100644
index 0000000..6dc1f8a
--- /dev/null
+++ b/sources/plugins/colordialog/lang/no.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'no', {
6 clear: 'Tøm',
7 highlight: 'Merk',
8 options: 'Alternativer for farge',
9 selected: 'Valgt',
10 title: 'Velg farge'
11} );
diff --git a/sources/plugins/colordialog/lang/oc.js b/sources/plugins/colordialog/lang/oc.js
new file mode 100644
index 0000000..c093efb
--- /dev/null
+++ b/sources/plugins/colordialog/lang/oc.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'oc', {
6 clear: 'Escafar',
7 highlight: 'Puntada',
8 options: 'Opcions de color',
9 selected: 'Color seleccionada',
10 title: 'Seleccionar una color'
11} );
diff --git a/sources/plugins/colordialog/lang/pl.js b/sources/plugins/colordialog/lang/pl.js
new file mode 100644
index 0000000..ff7dea2
--- /dev/null
+++ b/sources/plugins/colordialog/lang/pl.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'pl', {
6 clear: 'Wyczyść',
7 highlight: 'Zaznacz',
8 options: 'Opcje koloru',
9 selected: 'Wybrany',
10 title: 'Wybierz kolor'
11} );
diff --git a/sources/plugins/colordialog/lang/pt-br.js b/sources/plugins/colordialog/lang/pt-br.js
new file mode 100644
index 0000000..6a9118b
--- /dev/null
+++ b/sources/plugins/colordialog/lang/pt-br.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'pt-br', {
6 clear: 'Limpar',
7 highlight: 'Grifar',
8 options: 'Opções de Cor',
9 selected: 'Cor Selecionada',
10 title: 'Selecione uma Cor'
11} );
diff --git a/sources/plugins/colordialog/lang/pt.js b/sources/plugins/colordialog/lang/pt.js
new file mode 100644
index 0000000..94067d4
--- /dev/null
+++ b/sources/plugins/colordialog/lang/pt.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'pt', {
6 clear: 'Limpar',
7 highlight: 'Realçar',
8 options: 'Opções de cor',
9 selected: 'Cor selecionada',
10 title: 'Selecionar cor'
11} );
diff --git a/sources/plugins/colordialog/lang/ro.js b/sources/plugins/colordialog/lang/ro.js
new file mode 100644
index 0000000..463a378
--- /dev/null
+++ b/sources/plugins/colordialog/lang/ro.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'ro', {
6 clear: 'Clear', // MISSING
7 highlight: 'Highlight', // MISSING
8 options: 'Color Options', // MISSING
9 selected: 'Selected Color', // MISSING
10 title: 'Select color' // MISSING
11} );
diff --git a/sources/plugins/colordialog/lang/ru.js b/sources/plugins/colordialog/lang/ru.js
new file mode 100644
index 0000000..9cfc5bb
--- /dev/null
+++ b/sources/plugins/colordialog/lang/ru.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'ru', {
6 clear: 'Очистить',
7 highlight: 'Под курсором',
8 options: 'Настройки цвета',
9 selected: 'Выбранный цвет',
10 title: 'Выберите цвет'
11} );
diff --git a/sources/plugins/colordialog/lang/si.js b/sources/plugins/colordialog/lang/si.js
new file mode 100644
index 0000000..c67dd82
--- /dev/null
+++ b/sources/plugins/colordialog/lang/si.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'si', {
6 clear: 'පැහැදිලි',
7 highlight: 'මතුකර පෙන්වන්න',
8 options: 'වර්ණ විකල්ප',
9 selected: 'තෙරු වර්ණ',
10 title: 'වර්ණ තෝරන්න'
11} );
diff --git a/sources/plugins/colordialog/lang/sk.js b/sources/plugins/colordialog/lang/sk.js
new file mode 100644
index 0000000..1638bb3
--- /dev/null
+++ b/sources/plugins/colordialog/lang/sk.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'sk', {
6 clear: 'Vyčistiť',
7 highlight: 'Zvýrazniť',
8 options: 'Možnosti farby',
9 selected: 'Vybraná farba',
10 title: 'Vybrať farbu'
11} );
diff --git a/sources/plugins/colordialog/lang/sl.js b/sources/plugins/colordialog/lang/sl.js
new file mode 100644
index 0000000..d3d402e
--- /dev/null
+++ b/sources/plugins/colordialog/lang/sl.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'sl', {
6 clear: 'Počisti',
7 highlight: 'Poudarjeno',
8 options: 'Možnosti barve',
9 selected: 'Izbrana barva',
10 title: 'Izberi barvo'
11} );
diff --git a/sources/plugins/colordialog/lang/sq.js b/sources/plugins/colordialog/lang/sq.js
new file mode 100644
index 0000000..5569e13
--- /dev/null
+++ b/sources/plugins/colordialog/lang/sq.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'sq', {
6 clear: 'Pastro',
7 highlight: 'Thekso',
8 options: 'Përzgjedhjet e Ngjyrave',
9 selected: 'Ngjyra e Përzgjedhur',
10 title: 'Përzgjidh një ngjyrë'
11} );
diff --git a/sources/plugins/colordialog/lang/sr-latn.js b/sources/plugins/colordialog/lang/sr-latn.js
new file mode 100644
index 0000000..0c7b618
--- /dev/null
+++ b/sources/plugins/colordialog/lang/sr-latn.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'sr-latn', {
6 clear: 'Clear', // MISSING
7 highlight: 'Highlight', // MISSING
8 options: 'Color Options', // MISSING
9 selected: 'Selected Color', // MISSING
10 title: 'Select color' // MISSING
11} );
diff --git a/sources/plugins/colordialog/lang/sr.js b/sources/plugins/colordialog/lang/sr.js
new file mode 100644
index 0000000..4ea66ab
--- /dev/null
+++ b/sources/plugins/colordialog/lang/sr.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'sr', {
6 clear: 'Clear', // MISSING
7 highlight: 'Highlight', // MISSING
8 options: 'Color Options', // MISSING
9 selected: 'Selected Color', // MISSING
10 title: 'Select color' // MISSING
11} );
diff --git a/sources/plugins/colordialog/lang/sv.js b/sources/plugins/colordialog/lang/sv.js
new file mode 100644
index 0000000..7f41bd1
--- /dev/null
+++ b/sources/plugins/colordialog/lang/sv.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'sv', {
6 clear: 'Rensa',
7 highlight: 'Markera',
8 options: 'Färgalternativ',
9 selected: 'Vald färg',
10 title: 'Välj färg'
11} );
diff --git a/sources/plugins/colordialog/lang/th.js b/sources/plugins/colordialog/lang/th.js
new file mode 100644
index 0000000..94c5f9a
--- /dev/null
+++ b/sources/plugins/colordialog/lang/th.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'th', {
6 clear: 'Clear', // MISSING
7 highlight: 'Highlight', // MISSING
8 options: 'Color Options', // MISSING
9 selected: 'Selected Color', // MISSING
10 title: 'Select color' // MISSING
11} );
diff --git a/sources/plugins/colordialog/lang/tr.js b/sources/plugins/colordialog/lang/tr.js
new file mode 100644
index 0000000..d0f8e9b
--- /dev/null
+++ b/sources/plugins/colordialog/lang/tr.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'tr', {
6 clear: 'Temizle',
7 highlight: 'İşaretle',
8 options: 'Renk Seçenekleri',
9 selected: 'Seçilmiş',
10 title: 'Renk seç'
11} );
diff --git a/sources/plugins/colordialog/lang/tt.js b/sources/plugins/colordialog/lang/tt.js
new file mode 100644
index 0000000..0a49dd7
--- /dev/null
+++ b/sources/plugins/colordialog/lang/tt.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'tt', {
6 clear: 'Бушату',
7 highlight: 'Билгеләү',
8 options: 'Төс көйләүләре',
9 selected: 'Сайланган төсләр',
10 title: 'Төс сайлау'
11} );
diff --git a/sources/plugins/colordialog/lang/ug.js b/sources/plugins/colordialog/lang/ug.js
new file mode 100644
index 0000000..3a1ffb8
--- /dev/null
+++ b/sources/plugins/colordialog/lang/ug.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'ug', {
6 clear: 'تازىلا',
7 highlight: 'يورۇت',
8 options: 'رەڭ تاللانمىسى',
9 selected: 'رەڭ تاللاڭ',
10 title: 'رەڭ تاللاڭ'
11} );
diff --git a/sources/plugins/colordialog/lang/uk.js b/sources/plugins/colordialog/lang/uk.js
new file mode 100644
index 0000000..9f524d3
--- /dev/null
+++ b/sources/plugins/colordialog/lang/uk.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'uk', {
6 clear: 'Очистити',
7 highlight: 'Колір, на який вказує курсор',
8 options: 'Опції кольорів',
9 selected: 'Обраний колір',
10 title: 'Обрати колір'
11} );
diff --git a/sources/plugins/colordialog/lang/vi.js b/sources/plugins/colordialog/lang/vi.js
new file mode 100644
index 0000000..561f2e5
--- /dev/null
+++ b/sources/plugins/colordialog/lang/vi.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'vi', {
6 clear: 'Xóa bỏ',
7 highlight: 'Màu chọn',
8 options: 'Tùy chọn màu',
9 selected: 'Màu đã chọn',
10 title: 'Chọn màu'
11} );
diff --git a/sources/plugins/colordialog/lang/zh-cn.js b/sources/plugins/colordialog/lang/zh-cn.js
new file mode 100644
index 0000000..17341a7
--- /dev/null
+++ b/sources/plugins/colordialog/lang/zh-cn.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'zh-cn', {
6 clear: '清除',
7 highlight: '高亮',
8 options: '颜色选项',
9 selected: '选择颜色',
10 title: '选择颜色'
11} );
diff --git a/sources/plugins/colordialog/lang/zh.js b/sources/plugins/colordialog/lang/zh.js
new file mode 100644
index 0000000..d2a50c6
--- /dev/null
+++ b/sources/plugins/colordialog/lang/zh.js
@@ -0,0 +1,11 @@
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'colordialog', 'zh', {
6 clear: '清除',
7 highlight: '高亮',
8 options: '色彩選項',
9 selected: '選取的色彩',
10 title: '選取色彩'
11} );
diff --git a/sources/plugins/colordialog/plugin.js b/sources/plugins/colordialog/plugin.js
new file mode 100644
index 0000000..1ad7e2d
--- /dev/null
+++ b/sources/plugins/colordialog/plugin.js
@@ -0,0 +1,71 @@
1/**
2 * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3 * For licensing, see LICENSE.md or http://ckeditor.com/license
4 */
5
6CKEDITOR.plugins.colordialog = {
7 requires: 'dialog',
8 // jscs:disable maximumLineLength
9 lang: 'af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,oc,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE%
10 // jscs:enable maximumLineLength
11 init: function( editor ) {
12 var cmd = new CKEDITOR.dialogCommand( 'colordialog' );
13 cmd.editorFocus = false;
14
15 editor.addCommand( 'colordialog', cmd );
16
17 CKEDITOR.dialog.add( 'colordialog', this.path + 'dialogs/colordialog.js' );
18
19 /**
20 * Open up color dialog and to receive the selected color.
21 *
22 * @param {Function} callback The callback when color dialog is closed
23 * @param {String} callback.color The color value received if selected on the dialog.
24 * @param [scope] The scope in which the callback will be bound.
25 * @member CKEDITOR.editor
26 */
27 editor.getColorFromDialog = function( callback, scope ) {
28 var onClose = function( evt ) {
29 releaseHandlers( this );
30 var color = evt.name == 'ok' ? this.getValueOf( 'picker', 'selectedColor' ) : null;
31 callback.call( scope, color );
32 };
33 var releaseHandlers = function( dialog ) {
34 dialog.removeListener( 'ok', onClose );
35 dialog.removeListener( 'cancel', onClose );
36 };
37 var bindToDialog = function( dialog ) {
38 dialog.on( 'ok', onClose );
39 dialog.on( 'cancel', onClose );
40 };
41
42 editor.execCommand( 'colordialog' );
43
44 if ( editor._.storedDialogs && editor._.storedDialogs.colordialog )
45 bindToDialog( editor._.storedDialogs.colordialog );
46 else {
47 CKEDITOR.on( 'dialogDefinition', function( e ) {
48 if ( e.data.name != 'colordialog' )
49 return;
50
51 var definition = e.data.definition;
52
53 e.removeListener();
54 definition.onLoad = CKEDITOR.tools.override( definition.onLoad,
55 function( orginal ) {
56 return function() {
57 bindToDialog( this );
58 definition.onLoad = orginal;
59 if ( typeof orginal == 'function' )
60 orginal.call( this );
61 };
62 } );
63 } );
64 }
65 };
66
67
68 }
69};
70
71CKEDITOR.plugins.add( 'colordialog', CKEDITOR.plugins.colordialog );