diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-01-25 17:45:33 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-01-25 18:00:33 +0100 |
commit | 7adcb81e4f83f98c468889aaa5a85558ba88c770 (patch) | |
tree | 0d6ede733777b29060b48df4afaa2c64bfbae276 /sources/plugins/bidi | |
download | connexionswing-ckeditor-component-7adcb81e4f83f98c468889aaa5a85558ba88c770.tar.gz connexionswing-ckeditor-component-7adcb81e4f83f98c468889aaa5a85558ba88c770.tar.zst connexionswing-ckeditor-component-7adcb81e4f83f98c468889aaa5a85558ba88c770.zip |
Initial commit4.5.6
Diffstat (limited to 'sources/plugins/bidi')
71 files changed, 848 insertions, 0 deletions
diff --git a/sources/plugins/bidi/icons/bidiltr.png b/sources/plugins/bidi/icons/bidiltr.png new file mode 100644 index 00000000..a909c010 --- /dev/null +++ b/sources/plugins/bidi/icons/bidiltr.png | |||
Binary files differ | |||
diff --git a/sources/plugins/bidi/icons/bidirtl.png b/sources/plugins/bidi/icons/bidirtl.png new file mode 100644 index 00000000..7dbad48c --- /dev/null +++ b/sources/plugins/bidi/icons/bidirtl.png | |||
Binary files differ | |||
diff --git a/sources/plugins/bidi/icons/hidpi/bidiltr.png b/sources/plugins/bidi/icons/hidpi/bidiltr.png new file mode 100644 index 00000000..c5998e00 --- /dev/null +++ b/sources/plugins/bidi/icons/hidpi/bidiltr.png | |||
Binary files differ | |||
diff --git a/sources/plugins/bidi/icons/hidpi/bidirtl.png b/sources/plugins/bidi/icons/hidpi/bidirtl.png new file mode 100644 index 00000000..8aa2adc8 --- /dev/null +++ b/sources/plugins/bidi/icons/hidpi/bidirtl.png | |||
Binary files differ | |||
diff --git a/sources/plugins/bidi/lang/af.js b/sources/plugins/bidi/lang/af.js new file mode 100644 index 00000000..048140a1 --- /dev/null +++ b/sources/plugins/bidi/lang/af.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'af', { | ||
6 | ltr: 'Skryfrigting van links na regs', | ||
7 | rtl: 'Skryfrigting van regs na links' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/ar.js b/sources/plugins/bidi/lang/ar.js new file mode 100644 index 00000000..78297ecb --- /dev/null +++ b/sources/plugins/bidi/lang/ar.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'ar', { | ||
6 | ltr: 'إتجاه النص من اليسار إلى اليمين', | ||
7 | rtl: 'إتجاه النص من اليمين إلى اليسار' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/bg.js b/sources/plugins/bidi/lang/bg.js new file mode 100644 index 00000000..b81ab861 --- /dev/null +++ b/sources/plugins/bidi/lang/bg.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'bg', { | ||
6 | ltr: 'Посока на текста от ляво на дясно', | ||
7 | rtl: 'Посока на текста от дясно на ляво' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/bn.js b/sources/plugins/bidi/lang/bn.js new file mode 100644 index 00000000..2c35288e --- /dev/null +++ b/sources/plugins/bidi/lang/bn.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'bn', { | ||
6 | ltr: 'Text direction from left to right', // MISSING | ||
7 | rtl: 'Text direction from right to left' // MISSING | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/bs.js b/sources/plugins/bidi/lang/bs.js new file mode 100644 index 00000000..13f8ac49 --- /dev/null +++ b/sources/plugins/bidi/lang/bs.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'bs', { | ||
6 | ltr: 'Text direction from left to right', // MISSING | ||
7 | rtl: 'Text direction from right to left' // MISSING | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/ca.js b/sources/plugins/bidi/lang/ca.js new file mode 100644 index 00000000..801a18f4 --- /dev/null +++ b/sources/plugins/bidi/lang/ca.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'ca', { | ||
6 | ltr: 'Direcció del text d\'esquerra a dreta', | ||
7 | rtl: 'Direcció del text de dreta a esquerra' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/cs.js b/sources/plugins/bidi/lang/cs.js new file mode 100644 index 00000000..b0852c0a --- /dev/null +++ b/sources/plugins/bidi/lang/cs.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'cs', { | ||
6 | ltr: 'Směr textu zleva doprava', | ||
7 | rtl: 'Směr textu zprava doleva' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/cy.js b/sources/plugins/bidi/lang/cy.js new file mode 100644 index 00000000..17e9d3bb --- /dev/null +++ b/sources/plugins/bidi/lang/cy.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'cy', { | ||
6 | ltr: 'Cyfeiriad testun o\'r chwith i\'r dde', | ||
7 | rtl: 'Cyfeiriad testun o\'r dde i\'r chwith' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/da.js b/sources/plugins/bidi/lang/da.js new file mode 100644 index 00000000..a53fbf7b --- /dev/null +++ b/sources/plugins/bidi/lang/da.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'da', { | ||
6 | ltr: 'Tekstretning fra venstre til højre', | ||
7 | rtl: 'Tekstretning fra højre til venstre' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/de.js b/sources/plugins/bidi/lang/de.js new file mode 100644 index 00000000..043fbc8b --- /dev/null +++ b/sources/plugins/bidi/lang/de.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'de', { | ||
6 | ltr: 'Leserichtung von Links nach Rechts', | ||
7 | rtl: 'Leserichtung von Rechts nach Links' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/el.js b/sources/plugins/bidi/lang/el.js new file mode 100644 index 00000000..7c38e8d7 --- /dev/null +++ b/sources/plugins/bidi/lang/el.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'el', { | ||
6 | ltr: 'Διεύθυνση κειμένου από αριστερά στα δεξιά', | ||
7 | rtl: 'Διεύθυνση κειμένου από δεξιά στα αριστερά' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/en-au.js b/sources/plugins/bidi/lang/en-au.js new file mode 100644 index 00000000..a5fe457e --- /dev/null +++ b/sources/plugins/bidi/lang/en-au.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'en-au', { | ||
6 | ltr: 'Text direction from left to right', // MISSING | ||
7 | rtl: 'Text direction from right to left' // MISSING | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/en-ca.js b/sources/plugins/bidi/lang/en-ca.js new file mode 100644 index 00000000..8424bf67 --- /dev/null +++ b/sources/plugins/bidi/lang/en-ca.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'en-ca', { | ||
6 | ltr: 'Text direction from left to right', // MISSING | ||
7 | rtl: 'Text direction from right to left' // MISSING | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/en-gb.js b/sources/plugins/bidi/lang/en-gb.js new file mode 100644 index 00000000..60c192fb --- /dev/null +++ b/sources/plugins/bidi/lang/en-gb.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'en-gb', { | ||
6 | ltr: 'Text direction from left to right', | ||
7 | rtl: 'Text direction from right to left' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/en.js b/sources/plugins/bidi/lang/en.js new file mode 100644 index 00000000..a685a87d --- /dev/null +++ b/sources/plugins/bidi/lang/en.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'en', { | ||
6 | ltr: 'Text direction from left to right', | ||
7 | rtl: 'Text direction from right to left' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/eo.js b/sources/plugins/bidi/lang/eo.js new file mode 100644 index 00000000..c63e15bb --- /dev/null +++ b/sources/plugins/bidi/lang/eo.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'eo', { | ||
6 | ltr: 'Tekstdirekto de maldekstre dekstren', | ||
7 | rtl: 'Tekstdirekto de dekstre maldekstren' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/es.js b/sources/plugins/bidi/lang/es.js new file mode 100644 index 00000000..6ea13209 --- /dev/null +++ b/sources/plugins/bidi/lang/es.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'es', { | ||
6 | ltr: 'Dirección del texto de izquierda a derecha', | ||
7 | rtl: 'Dirección del texto de derecha a izquierda' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/et.js b/sources/plugins/bidi/lang/et.js new file mode 100644 index 00000000..4f8517d6 --- /dev/null +++ b/sources/plugins/bidi/lang/et.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'et', { | ||
6 | ltr: 'Teksti suund vasakult paremale', | ||
7 | rtl: 'Teksti suund paremalt vasakule' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/eu.js b/sources/plugins/bidi/lang/eu.js new file mode 100644 index 00000000..8b46a9c4 --- /dev/null +++ b/sources/plugins/bidi/lang/eu.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'eu', { | ||
6 | ltr: 'Testuaren norantza ezkerretik eskuinera', | ||
7 | rtl: 'Testuaren norantza eskuinetik ezkerrera' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/fa.js b/sources/plugins/bidi/lang/fa.js new file mode 100644 index 00000000..5d9a6eac --- /dev/null +++ b/sources/plugins/bidi/lang/fa.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'fa', { | ||
6 | ltr: 'جهت متن از چپ به راست', | ||
7 | rtl: 'جهت متن از راست به چپ' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/fi.js b/sources/plugins/bidi/lang/fi.js new file mode 100644 index 00000000..805f5b10 --- /dev/null +++ b/sources/plugins/bidi/lang/fi.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'fi', { | ||
6 | ltr: 'Tekstin suunta vasemmalta oikealle', | ||
7 | rtl: 'Tekstin suunta oikealta vasemmalle' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/fo.js b/sources/plugins/bidi/lang/fo.js new file mode 100644 index 00000000..4e1c9408 --- /dev/null +++ b/sources/plugins/bidi/lang/fo.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'fo', { | ||
6 | ltr: 'Tekstkós frá vinstru til høgru', | ||
7 | rtl: 'Tekstkós frá høgru til vinstru' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/fr-ca.js b/sources/plugins/bidi/lang/fr-ca.js new file mode 100644 index 00000000..184ed8ef --- /dev/null +++ b/sources/plugins/bidi/lang/fr-ca.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'fr-ca', { | ||
6 | ltr: 'Direction du texte de gauche à droite', | ||
7 | rtl: 'Direction du texte de droite à gauche' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/fr.js b/sources/plugins/bidi/lang/fr.js new file mode 100644 index 00000000..549a465d --- /dev/null +++ b/sources/plugins/bidi/lang/fr.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'fr', { | ||
6 | ltr: 'Direction du texte de la gauche vers la droite', | ||
7 | rtl: 'Direction du texte de la droite vers la gauche' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/gl.js b/sources/plugins/bidi/lang/gl.js new file mode 100644 index 00000000..cb753e3f --- /dev/null +++ b/sources/plugins/bidi/lang/gl.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'gl', { | ||
6 | ltr: 'Dirección do texto de esquerda a dereita', | ||
7 | rtl: 'Dirección do texto de dereita a esquerda' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/gu.js b/sources/plugins/bidi/lang/gu.js new file mode 100644 index 00000000..a75d98a8 --- /dev/null +++ b/sources/plugins/bidi/lang/gu.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'gu', { | ||
6 | ltr: 'ટેક્ષ્ત્ ની દિશા ડાબે થી જમણે', | ||
7 | rtl: 'ટેક્ષ્ત્ ની દિશા જમણે થી ડાબે' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/he.js b/sources/plugins/bidi/lang/he.js new file mode 100644 index 00000000..89840cd9 --- /dev/null +++ b/sources/plugins/bidi/lang/he.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'he', { | ||
6 | ltr: 'כיוון טקסט משמאל לימין (LTR)', | ||
7 | rtl: 'כיוון טקסט מימין לשמאל (RTL)' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/hi.js b/sources/plugins/bidi/lang/hi.js new file mode 100644 index 00000000..66697cc8 --- /dev/null +++ b/sources/plugins/bidi/lang/hi.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'hi', { | ||
6 | ltr: 'Text direction from left to right', // MISSING | ||
7 | rtl: 'Text direction from right to left' // MISSING | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/hr.js b/sources/plugins/bidi/lang/hr.js new file mode 100644 index 00000000..0be7b34c --- /dev/null +++ b/sources/plugins/bidi/lang/hr.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'hr', { | ||
6 | ltr: 'Smjer teksta s lijeva na desno', | ||
7 | rtl: 'Smjer teksta s desna na lijevo' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/hu.js b/sources/plugins/bidi/lang/hu.js new file mode 100644 index 00000000..58797e5d --- /dev/null +++ b/sources/plugins/bidi/lang/hu.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'hu', { | ||
6 | ltr: 'Szöveg iránya balról jobbra', | ||
7 | rtl: 'Szöveg iránya jobbról balra' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/id.js b/sources/plugins/bidi/lang/id.js new file mode 100644 index 00000000..2be45ac8 --- /dev/null +++ b/sources/plugins/bidi/lang/id.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'id', { | ||
6 | ltr: 'Arah penulisan dari kiri ke kanan.', | ||
7 | rtl: 'Arah penulisan dari kanan ke kiri.' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/is.js b/sources/plugins/bidi/lang/is.js new file mode 100644 index 00000000..cd41df26 --- /dev/null +++ b/sources/plugins/bidi/lang/is.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'is', { | ||
6 | ltr: 'Text direction from left to right', // MISSING | ||
7 | rtl: 'Text direction from right to left' // MISSING | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/it.js b/sources/plugins/bidi/lang/it.js new file mode 100644 index 00000000..d4e9de6a --- /dev/null +++ b/sources/plugins/bidi/lang/it.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'it', { | ||
6 | ltr: 'Direzione del testo da sinistra verso destra', | ||
7 | rtl: 'Direzione del testo da destra verso sinistra' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/ja.js b/sources/plugins/bidi/lang/ja.js new file mode 100644 index 00000000..c79e1b64 --- /dev/null +++ b/sources/plugins/bidi/lang/ja.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'ja', { | ||
6 | ltr: 'テキストの向き : 左から右へ', | ||
7 | rtl: 'テキストの向き : 右から左へ' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/ka.js b/sources/plugins/bidi/lang/ka.js new file mode 100644 index 00000000..cf731816 --- /dev/null +++ b/sources/plugins/bidi/lang/ka.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'ka', { | ||
6 | ltr: 'ტექსტის მიმართულება მარცხნიდან მარჯვნივ', | ||
7 | rtl: 'ტექსტის მიმართულება მარჯვნიდან მარცხნივ' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/km.js b/sources/plugins/bidi/lang/km.js new file mode 100644 index 00000000..b28d330a --- /dev/null +++ b/sources/plugins/bidi/lang/km.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'km', { | ||
6 | ltr: 'ទិសដៅអក្សរពីឆ្វេងទៅស្ដាំ', | ||
7 | rtl: 'ទិសដៅអក្សរពីស្ដាំទៅឆ្វេង' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/ko.js b/sources/plugins/bidi/lang/ko.js new file mode 100644 index 00000000..923f70ce --- /dev/null +++ b/sources/plugins/bidi/lang/ko.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'ko', { | ||
6 | ltr: '텍스트 방향이 왼쪽에서 오른쪽으로 ', | ||
7 | rtl: '텍스트 방향이 오른쪽에서 왼쪽으로' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/ku.js b/sources/plugins/bidi/lang/ku.js new file mode 100644 index 00000000..0d563c76 --- /dev/null +++ b/sources/plugins/bidi/lang/ku.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'ku', { | ||
6 | ltr: 'ئاراستەی نووسە لە چەپ بۆ ڕاست', | ||
7 | rtl: 'ئاراستەی نووسە لە ڕاست بۆ چەپ' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/lt.js b/sources/plugins/bidi/lang/lt.js new file mode 100644 index 00000000..e455b52b --- /dev/null +++ b/sources/plugins/bidi/lang/lt.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'lt', { | ||
6 | ltr: 'Tekstas iš kairės į dešinę', | ||
7 | rtl: 'Tekstas iš dešinės į kairę' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/lv.js b/sources/plugins/bidi/lang/lv.js new file mode 100644 index 00000000..b9e7d130 --- /dev/null +++ b/sources/plugins/bidi/lang/lv.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'lv', { | ||
6 | ltr: 'Teksta virziens no kreisās uz labo', | ||
7 | rtl: 'Teksta virziens no labās uz kreiso' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/mk.js b/sources/plugins/bidi/lang/mk.js new file mode 100644 index 00000000..f7771932 --- /dev/null +++ b/sources/plugins/bidi/lang/mk.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'mk', { | ||
6 | ltr: 'Text direction from left to right', // MISSING | ||
7 | rtl: 'Text direction from right to left' // MISSING | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/mn.js b/sources/plugins/bidi/lang/mn.js new file mode 100644 index 00000000..acade9af --- /dev/null +++ b/sources/plugins/bidi/lang/mn.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'mn', { | ||
6 | ltr: 'Зүүнээс баруун тийш бичлэг', | ||
7 | rtl: 'Баруунаас зүүн тийш бичлэг' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/ms.js b/sources/plugins/bidi/lang/ms.js new file mode 100644 index 00000000..a86971b6 --- /dev/null +++ b/sources/plugins/bidi/lang/ms.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'ms', { | ||
6 | ltr: 'Text direction from left to right', // MISSING | ||
7 | rtl: 'Text direction from right to left' // MISSING | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/nb.js b/sources/plugins/bidi/lang/nb.js new file mode 100644 index 00000000..3a1225b9 --- /dev/null +++ b/sources/plugins/bidi/lang/nb.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'nb', { | ||
6 | ltr: 'Tekstretning fra venstre til høyre', | ||
7 | rtl: 'Tekstretning fra høyre til venstre' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/nl.js b/sources/plugins/bidi/lang/nl.js new file mode 100644 index 00000000..d9cf8f7c --- /dev/null +++ b/sources/plugins/bidi/lang/nl.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'nl', { | ||
6 | ltr: 'Schrijfrichting van links naar rechts', | ||
7 | rtl: 'Schrijfrichting van rechts naar links' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/no.js b/sources/plugins/bidi/lang/no.js new file mode 100644 index 00000000..309a7474 --- /dev/null +++ b/sources/plugins/bidi/lang/no.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'no', { | ||
6 | ltr: 'Tekstretning fra venstre til høyre', | ||
7 | rtl: 'Tekstretning fra høyre til venstre' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/pl.js b/sources/plugins/bidi/lang/pl.js new file mode 100644 index 00000000..b9ad7eb9 --- /dev/null +++ b/sources/plugins/bidi/lang/pl.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'pl', { | ||
6 | ltr: 'Kierunek tekstu od lewej strony do prawej', | ||
7 | rtl: 'Kierunek tekstu od prawej strony do lewej' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/pt-br.js b/sources/plugins/bidi/lang/pt-br.js new file mode 100644 index 00000000..f97f3db1 --- /dev/null +++ b/sources/plugins/bidi/lang/pt-br.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'pt-br', { | ||
6 | ltr: 'Direção do texto da esquerda para a direita', | ||
7 | rtl: 'Direção do texto da direita para a esquerda' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/pt.js b/sources/plugins/bidi/lang/pt.js new file mode 100644 index 00000000..5dd99b3a --- /dev/null +++ b/sources/plugins/bidi/lang/pt.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'pt', { | ||
6 | ltr: 'Direção do texto da esquerda para a direita', | ||
7 | rtl: 'Direção do texto da direita para a esquerda' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/ro.js b/sources/plugins/bidi/lang/ro.js new file mode 100644 index 00000000..13a560b0 --- /dev/null +++ b/sources/plugins/bidi/lang/ro.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'ro', { | ||
6 | ltr: 'Direcția textului de la stânga la dreapta', | ||
7 | rtl: 'Direcția textului de la dreapta la stânga' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/ru.js b/sources/plugins/bidi/lang/ru.js new file mode 100644 index 00000000..e3dc391b --- /dev/null +++ b/sources/plugins/bidi/lang/ru.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'ru', { | ||
6 | ltr: 'Направление текста слева направо', | ||
7 | rtl: 'Направление текста справа налево' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/si.js b/sources/plugins/bidi/lang/si.js new file mode 100644 index 00000000..5260df1a --- /dev/null +++ b/sources/plugins/bidi/lang/si.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'si', { | ||
6 | ltr: 'වගන්ති දිශාව වමේ සිට දකුණට', | ||
7 | rtl: 'වගන්ති දිශාව දකුණේ සිට වමට' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/sk.js b/sources/plugins/bidi/lang/sk.js new file mode 100644 index 00000000..8f4a3587 --- /dev/null +++ b/sources/plugins/bidi/lang/sk.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'sk', { | ||
6 | ltr: 'Smer textu zľava doprava', | ||
7 | rtl: 'Smer textu sprava doľava' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/sl.js b/sources/plugins/bidi/lang/sl.js new file mode 100644 index 00000000..972d355c --- /dev/null +++ b/sources/plugins/bidi/lang/sl.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'sl', { | ||
6 | ltr: 'Smer besedila od leve proti desni', | ||
7 | rtl: 'Smer besedila od desne proti levi' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/sq.js b/sources/plugins/bidi/lang/sq.js new file mode 100644 index 00000000..55a2152b --- /dev/null +++ b/sources/plugins/bidi/lang/sq.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'sq', { | ||
6 | ltr: 'Drejtimi i tekstit nga e majta në të djathtë', | ||
7 | rtl: 'Drejtimi i tekstit nga e djathta në të majtë' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/sr-latn.js b/sources/plugins/bidi/lang/sr-latn.js new file mode 100644 index 00000000..bf349403 --- /dev/null +++ b/sources/plugins/bidi/lang/sr-latn.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'sr-latn', { | ||
6 | ltr: 'Text direction from left to right', // MISSING | ||
7 | rtl: 'Text direction from right to left' // MISSING | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/sr.js b/sources/plugins/bidi/lang/sr.js new file mode 100644 index 00000000..c8cff445 --- /dev/null +++ b/sources/plugins/bidi/lang/sr.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'sr', { | ||
6 | ltr: 'Text direction from left to right', // MISSING | ||
7 | rtl: 'Text direction from right to left' // MISSING | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/sv.js b/sources/plugins/bidi/lang/sv.js new file mode 100644 index 00000000..b2056407 --- /dev/null +++ b/sources/plugins/bidi/lang/sv.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'sv', { | ||
6 | ltr: 'Text riktning från vänster till höger', | ||
7 | rtl: 'Text riktning från höger till vänster' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/th.js b/sources/plugins/bidi/lang/th.js new file mode 100644 index 00000000..fefb49c7 --- /dev/null +++ b/sources/plugins/bidi/lang/th.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'th', { | ||
6 | ltr: 'Text direction from left to right', // MISSING | ||
7 | rtl: 'Text direction from right to left' // MISSING | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/tr.js b/sources/plugins/bidi/lang/tr.js new file mode 100644 index 00000000..11cde918 --- /dev/null +++ b/sources/plugins/bidi/lang/tr.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'tr', { | ||
6 | ltr: 'Metin yönü soldan sağa', | ||
7 | rtl: 'Metin yönü sağdan sola' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/tt.js b/sources/plugins/bidi/lang/tt.js new file mode 100644 index 00000000..b60b3b28 --- /dev/null +++ b/sources/plugins/bidi/lang/tt.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'tt', { | ||
6 | ltr: 'Сулдан уңга язылыш', | ||
7 | rtl: 'Уңнан сулга язылыш' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/ug.js b/sources/plugins/bidi/lang/ug.js new file mode 100644 index 00000000..b17d36cc --- /dev/null +++ b/sources/plugins/bidi/lang/ug.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'ug', { | ||
6 | ltr: 'تېكىست يۆنىلىشى سولدىن ئوڭغا', | ||
7 | rtl: 'تېكىست يۆنىلىشى ئوڭدىن سولغا' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/uk.js b/sources/plugins/bidi/lang/uk.js new file mode 100644 index 00000000..a74f09fc --- /dev/null +++ b/sources/plugins/bidi/lang/uk.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'uk', { | ||
6 | ltr: 'Напрямок тексту зліва направо', | ||
7 | rtl: 'Напрямок тексту справа наліво' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/vi.js b/sources/plugins/bidi/lang/vi.js new file mode 100644 index 00000000..cc6fd7b0 --- /dev/null +++ b/sources/plugins/bidi/lang/vi.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'vi', { | ||
6 | ltr: 'Văn bản hướng từ trái sang phải', | ||
7 | rtl: 'Văn bản hướng từ phải sang trái' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/zh-cn.js b/sources/plugins/bidi/lang/zh-cn.js new file mode 100644 index 00000000..d56019e2 --- /dev/null +++ b/sources/plugins/bidi/lang/zh-cn.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'zh-cn', { | ||
6 | ltr: '文字方向为从左至右', | ||
7 | rtl: '文字方向为从右至左' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/lang/zh.js b/sources/plugins/bidi/lang/zh.js new file mode 100644 index 00000000..ff5db4f9 --- /dev/null +++ b/sources/plugins/bidi/lang/zh.js | |||
@@ -0,0 +1,8 @@ | |||
1 | /* | ||
2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | CKEDITOR.plugins.setLang( 'bidi', 'zh', { | ||
6 | ltr: '文字方向從左至右', | ||
7 | rtl: '文字方向從右至左' | ||
8 | } ); | ||
diff --git a/sources/plugins/bidi/plugin.js b/sources/plugins/bidi/plugin.js new file mode 100644 index 00000000..bfe3ffcb --- /dev/null +++ b/sources/plugins/bidi/plugin.js | |||
@@ -0,0 +1,320 @@ | |||
1 | /** | ||
2 | * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
3 | * For licensing, see LICENSE.md or http://ckeditor.com/license | ||
4 | */ | ||
5 | |||
6 | ( function() { | ||
7 | var guardElements = { table: 1, ul: 1, ol: 1, blockquote: 1, div: 1 }, | ||
8 | directSelectionGuardElements = {}, | ||
9 | // All guard elements which can have a direction applied on them. | ||
10 | allGuardElements = {}; | ||
11 | CKEDITOR.tools.extend( directSelectionGuardElements, guardElements, { tr: 1, p: 1, div: 1, li: 1 } ); | ||
12 | CKEDITOR.tools.extend( allGuardElements, directSelectionGuardElements, { td: 1 } ); | ||
13 | |||
14 | function setToolbarStates( editor, path ) { | ||
15 | var useComputedState = editor.config.useComputedState, | ||
16 | selectedElement; | ||
17 | |||
18 | useComputedState = useComputedState === undefined || useComputedState; | ||
19 | |||
20 | // We can use computedState provided by the browser or traverse parents manually. | ||
21 | if ( !useComputedState ) | ||
22 | selectedElement = getElementForDirection( path.lastElement, editor.editable() ); | ||
23 | |||
24 | selectedElement = selectedElement || path.block || path.blockLimit; | ||
25 | |||
26 | // If we're having BODY here, user probably done CTRL+A, let's try to get the enclosed node, if any. | ||
27 | if ( selectedElement.equals( editor.editable() ) ) { | ||
28 | var enclosedNode = editor.getSelection().getRanges()[ 0 ].getEnclosedNode(); | ||
29 | enclosedNode && enclosedNode.type == CKEDITOR.NODE_ELEMENT && ( selectedElement = enclosedNode ); | ||
30 | } | ||
31 | |||
32 | if ( !selectedElement ) | ||
33 | return; | ||
34 | |||
35 | var selectionDir = useComputedState ? selectedElement.getComputedStyle( 'direction' ) : selectedElement.getStyle( 'direction' ) || selectedElement.getAttribute( 'dir' ); | ||
36 | |||
37 | editor.getCommand( 'bidirtl' ).setState( selectionDir == 'rtl' ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF ); | ||
38 | editor.getCommand( 'bidiltr' ).setState( selectionDir == 'ltr' ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF ); | ||
39 | } | ||
40 | |||
41 | function handleMixedDirContent( editor, path ) { | ||
42 | var directionNode = path.block || path.blockLimit || editor.editable(); | ||
43 | var pathDir = directionNode.getDirection( 1 ); | ||
44 | if ( pathDir != ( editor._.selDir || editor.lang.dir ) ) { | ||
45 | editor._.selDir = pathDir; | ||
46 | editor.fire( 'contentDirChanged', pathDir ); | ||
47 | } | ||
48 | } | ||
49 | |||
50 | // Returns element with possibility of applying the direction. | ||
51 | // @param node | ||
52 | function getElementForDirection( node, root ) { | ||
53 | while ( node && !( node.getName() in allGuardElements || node.equals( root ) ) ) { | ||
54 | var parent = node.getParent(); | ||
55 | if ( !parent ) | ||
56 | break; | ||
57 | |||
58 | node = parent; | ||
59 | } | ||
60 | |||
61 | return node; | ||
62 | } | ||
63 | |||
64 | function switchDir( element, dir, editor, database ) { | ||
65 | if ( element.isReadOnly() || element.equals( editor.editable() ) ) | ||
66 | return; | ||
67 | |||
68 | // Mark this element as processed by switchDir. | ||
69 | CKEDITOR.dom.element.setMarker( database, element, 'bidi_processed', 1 ); | ||
70 | |||
71 | // Check whether one of the ancestors has already been styled. | ||
72 | var parent = element, | ||
73 | editable = editor.editable(); | ||
74 | while ( ( parent = parent.getParent() ) && !parent.equals( editable ) ) { | ||
75 | if ( parent.getCustomData( 'bidi_processed' ) ) { | ||
76 | // Ancestor style must dominate. | ||
77 | element.removeStyle( 'direction' ); | ||
78 | element.removeAttribute( 'dir' ); | ||
79 | return; | ||
80 | } | ||
81 | } | ||
82 | |||
83 | var useComputedState = ( 'useComputedState' in editor.config ) ? editor.config.useComputedState : 1; | ||
84 | |||
85 | var elementDir = useComputedState ? element.getComputedStyle( 'direction' ) : element.getStyle( 'direction' ) || element.hasAttribute( 'dir' ); | ||
86 | |||
87 | // Stop if direction is same as present. | ||
88 | if ( elementDir == dir ) | ||
89 | return; | ||
90 | |||
91 | // Clear direction on this element. | ||
92 | element.removeStyle( 'direction' ); | ||
93 | |||
94 | // Do the second check when computed state is ON, to check | ||
95 | // if we need to apply explicit direction on this element. | ||
96 | if ( useComputedState ) { | ||
97 | element.removeAttribute( 'dir' ); | ||
98 | if ( dir != element.getComputedStyle( 'direction' ) ) { | ||
99 | element.setAttribute( 'dir', dir ); | ||
100 | } | ||
101 | } else { | ||
102 | // Set new direction for this element. | ||
103 | element.setAttribute( 'dir', dir ); | ||
104 | } | ||
105 | |||
106 | editor.forceNextSelectionCheck(); | ||
107 | |||
108 | return; | ||
109 | } | ||
110 | |||
111 | function getFullySelected( range, elements, enterMode ) { | ||
112 | var ancestor = range.getCommonAncestor( false, true ); | ||
113 | |||
114 | range = range.clone(); | ||
115 | range.enlarge( enterMode == CKEDITOR.ENTER_BR ? CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS : CKEDITOR.ENLARGE_BLOCK_CONTENTS ); | ||
116 | |||
117 | if ( range.checkBoundaryOfElement( ancestor, CKEDITOR.START ) && range.checkBoundaryOfElement( ancestor, CKEDITOR.END ) ) { | ||
118 | var parent; | ||
119 | while ( ancestor && ancestor.type == CKEDITOR.NODE_ELEMENT && ( parent = ancestor.getParent() ) && parent.getChildCount() == 1 && !( ancestor.getName() in elements ) ) | ||
120 | ancestor = parent; | ||
121 | |||
122 | return ancestor.type == CKEDITOR.NODE_ELEMENT && ( ancestor.getName() in elements ) && ancestor; | ||
123 | } | ||
124 | } | ||
125 | |||
126 | function bidiCommand( dir ) { | ||
127 | return { | ||
128 | // It applies to a "block-like" context. | ||
129 | context: 'p', | ||
130 | allowedContent: { | ||
131 | 'h1 h2 h3 h4 h5 h6 table ul ol blockquote div tr p div li td': { | ||
132 | propertiesOnly: true, | ||
133 | attributes: 'dir' | ||
134 | } | ||
135 | }, | ||
136 | requiredContent: 'p[dir]', | ||
137 | refresh: function( editor, path ) { | ||
138 | setToolbarStates( editor, path ); | ||
139 | handleMixedDirContent( editor, path ); | ||
140 | }, | ||
141 | exec: function( editor ) { | ||
142 | var selection = editor.getSelection(), | ||
143 | enterMode = editor.config.enterMode, | ||
144 | ranges = selection.getRanges(); | ||
145 | |||
146 | if ( ranges && ranges.length ) { | ||
147 | var database = {}; | ||
148 | |||
149 | // Creates bookmarks for selection, as we may split some blocks. | ||
150 | var bookmarks = selection.createBookmarks(); | ||
151 | |||
152 | var rangeIterator = ranges.createIterator(), | ||
153 | range, | ||
154 | i = 0; | ||
155 | |||
156 | while ( ( range = rangeIterator.getNextRange( 1 ) ) ) { | ||
157 | // Apply do directly selected elements from guardElements. | ||
158 | var selectedElement = range.getEnclosedNode(); | ||
159 | |||
160 | // If this is not our element of interest, apply to fully selected elements from guardElements. | ||
161 | if ( !selectedElement || selectedElement && !( selectedElement.type == CKEDITOR.NODE_ELEMENT && selectedElement.getName() in directSelectionGuardElements ) ) | ||
162 | selectedElement = getFullySelected( range, guardElements, enterMode ); | ||
163 | |||
164 | selectedElement && switchDir( selectedElement, dir, editor, database ); | ||
165 | |||
166 | var iterator, block; | ||
167 | |||
168 | // Walker searching for guardElements. | ||
169 | var walker = new CKEDITOR.dom.walker( range ); | ||
170 | |||
171 | var start = bookmarks[ i ].startNode, | ||
172 | end = bookmarks[ i++ ].endNode; | ||
173 | |||
174 | walker.evaluator = function( node ) { | ||
175 | var enterTagName = ( enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ); | ||
176 | |||
177 | function isNodeElement( node ) { | ||
178 | return node ? ( node.type == CKEDITOR.NODE_ELEMENT ) : false; | ||
179 | } | ||
180 | |||
181 | function isGuard( node ) { | ||
182 | return node.getName() in guardElements; | ||
183 | } | ||
184 | |||
185 | return !!( isNodeElement( node ) && isGuard( node ) && !( node.is( enterTagName ) && isNodeElement( node.getParent() ) && node.getParent().is( 'blockquote' ) ) && | ||
186 | // Element must be fully included in the range as well. (#6485). | ||
187 | node.getPosition( start ) & CKEDITOR.POSITION_FOLLOWING && | ||
188 | ( ( node.getPosition( end ) & CKEDITOR.POSITION_PRECEDING + CKEDITOR.POSITION_CONTAINS ) == CKEDITOR.POSITION_PRECEDING ) ); | ||
189 | }; | ||
190 | |||
191 | while ( ( block = walker.next() ) ) | ||
192 | switchDir( block, dir, editor, database ); | ||
193 | |||
194 | iterator = range.createIterator(); | ||
195 | iterator.enlargeBr = enterMode != CKEDITOR.ENTER_BR; | ||
196 | |||
197 | while ( ( block = iterator.getNextParagraph( enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ) ) ) | ||
198 | switchDir( block, dir, editor, database ); | ||
199 | } | ||
200 | |||
201 | CKEDITOR.dom.element.clearAllMarkers( database ); | ||
202 | |||
203 | editor.forceNextSelectionCheck(); | ||
204 | // Restore selection position. | ||
205 | selection.selectBookmarks( bookmarks ); | ||
206 | |||
207 | editor.focus(); | ||
208 | } | ||
209 | } | ||
210 | }; | ||
211 | } | ||
212 | |||
213 | CKEDITOR.plugins.add( 'bidi', { | ||
214 | // jscs:disable maximumLineLength | ||
215 | 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,id,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,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% | ||
216 | // jscs:enable maximumLineLength | ||
217 | icons: 'bidiltr,bidirtl', // %REMOVE_LINE_CORE% | ||
218 | hidpi: true, // %REMOVE_LINE_CORE% | ||
219 | init: function( editor ) { | ||
220 | if ( editor.blockless ) | ||
221 | return; | ||
222 | |||
223 | // All buttons use the same code to register. So, to avoid | ||
224 | // duplications, let's use this tool function. | ||
225 | function addButtonCommand( buttonName, buttonLabel, commandName, commandDef, order ) { | ||
226 | editor.addCommand( commandName, new CKEDITOR.command( editor, commandDef ) ); | ||
227 | |||
228 | if ( editor.ui.addButton ) { | ||
229 | editor.ui.addButton( buttonName, { | ||
230 | label: buttonLabel, | ||
231 | command: commandName, | ||
232 | toolbar: 'bidi,' + order | ||
233 | } ); | ||
234 | } | ||
235 | } | ||
236 | |||
237 | var lang = editor.lang.bidi; | ||
238 | |||
239 | addButtonCommand( 'BidiLtr', lang.ltr, 'bidiltr', bidiCommand( 'ltr' ), 10 ); | ||
240 | addButtonCommand( 'BidiRtl', lang.rtl, 'bidirtl', bidiCommand( 'rtl' ), 20 ); | ||
241 | |||
242 | editor.on( 'contentDom', function() { | ||
243 | editor.document.on( 'dirChanged', function( evt ) { | ||
244 | editor.fire( 'dirChanged', { | ||
245 | node: evt.data, | ||
246 | dir: evt.data.getDirection( 1 ) | ||
247 | } ); | ||
248 | } ); | ||
249 | } ); | ||
250 | |||
251 | // Indicate that the current selection is in different direction than the UI. | ||
252 | editor.on( 'contentDirChanged', function( evt ) { | ||
253 | var func = ( editor.lang.dir != evt.data ? 'add' : 'remove' ) + 'Class'; | ||
254 | var toolbar = editor.ui.space( editor.config.toolbarLocation ); | ||
255 | if ( toolbar ) | ||
256 | toolbar[ func ]( 'cke_mixed_dir_content' ); | ||
257 | } ); | ||
258 | } | ||
259 | } ); | ||
260 | |||
261 | // If the element direction changed, we need to switch the margins of | ||
262 | // the element and all its children, so it will get really reflected | ||
263 | // like a mirror. (#5910) | ||
264 | function isOffline( el ) { | ||
265 | var html = el.getDocument().getBody().getParent(); | ||
266 | while ( el ) { | ||
267 | if ( el.equals( html ) ) | ||
268 | return false; | ||
269 | el = el.getParent(); | ||
270 | } | ||
271 | return true; | ||
272 | } | ||
273 | |||
274 | function dirChangeNotifier( org ) { | ||
275 | var isAttribute = org == elementProto.setAttribute, | ||
276 | isRemoveAttribute = org == elementProto.removeAttribute, | ||
277 | dirStyleRegexp = /\bdirection\s*:\s*(.*?)\s*(:?$|;)/; | ||
278 | |||
279 | return function( name, val ) { | ||
280 | if ( !this.isReadOnly() ) { | ||
281 | var orgDir; | ||
282 | if ( ( name == ( isAttribute || isRemoveAttribute ? 'dir' : 'direction' ) || name == 'style' && ( isRemoveAttribute || dirStyleRegexp.test( val ) ) ) && !isOffline( this ) ) { | ||
283 | orgDir = this.getDirection( 1 ); | ||
284 | var retval = org.apply( this, arguments ); | ||
285 | if ( orgDir != this.getDirection( 1 ) ) { | ||
286 | this.getDocument().fire( 'dirChanged', this ); | ||
287 | return retval; | ||
288 | } | ||
289 | } | ||
290 | } | ||
291 | |||
292 | return org.apply( this, arguments ); | ||
293 | }; | ||
294 | } | ||
295 | |||
296 | var elementProto = CKEDITOR.dom.element.prototype, | ||
297 | methods = [ 'setStyle', 'removeStyle', 'setAttribute', 'removeAttribute' ]; | ||
298 | for ( var i = 0; i < methods.length; i++ ) | ||
299 | elementProto[ methods[ i ] ] = CKEDITOR.tools.override( elementProto[ methods[ i ] ], dirChangeNotifier ); | ||
300 | } )(); | ||
301 | |||
302 | /** | ||
303 | * Fired when the language direction of an element is changed. | ||
304 | * | ||
305 | * @event dirChanged | ||
306 | * @member CKEDITOR.editor | ||
307 | * @param {CKEDITOR.editor} editor This editor instance. | ||
308 | * @param data | ||
309 | * @param {CKEDITOR.dom.node} data.node The element that is being changed. | ||
310 | * @param {String} data.dir The new direction. | ||
311 | */ | ||
312 | |||
313 | /** | ||
314 | * Fired when the language direction in the specific cursor position is changed | ||
315 | * | ||
316 | * @event contentDirChanged | ||
317 | * @member CKEDITOR.editor | ||
318 | * @param {CKEDITOR.editor} editor This editor instance. | ||
319 | * @param {String} data The direction in the current position. | ||
320 | */ | ||