diff --git a/ckeditor/plugins/colordialog/dialogs/colordialog.js b/ckeditor/plugins/colordialog/dialogs/colordialog.js new file mode 100644 index 0000000000000000000000000000000000000000..413a38c7004ff8cc74cda92d472636ccc784def2 --- /dev/null +++ b/ckeditor/plugins/colordialog/dialogs/colordialog.js @@ -0,0 +1,340 @@ +/** + * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.html or http://ckeditor.com/license + */ + +CKEDITOR.dialog.add( 'colordialog', function( editor ) { + // Define some shorthands. + var $el = CKEDITOR.dom.element, + $doc = CKEDITOR.document, + lang = editor.lang.colordialog; + + // Reference the dialog. + var dialog; + + var spacer = { + type: 'html', + html: ' ' + }; + + var selected; + + function clearSelected() { + $doc.getById( selHiColorId ).removeStyle( 'background-color' ); + dialog.getContentElement( 'picker', 'selectedColor' ).setValue( '' ); + selected && selected.removeAttribute( 'aria-selected' ); + selected = null; + } + + function updateSelected( evt ) { + var target = evt.data.getTarget(), + color; + + if ( target.getName() == 'td' && ( color = target.getChild( 0 ).getHtml() ) ) { + selected = target; + selected.setAttribute( 'aria-selected', true ); + dialog.getContentElement( 'picker', 'selectedColor' ).setValue( color ); + } + } + + // Basing black-white decision off of luma scheme using the Rec. 709 version + function whiteOrBlack( color ) { + color = color.replace( /^#/, '' ); + for ( var i = 0, rgb = []; i <= 2; i++ ) + rgb[ i ] = parseInt( color.substr( i * 2, 2 ), 16 ); + var luma = ( 0.2126 * rgb[ 0 ] ) + ( 0.7152 * rgb[ 1 ] ) + ( 0.0722 * rgb[ 2 ] ); + return '#' + ( luma >= 165 ? '000' : 'fff' ); + } + + // Distinguish focused and hover states. + var focused, hovered; + + // Apply highlight style. + function updateHighlight( event ) { + // Convert to event. + !event.name && ( event = new CKEDITOR.event( event ) ); + + var isFocus = !( /mouse/ ).test( event.name ), + target = event.data.getTarget(), + color; + + if ( target.getName() == 'td' && ( color = target.getChild( 0 ).getHtml() ) ) { + removeHighlight( event ); + + isFocus ? focused = target : hovered = target; + + // Apply outline style to show focus. + if ( isFocus ) { + target.setStyle( 'border-color', whiteOrBlack( color ) ); + target.setStyle( 'border-style', 'dotted' ); + } + + $doc.getById( hicolorId ).setStyle( 'background-color', color ); + $doc.getById( hicolorTextId ).setHtml( color ); + } + } + + function clearHighlight() { + var color = focused.getChild( 0 ).getHtml(); + focused.setStyle( 'border-color', color ); + focused.setStyle( 'border-style', 'solid' ); + $doc.getById( hicolorId ).removeStyle( 'background-color' ); + $doc.getById( hicolorTextId ).setHtml( ' ' ); + focused = null; + } + + // Remove previously focused style. + function removeHighlight( event ) { + var isFocus = !( /mouse/ ).test( event.name ), + target = isFocus && focused; + + if ( target ) { + var color = target.getChild( 0 ).getHtml(); + target.setStyle( 'border-color', color ); + target.setStyle( 'border-style', 'solid' ); + } + + if ( !( focused || hovered ) ) { + $doc.getById( hicolorId ).removeStyle( 'background-color' ); + $doc.getById( hicolorTextId ).setHtml( ' ' ); + } + } + + function onKeyStrokes( evt ) { + var domEvt = evt.data; + + var element = domEvt.getTarget(); + var relative, nodeToMove; + var keystroke = domEvt.getKeystroke(), + rtl = editor.lang.dir == 'rtl'; + + switch ( keystroke ) { + // UP-ARROW + case 38: + // relative is TR + if ( ( relative = element.getParent().getPrevious() ) ) { + nodeToMove = relative.getChild( [ element.getIndex() ] ); + nodeToMove.focus(); + } + domEvt.preventDefault(); + break; + // DOWN-ARROW + case 40: + // relative is TR + if ( ( relative = element.getParent().getNext() ) ) { + nodeToMove = relative.getChild( [ element.getIndex() ] ); + if ( nodeToMove && nodeToMove.type == 1 ) { + nodeToMove.focus(); + } + } + domEvt.preventDefault(); + break; + + // SPACE + // ENTER + case 32: + case 13: + updateSelected( evt ); + domEvt.preventDefault(); + break; + + // RIGHT-ARROW + case rtl ? 37: + 39 : + // relative is TD + if ( ( nodeToMove = element.getNext() ) ) { + if ( nodeToMove.type == 1 ) { + nodeToMove.focus(); + domEvt.preventDefault( true ); + } + } + // relative is TR + else if ( ( relative = element.getParent().getNext() ) ) { + nodeToMove = relative.getChild( [ 0 ] ); + if ( nodeToMove && nodeToMove.type == 1 ) { + nodeToMove.focus(); + domEvt.preventDefault( true ); + } + } + break; + + // LEFT-ARROW + case rtl ? 39: + 37 : + // relative is TD + if ( ( nodeToMove = element.getPrevious() ) ) { + nodeToMove.focus(); + domEvt.preventDefault( true ); + } + // relative is TR + else if ( ( relative = element.getParent().getPrevious() ) ) { + nodeToMove = relative.getLast(); + nodeToMove.focus(); + domEvt.preventDefault( true ); + } + break; + default: + // Do not stop not handled events. + return; + } + } + + function createColorTable() { + table = CKEDITOR.dom.element.createFromHtml( '<table tabIndex="-1" aria-label="' + lang.options + '"' + + ' role="grid" style="border-collapse:separate;" cellspacing="0">' + + '<caption class="cke_voice_label">' + lang.options + '</caption>' + + '<tbody role="presentation"></tbody></table>' ); + + table.on( 'mouseover', updateHighlight ); + table.on( 'mouseout', removeHighlight ); + + // Create the base colors array. + var aColors = [ '00', '33', '66', '99', 'cc', 'ff' ]; + + // This function combines two ranges of three values from the color array into a row. + function appendColorRow( rangeA, rangeB ) { + for ( var i = rangeA; i < rangeA + 3; i++ ) { + var row = new $el( table.$.insertRow( -1 ) ); + row.setAttribute( 'role', 'row' ); + + for ( var j = rangeB; j < rangeB + 3; j++ ) { + for ( var n = 0; n < 6; n++ ) { + appendColorCell( row.$, '#' + aColors[ j ] + aColors[ n ] + aColors[ i ] ); + } + } + } + } + + // This function create a single color cell in the color table. + function appendColorCell( targetRow, color ) { + var cell = new $el( targetRow.insertCell( -1 ) ); + cell.setAttribute( 'class', 'ColorCell' ); + cell.setAttribute( 'tabIndex', -1 ); + cell.setAttribute( 'role', 'gridcell' ); + + cell.on( 'keydown', onKeyStrokes ); + cell.on( 'click', updateSelected ); + cell.on( 'focus', updateHighlight ); + cell.on( 'blur', removeHighlight ); + + cell.setStyle( 'background-color', color ); + cell.setStyle( 'border', '1px solid ' + color ); + + cell.setStyle( 'width', '14px' ); + cell.setStyle( 'height', '14px' ); + + var colorLabel = numbering( 'color_table_cell' ); + cell.setAttribute( 'aria-labelledby', colorLabel ); + cell.append( CKEDITOR.dom.element.createFromHtml( '<span id="' + colorLabel + '" class="cke_voice_label">' + color + '</span>', CKEDITOR.document ) ); + } + + appendColorRow( 0, 0 ); + appendColorRow( 3, 0 ); + appendColorRow( 0, 3 ); + appendColorRow( 3, 3 ); + + // Create the last row. + var oRow = new $el( table.$.insertRow( -1 ) ); + oRow.setAttribute( 'role', 'row' ); + + // Create the gray scale colors cells. + for ( var n = 0; n < 6; n++ ) { + appendColorCell( oRow.$, '#' + aColors[ n ] + aColors[ n ] + aColors[ n ] ); + } + + // Fill the row with black cells. + for ( var i = 0; i < 12; i++ ) { + appendColorCell( oRow.$, '#000000' ); + } + } + + var numbering = function( id ) { + return CKEDITOR.tools.getNextId() + '_' + id; + }, + hicolorId = numbering( 'hicolor' ), + hicolorTextId = numbering( 'hicolortext' ), + selHiColorId = numbering( 'selhicolor' ), + table; + + createColorTable(); + + return { + title: lang.title, + minWidth: 360, + minHeight: 220, + onLoad: function() { + // Update reference. + dialog = this; + }, + onHide: function() { + clearSelected(); + clearHighlight(); + }, + contents: [ + { + id: 'picker', + label: lang.title, + accessKey: 'I', + elements: [ + { + type: 'hbox', + padding: 0, + widths: [ '70%', '10%', '30%' ], + children: [ + { + type: 'html', + html: '<div></div>', + onLoad: function() { + CKEDITOR.document.getById( this.domId ).append( table ); + }, + focus: function() { + // Restore the previously focused cell, + // otherwise put the initial focus on the first table cell. + ( focused || this.getElement().getElementsByTag( 'td' ).getItem( 0 ) ).focus(); + } + }, + spacer, + { + type: 'vbox', + padding: 0, + widths: [ '70%', '5%', '25%' ], + children: [ + { + type: 'html', + html: '<span>' + lang.highlight + '</span>\ + <div id="' + hicolorId + '" style="border: 1px solid; height: 74px; width: 74px;"></div>\ + <div id="' + hicolorTextId + '"> </div><span>' + lang.selected + '</span>\ + <div id="' + selHiColorId + '" style="border: 1px solid; height: 20px; width: 74px;"></div>' + }, + { + type: 'text', + label: lang.selected, + labelStyle: 'display:none', + id: 'selectedColor', + style: 'width: 74px', + onChange: function() { + // Try to update color preview with new value. If fails, then set it no none. + try { + $doc.getById( selHiColorId ).setStyle( 'background-color', this.getValue() ); + } catch ( e ) { + clearSelected(); + } + } + }, + spacer, + { + type: 'button', + id: 'clear', + style: 'margin-top: 5px', + label: lang.clear, + onClick: clearSelected + } + ] + } + ] + } + ] + } + ] + }; +}); diff --git a/ckeditor/plugins/colordialog/lang/af.js b/ckeditor/plugins/colordialog/lang/af.js new file mode 100644 index 0000000000000000000000000000000000000000..333974a20e51838b11590d138c934c80a51d6e64 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/af.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'af', { + clear: 'Herstel', + highlight: 'Aktief', + options: 'Kleuropsies', + selected: 'Geselekteer', + title: 'Kies kleur' +}); diff --git a/ckeditor/plugins/colordialog/lang/ar.js b/ckeditor/plugins/colordialog/lang/ar.js new file mode 100644 index 0000000000000000000000000000000000000000..3818b9f0666d4b39a1d374f325079898bf04130b --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/ar.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ar', { + clear: 'مسØ', + highlight: 'تØديد', + options: 'اختيارات الألوان', + selected: 'اللون المختار', + title: 'اختر اللون' +}); diff --git a/ckeditor/plugins/colordialog/lang/bg.js b/ckeditor/plugins/colordialog/lang/bg.js new file mode 100644 index 0000000000000000000000000000000000000000..91995aadf3081029934ea40c322754afaabf8e23 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/bg.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'bg', { + clear: 'ИзчиÑтване', + highlight: 'ОÑветÑване', + options: 'Цветови опции', + selected: 'Изберете цвÑÑ‚', + title: 'Изберете цвÑÑ‚' +}); diff --git a/ckeditor/plugins/colordialog/lang/bn.js b/ckeditor/plugins/colordialog/lang/bn.js new file mode 100644 index 0000000000000000000000000000000000000000..f022c3f1029f922548429506426fa58c1dff8f6f --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/bn.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'bn', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +}); diff --git a/ckeditor/plugins/colordialog/lang/bs.js b/ckeditor/plugins/colordialog/lang/bs.js new file mode 100644 index 0000000000000000000000000000000000000000..e2be5d120a0fe83a774a751056752908b76467cc --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/bs.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'bs', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +}); diff --git a/ckeditor/plugins/colordialog/lang/ca.js b/ckeditor/plugins/colordialog/lang/ca.js new file mode 100644 index 0000000000000000000000000000000000000000..f9189caa466520991c655b0eff98e73598560c21 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/ca.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ca', { + clear: 'Neteja', + highlight: 'Destacat', + options: 'Opcions del color', + selected: 'Color Seleccionat', + title: 'Seleccioni el color' +}); diff --git a/ckeditor/plugins/colordialog/lang/cs.js b/ckeditor/plugins/colordialog/lang/cs.js new file mode 100644 index 0000000000000000000000000000000000000000..8ed07c09fb2150cf1e390ad5c1fd737132c0d552 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/cs.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'cs', { + clear: 'VyÄistit', + highlight: 'Zvýraznit', + options: 'Nastavenà barvy', + selected: 'Vybráno', + title: 'VýbÄ›r barvy' +}); diff --git a/ckeditor/plugins/colordialog/lang/cy.js b/ckeditor/plugins/colordialog/lang/cy.js new file mode 100644 index 0000000000000000000000000000000000000000..14c18941a8763c9539fe51e29bbaba703af5af8c --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/cy.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'cy', { + clear: 'Clirio', + highlight: 'Uwcholeuo', + options: 'Opsiynau Lliw', + selected: 'Dewiswyd', + title: 'Dewis lliw' +}); diff --git a/ckeditor/plugins/colordialog/lang/da.js b/ckeditor/plugins/colordialog/lang/da.js new file mode 100644 index 0000000000000000000000000000000000000000..4f453a02164a797a3b232dbf5edeec473fb1f0c7 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/da.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'da', { + clear: 'Nulstil', + highlight: 'Markér', + options: 'Farvemuligheder', + selected: 'Valgt farve', + title: 'Vælg farve' +}); diff --git a/ckeditor/plugins/colordialog/lang/de.js b/ckeditor/plugins/colordialog/lang/de.js new file mode 100644 index 0000000000000000000000000000000000000000..4223f847a0c424ae9a4c96fede8c75dedf0d0e5f --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/de.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'de', { + clear: 'Entfernen', + highlight: 'Hervorheben', + options: 'Farbeoptionen', + selected: 'Ausgewählte Farbe', + title: 'Farbe wählen' +}); diff --git a/ckeditor/plugins/colordialog/lang/el.js b/ckeditor/plugins/colordialog/lang/el.js new file mode 100644 index 0000000000000000000000000000000000000000..9da98b00d2712dcb66f9fa6fbc3631e5ecdb8766 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/el.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'el', { + clear: 'ΚαθαÏισμός', + highlight: 'Σήμανση', + options: 'ΕπιλογÎÏ‚ ΧÏωμάτων', + selected: 'ΕπιλεγμÎνο ΧÏώμα', + title: 'Επιλογή ΧÏώματος' +}); diff --git a/ckeditor/plugins/colordialog/lang/en-au.js b/ckeditor/plugins/colordialog/lang/en-au.js new file mode 100644 index 0000000000000000000000000000000000000000..4c7a6c3b7feb18148cf81433a32fbd43ec6882d4 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/en-au.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'en-au', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +}); diff --git a/ckeditor/plugins/colordialog/lang/en-ca.js b/ckeditor/plugins/colordialog/lang/en-ca.js new file mode 100644 index 0000000000000000000000000000000000000000..f109e3459c20af0b04cb511533cf278a535ff2ed --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/en-ca.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'en-ca', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +}); diff --git a/ckeditor/plugins/colordialog/lang/en-gb.js b/ckeditor/plugins/colordialog/lang/en-gb.js new file mode 100644 index 0000000000000000000000000000000000000000..93d861f46895fd9a9d01ba4c54bea19524c709d5 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/en-gb.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'en-gb', { + clear: 'Clear', + highlight: 'Highlight', + options: 'Colour Options', + selected: 'Selected Colour', + title: 'Select colour' +}); diff --git a/ckeditor/plugins/colordialog/lang/en.js b/ckeditor/plugins/colordialog/lang/en.js new file mode 100644 index 0000000000000000000000000000000000000000..f394538eca0d5c8291bef7438d0b6225de42c7da --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/en.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'en', { + clear: 'Clear', + highlight: 'Highlight', + options: 'Color Options', + selected: 'Selected Color', + title: 'Select color' +}); diff --git a/ckeditor/plugins/colordialog/lang/eo.js b/ckeditor/plugins/colordialog/lang/eo.js new file mode 100644 index 0000000000000000000000000000000000000000..4f3050c732e41b925f9184d05fbe8fa267465d0d --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/eo.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'eo', { + clear: 'Forigi', + highlight: 'Detaloj', + options: 'Opcioj pri koloroj', + selected: 'Selektita koloro', + title: 'Selekti koloron' +}); diff --git a/ckeditor/plugins/colordialog/lang/es.js b/ckeditor/plugins/colordialog/lang/es.js new file mode 100644 index 0000000000000000000000000000000000000000..aba28e0b524dc288390ee556121c2a188a841180 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/es.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'es', { + clear: 'Borrar', + highlight: 'Muestra', + options: 'Opciones de colores', + selected: 'Elegido', + title: 'Elegir color' +}); diff --git a/ckeditor/plugins/colordialog/lang/et.js b/ckeditor/plugins/colordialog/lang/et.js new file mode 100644 index 0000000000000000000000000000000000000000..e0e3251ee20652e6b58415b3da10e992cdc4a839 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/et.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'et', { + clear: 'Eemalda', + highlight: 'Näidis', + options: 'Värvi valikud', + selected: 'Valitud värv', + title: 'Värvi valimine' +}); diff --git a/ckeditor/plugins/colordialog/lang/eu.js b/ckeditor/plugins/colordialog/lang/eu.js new file mode 100644 index 0000000000000000000000000000000000000000..823ccc9e79b5e1ff0d4a578510c12ecc1ee40ab0 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/eu.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'eu', { + clear: 'Garbitu', + highlight: 'Nabarmendu', + options: 'Kolore Aukerak', + selected: 'Hautatutako Kolorea', + title: 'Kolorea Hautatu' +}); diff --git a/ckeditor/plugins/colordialog/lang/fa.js b/ckeditor/plugins/colordialog/lang/fa.js new file mode 100644 index 0000000000000000000000000000000000000000..49968feb0bd5400fb7ff303fa3e3d28d26d26c8c --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/fa.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'fa', { + clear: 'پاک کردن', + highlight: 'متمایز', + options: 'گزینه​های رنگ', + selected: 'رنگ انتخاب شده', + title: 'انتخاب رنگ' +}); diff --git a/ckeditor/plugins/colordialog/lang/fi.js b/ckeditor/plugins/colordialog/lang/fi.js new file mode 100644 index 0000000000000000000000000000000000000000..4329dd5f85fd6d873858817930276a1f9549f117 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/fi.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'fi', { + clear: 'Poista', + highlight: 'Korostus', + options: 'Värin ominaisuudet', + selected: 'Valittu', + title: 'Valitse väri' +}); diff --git a/ckeditor/plugins/colordialog/lang/fo.js b/ckeditor/plugins/colordialog/lang/fo.js new file mode 100644 index 0000000000000000000000000000000000000000..1ed18c61e19fef3f6c1222ede0690e83f2260e16 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/fo.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'fo', { + clear: 'Strika', + highlight: 'Framheva', + options: 'Litmøguleikar', + selected: 'Valdur litur', + title: 'Vel lit' +}); diff --git a/ckeditor/plugins/colordialog/lang/fr-ca.js b/ckeditor/plugins/colordialog/lang/fr-ca.js new file mode 100644 index 0000000000000000000000000000000000000000..13403a4dde2eb9483f93c9b0b19151caaa9deb58 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/fr-ca.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'fr-ca', { + clear: 'Effacer', + highlight: 'Surligner', + options: 'Options de couleur', + selected: 'Couleur sélectionnée', + title: 'Choisir une couleur' +}); diff --git a/ckeditor/plugins/colordialog/lang/fr.js b/ckeditor/plugins/colordialog/lang/fr.js new file mode 100644 index 0000000000000000000000000000000000000000..3fa486e4ccc71e2805082b15a85dd2277656bbde --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/fr.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'fr', { + clear: 'Effacer', + highlight: 'Détails', + options: 'Option des couleurs', + selected: 'Couleur choisie', + title: 'Choisir une couleur' +}); diff --git a/ckeditor/plugins/colordialog/lang/gl.js b/ckeditor/plugins/colordialog/lang/gl.js new file mode 100644 index 0000000000000000000000000000000000000000..b8d6bc322dac875f44e46025a4215ddd1cc5d4ae --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/gl.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'gl', { + clear: 'Limpar', + highlight: 'Resaltar', + options: 'Opcións de cor', + selected: 'Cor seleccionado', + title: 'Seleccione unha cor' +}); diff --git a/ckeditor/plugins/colordialog/lang/gu.js b/ckeditor/plugins/colordialog/lang/gu.js new file mode 100644 index 0000000000000000000000000000000000000000..dbe30a0d59638cba5b080f96d9eaa341a94046ed --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/gu.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'gu', { + clear: 'સાફ કરવà«àª‚', + highlight: 'હાઈઈટ', + options: 'રંગના વિકલà«àªª', + selected: 'પસંદ કરેલો રંગ', + title: 'રંગ પસંદ કરો' +}); diff --git a/ckeditor/plugins/colordialog/lang/he.js b/ckeditor/plugins/colordialog/lang/he.js new file mode 100644 index 0000000000000000000000000000000000000000..688719ff79301df242000e46d0cdf85378cd8dbe --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/he.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'he', { + clear: '× ×™×§×•×™', + highlight: 'סימון', + options: '×פשרויות צבע', + selected: 'בחירה', + title: 'בחירת צבע' +}); diff --git a/ckeditor/plugins/colordialog/lang/hi.js b/ckeditor/plugins/colordialog/lang/hi.js new file mode 100644 index 0000000000000000000000000000000000000000..a2389bf2b5b6e44c1e4955603e0a0ac4cd70f498 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/hi.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'hi', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +}); diff --git a/ckeditor/plugins/colordialog/lang/hr.js b/ckeditor/plugins/colordialog/lang/hr.js new file mode 100644 index 0000000000000000000000000000000000000000..495e574e23955ef6b268a7cdfef53999ce93e926 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/hr.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'hr', { + clear: 'OÄisti', + highlight: 'Istaknuto', + options: 'Opcije boje', + selected: 'Odabrana boja', + title: 'Odaberi boju' +}); diff --git a/ckeditor/plugins/colordialog/lang/hu.js b/ckeditor/plugins/colordialog/lang/hu.js new file mode 100644 index 0000000000000000000000000000000000000000..e15e35c3c46bc312fa14aecfa26774d7a079d745 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/hu.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'hu', { + clear: 'ÃœrÃtés', + highlight: 'NagyÃtás', + options: 'SzÃn opciók', + selected: 'Kiválasztott', + title: 'Válasszon szÃnt' +}); diff --git a/ckeditor/plugins/colordialog/lang/is.js b/ckeditor/plugins/colordialog/lang/is.js new file mode 100644 index 0000000000000000000000000000000000000000..07c4567390f0232be48786894de2adc7d7c62a27 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/is.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'is', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +}); diff --git a/ckeditor/plugins/colordialog/lang/it.js b/ckeditor/plugins/colordialog/lang/it.js new file mode 100644 index 0000000000000000000000000000000000000000..1c10fd6841aeb57b2fff47bfa5259eb7376aeaea --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/it.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'it', { + clear: 'cancella', + highlight: 'Evidenzia', + options: 'Opzioni colore', + selected: 'Seleziona il colore', + title: 'Selezionare il colore' +}); diff --git a/ckeditor/plugins/colordialog/lang/ja.js b/ckeditor/plugins/colordialog/lang/ja.js new file mode 100644 index 0000000000000000000000000000000000000000..9bb97b5b8254265867f8d6f15186886063635111 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/ja.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ja', { + clear: 'クリア', + highlight: 'ãƒã‚¤ãƒ©ã‚¤ãƒˆ', + options: 'カラーオプション', + selected: 'é¸æŠžã•ã‚ŒãŸè‰²', + title: '色é¸æŠž' +}); diff --git a/ckeditor/plugins/colordialog/lang/ka.js b/ckeditor/plugins/colordialog/lang/ka.js new file mode 100644 index 0000000000000000000000000000000000000000..e8bd5d050ce36c45cca4cf3db88295300995f69e --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/ka.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ka', { + clear: 'გáƒáƒ¡áƒ£áƒ¤áƒ—áƒáƒ•áƒ”ბáƒ', + highlight: 'ჩვენებáƒ', + options: 'ფერის პáƒáƒ áƒáƒ›áƒ”ტრები', + selected: 'áƒáƒ ჩეული ფერი', + title: 'ფერის შეცვლáƒ' +}); diff --git a/ckeditor/plugins/colordialog/lang/km.js b/ckeditor/plugins/colordialog/lang/km.js new file mode 100644 index 0000000000000000000000000000000000000000..575eaddbfd14d1df7d09d3131950fe060a8f82a6 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/km.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'km', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +}); diff --git a/ckeditor/plugins/colordialog/lang/ko.js b/ckeditor/plugins/colordialog/lang/ko.js new file mode 100644 index 0000000000000000000000000000000000000000..ef190e9e70d7cf41381413dac1b6d73ad59e135a --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/ko.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ko', { + clear: 'ì œê±°', + highlight: '하ì´ë¼ì´íŠ¸', + options: 'ìƒ‰ìƒ ì˜µì…˜', + selected: 'ìƒ‰ìƒ ì„ íƒë¨', + title: 'ìƒ‰ìƒ ì„ íƒ' +}); diff --git a/ckeditor/plugins/colordialog/lang/ku.js b/ckeditor/plugins/colordialog/lang/ku.js new file mode 100644 index 0000000000000000000000000000000000000000..7380e34d858023ccaa6af5ae9f96093fcce0abbc --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/ku.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ku', { + clear: 'پاکیکەوە', + highlight: 'نیشانکردن', + options: 'هەڵبژاردەی ڕەنگەکان', + selected: 'Ú•Û•Ù†Ú¯ÛŒ هەڵبژێردراو', + title: 'هەڵبژاردنی Ú•Û•Ù†Ú¯' +}); diff --git a/ckeditor/plugins/colordialog/lang/lt.js b/ckeditor/plugins/colordialog/lang/lt.js new file mode 100644 index 0000000000000000000000000000000000000000..ed06a4260b665b53a4cc5bd2ac2bd189c3d265b0 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/lt.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'lt', { + clear: 'IÅ¡valyti', + highlight: 'ParyÅ¡kinti', + options: 'Spalvos nustatymai', + selected: 'Pasirinkta spalva', + title: 'Pasirinkite spalvÄ…' +}); diff --git a/ckeditor/plugins/colordialog/lang/lv.js b/ckeditor/plugins/colordialog/lang/lv.js new file mode 100644 index 0000000000000000000000000000000000000000..ac05a71f3a72b3bbd9d054abe51d74bdad0a58d9 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/lv.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'lv', { + clear: 'NotÄ«rÄ«t', + highlight: 'Paraugs', + options: 'KrÄsas uzstÄdÄ«jumi', + selected: 'IzvÄ“lÄ“tÄ krÄsa', + title: 'IzvÄ“lies krÄsu' +}); diff --git a/ckeditor/plugins/colordialog/lang/mk.js b/ckeditor/plugins/colordialog/lang/mk.js new file mode 100644 index 0000000000000000000000000000000000000000..321e63dccdda3ece84434820a3c0ecad5abcf0b3 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/mk.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'mk', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +}); diff --git a/ckeditor/plugins/colordialog/lang/mn.js b/ckeditor/plugins/colordialog/lang/mn.js new file mode 100644 index 0000000000000000000000000000000000000000..87da19b79065fbf992922582ef643d7bad608a18 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/mn.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'mn', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +}); diff --git a/ckeditor/plugins/colordialog/lang/ms.js b/ckeditor/plugins/colordialog/lang/ms.js new file mode 100644 index 0000000000000000000000000000000000000000..63663af5ae7e0c32e9225dcb4ccc8f0a8b1cb884 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/ms.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ms', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +}); diff --git a/ckeditor/plugins/colordialog/lang/nb.js b/ckeditor/plugins/colordialog/lang/nb.js new file mode 100644 index 0000000000000000000000000000000000000000..4b56e1a01a5c53e67ddabfdf1a27e42db39f19d1 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/nb.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'nb', { + clear: 'Tøm', + highlight: 'Merk', + options: 'Alternativer for farge', + selected: 'Valgt', + title: 'Velg farge' +}); diff --git a/ckeditor/plugins/colordialog/lang/nl.js b/ckeditor/plugins/colordialog/lang/nl.js new file mode 100644 index 0000000000000000000000000000000000000000..22361e5d426f69f5228df8bcf569b7c2770b94d4 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/nl.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'nl', { + clear: 'Wissen', + highlight: 'Actief', + options: 'Kleuropties', + selected: 'Geselecteerde kleur', + title: 'Selecteer kleur' +}); diff --git a/ckeditor/plugins/colordialog/lang/no.js b/ckeditor/plugins/colordialog/lang/no.js new file mode 100644 index 0000000000000000000000000000000000000000..3e2dacdc2f526b0f48d9f701421a0618a1775937 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/no.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'no', { + clear: 'Tøm', + highlight: 'Merk', + options: 'Alternativer for farge', + selected: 'Valgt', + title: 'Velg farge' +}); diff --git a/ckeditor/plugins/colordialog/lang/pl.js b/ckeditor/plugins/colordialog/lang/pl.js new file mode 100644 index 0000000000000000000000000000000000000000..b4a37a2c83a877a563e3194edd732b193a65bac6 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/pl.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'pl', { + clear: 'Wyczyść', + highlight: 'Zaznacz', + options: 'Opcje koloru', + selected: 'Wybrany', + title: 'Wybierz kolor' +}); diff --git a/ckeditor/plugins/colordialog/lang/pt-br.js b/ckeditor/plugins/colordialog/lang/pt-br.js new file mode 100644 index 0000000000000000000000000000000000000000..9cde413f69e0af93a644b1cd80bbf8d69df434da --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/pt-br.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'pt-br', { + clear: 'Limpar', + highlight: 'Grifar', + options: 'Opções de Cor', + selected: 'Cor Selecionada', + title: 'Selecione uma Cor' +}); diff --git a/ckeditor/plugins/colordialog/lang/pt.js b/ckeditor/plugins/colordialog/lang/pt.js new file mode 100644 index 0000000000000000000000000000000000000000..180d21db63754b6831c9b54a1da33c07878564f8 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/pt.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'pt', { + clear: 'Limpar', + highlight: 'Realçar', + options: 'Opções da Cor', + selected: 'Cor Selecionada', + title: 'Selecionar Cor' +}); diff --git a/ckeditor/plugins/colordialog/lang/ro.js b/ckeditor/plugins/colordialog/lang/ro.js new file mode 100644 index 0000000000000000000000000000000000000000..7c55937d1b943a2797dc70f7a5fd85daf73bd0ef --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/ro.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ro', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +}); diff --git a/ckeditor/plugins/colordialog/lang/ru.js b/ckeditor/plugins/colordialog/lang/ru.js new file mode 100644 index 0000000000000000000000000000000000000000..366f23b8356bc5bd11daf4a4acf297fb5d835752 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/ru.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ru', { + clear: 'ОчиÑтить', + highlight: 'Под курÑором', + options: 'ÐаÑтройки цвета', + selected: 'Выбранный цвет', + title: 'Выберите цвет' +}); diff --git a/ckeditor/plugins/colordialog/lang/si.js b/ckeditor/plugins/colordialog/lang/si.js new file mode 100644 index 0000000000000000000000000000000000000000..f1223b6e58d69b6a6ed9f0d2af08b93382bef76c --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/si.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'si', { + clear: 'පà·à·„à·à¶¯à·’ලි', + highlight: 'මà¶à·”කර පෙන්වන්න', + options: 'වර්ණ විකල්ප', + selected: 'à¶à·™à¶»à·” වර්ණ', + title: 'වර්ණ à¶à·à¶»à¶±à·Šà¶±' +}); diff --git a/ckeditor/plugins/colordialog/lang/sk.js b/ckeditor/plugins/colordialog/lang/sk.js new file mode 100644 index 0000000000000000000000000000000000000000..aedf2a038a27064a95a40a44c6f18bd2703e3597 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/sk.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'sk', { + clear: 'VyÄistiÅ¥', + highlight: 'ZvýrazniÅ¥', + options: 'Možnosti farby', + selected: 'Vybraná farba', + title: 'Vyberte farbu' +}); diff --git a/ckeditor/plugins/colordialog/lang/sl.js b/ckeditor/plugins/colordialog/lang/sl.js new file mode 100644 index 0000000000000000000000000000000000000000..cb0b63266acb59aff5d2c70dc5c3f7db8c84365e --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/sl.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'sl', { + clear: 'PoÄisti', + highlight: 'Poudarjeno', + options: 'Barvne Možnosti', + selected: 'Izbrano', + title: 'Izberi barvo' +}); diff --git a/ckeditor/plugins/colordialog/lang/sq.js b/ckeditor/plugins/colordialog/lang/sq.js new file mode 100644 index 0000000000000000000000000000000000000000..5fb358c42b9293d590fcdaea22818a158ed0e282 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/sq.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'sq', { + clear: 'Pastro', + highlight: 'Thekso', + options: 'Përzgjedhjet e Ngjyrave', + selected: 'Ngjyra e Përzgjedhur', + title: 'Përzgjidh një ngjyrë' +}); diff --git a/ckeditor/plugins/colordialog/lang/sr-latn.js b/ckeditor/plugins/colordialog/lang/sr-latn.js new file mode 100644 index 0000000000000000000000000000000000000000..b4a14baa9daf54b2b40d8a7a361b6e5dcd35b914 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/sr-latn.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'sr-latn', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +}); diff --git a/ckeditor/plugins/colordialog/lang/sr.js b/ckeditor/plugins/colordialog/lang/sr.js new file mode 100644 index 0000000000000000000000000000000000000000..5d72b3aa456925f1a82ed9ff69595f87467812bd --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/sr.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'sr', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +}); diff --git a/ckeditor/plugins/colordialog/lang/sv.js b/ckeditor/plugins/colordialog/lang/sv.js new file mode 100644 index 0000000000000000000000000000000000000000..db467d3ca760fd90ebb12def41194867ef521635 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/sv.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'sv', { + clear: 'Rensa', + highlight: 'Markera', + options: 'Färgalternativ', + selected: 'Vald färg', + title: 'Välj färg' +}); diff --git a/ckeditor/plugins/colordialog/lang/th.js b/ckeditor/plugins/colordialog/lang/th.js new file mode 100644 index 0000000000000000000000000000000000000000..1b802b973308ab72366b85fa4b5673561746a44f --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/th.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'th', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +}); diff --git a/ckeditor/plugins/colordialog/lang/tr.js b/ckeditor/plugins/colordialog/lang/tr.js new file mode 100644 index 0000000000000000000000000000000000000000..1419c7ff59d1e8fec4c2a7d131aeef024097b145 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/tr.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'tr', { + clear: 'Temizle', + highlight: 'Ä°ÅŸaretle', + options: 'Renk Seçenekleri', + selected: 'SeçilmiÅŸ', + title: 'Renk seç' +}); diff --git a/ckeditor/plugins/colordialog/lang/ug.js b/ckeditor/plugins/colordialog/lang/ug.js new file mode 100644 index 0000000000000000000000000000000000000000..804faf2dcbbf7b650df21b339ec80538a5560ab0 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/ug.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'ug', { + clear: 'تازىلا', + highlight: 'يورۇت', + options: 'Ø±Û•Ú ØªØ§Ù„Ù„Ø§Ù†Ù…Ù‰Ø³Ù‰', + selected: 'Ø±Û•Ú ØªØ§Ù„Ù„Ø§Ú', + title: 'Ø±Û•Ú ØªØ§Ù„Ù„Ø§Ú' +}); diff --git a/ckeditor/plugins/colordialog/lang/uk.js b/ckeditor/plugins/colordialog/lang/uk.js new file mode 100644 index 0000000000000000000000000000000000000000..cd598e67401bd5b29c27f80b2ac4e30b1fec2a57 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/uk.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'uk', { + clear: 'ОчиÑтити', + highlight: 'Колір, на Ñкий вказує курÑор', + options: 'Опції кольорів', + selected: 'Обраний колір', + title: 'Обрати колір' +}); diff --git a/ckeditor/plugins/colordialog/lang/vi.js b/ckeditor/plugins/colordialog/lang/vi.js new file mode 100644 index 0000000000000000000000000000000000000000..204caa1a71cd25675c505bd42305a42ad01b24cd --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/vi.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'vi', { + clear: 'Xóa bá»', + highlight: 'Mà u chá»n', + options: 'Tùy chá»n mà u', + selected: 'Mà u đã chá»n', + title: 'Chá»n mà u' +}); diff --git a/ckeditor/plugins/colordialog/lang/zh-cn.js b/ckeditor/plugins/colordialog/lang/zh-cn.js new file mode 100644 index 0000000000000000000000000000000000000000..515a545b699736b8290353c7a8920adb146a1a0e --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/zh-cn.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'zh-cn', { + clear: '清除', + highlight: '高亮', + options: '颜色选项', + selected: '选择颜色', + title: '选择颜色' +}); diff --git a/ckeditor/plugins/colordialog/lang/zh.js b/ckeditor/plugins/colordialog/lang/zh.js new file mode 100644 index 0000000000000000000000000000000000000000..03023d0de746b207627f948d2dd00c4070a81309 --- /dev/null +++ b/ckeditor/plugins/colordialog/lang/zh.js @@ -0,0 +1,11 @@ +/* +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'colordialog', 'zh', { + clear: 'Clear', // MISSING + highlight: 'Highlight', // MISSING + options: 'Color Options', // MISSING + selected: 'Selected Color', // MISSING + title: 'Select color' // MISSING +}); diff --git a/ckeditor/plugins/colordialog/plugin.js b/ckeditor/plugins/colordialog/plugin.js new file mode 100644 index 0000000000000000000000000000000000000000..a73935c1b599ad2aace41b082aa69443c7888aaa --- /dev/null +++ b/ckeditor/plugins/colordialog/plugin.js @@ -0,0 +1,65 @@ +/** + * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.html or http://ckeditor.com/license + */ + +CKEDITOR.plugins.colordialog = { + requires: 'dialog', + lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en,en-au,en-ca,en-gb,eo,es,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% + init: function( editor ) { + editor.addCommand( 'colordialog', new CKEDITOR.dialogCommand( 'colordialog' ) ); + CKEDITOR.dialog.add( 'colordialog', this.path + 'dialogs/colordialog.js' ); + + /** + * Open up color dialog and to receive the selected color. + * + * @param {Function} callback The callback when color dialog is closed + * @param {String} callback.color The color value received if selected on the dialog. + * @param [scope] The scope in which the callback will be bound. + * @member CKEDITOR.editor + */ + editor.getColorFromDialog = function( callback, scope ) { + var onClose = function( evt ) { + releaseHandlers( this ); + var color = evt.name == 'ok' ? this.getValueOf( 'picker', 'selectedColor' ) : null; + callback.call( scope, color ); + }; + var releaseHandlers = function( dialog ) { + dialog.removeListener( 'ok', onClose ); + dialog.removeListener( 'cancel', onClose ); + }; + var bindToDialog = function( dialog ) { + dialog.on( 'ok', onClose ); + dialog.on( 'cancel', onClose ); + }; + + editor.execCommand( 'colordialog' ); + + if ( editor._.storedDialogs && editor._.storedDialogs.colordialog ) + bindToDialog( editor._.storedDialogs.colordialog ); + else { + CKEDITOR.on( 'dialogDefinition', function( e ) { + if ( e.data.name != 'colordialog' ) + return; + + var definition = e.data.definition; + + e.removeListener(); + definition.onLoad = CKEDITOR.tools.override( definition.onLoad, + function( orginal ) { + return function() { + bindToDialog( this ); + definition.onLoad = orginal; + if ( typeof orginal == 'function' ) + orginal.call( this ); + }; + } ); + } ); + } + }; + + + } +}; + +CKEDITOR.plugins.add( 'colordialog', CKEDITOR.plugins.colordialog ); diff --git a/library/ZendAfi/View/Helper/CkEditor.php b/library/ZendAfi/View/Helper/CkEditor.php index 56081190424e1edf3ca520af2226c341bf5f2411..496512756bd3376cb993b083e3a6c81df5e0f374 100644 --- a/library/ZendAfi/View/Helper/CkEditor.php +++ b/library/ZendAfi/View/Helper/CkEditor.php @@ -63,6 +63,8 @@ class ZendAfi_View_Helper_CkEditor extends ZendAfi_View_Helper_BaseHelper ['Bold','Italic','Underline','Strike'], ['NumberedList','BulletedList','-','Outdent','Indent'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock']]); + + $config['extraPlugins'] = 'colordialog'; $oCKeditor = new CKeditor(CKBASEURL); $oCKeditor->returnOutput = true;