From 7adcb81e4f83f98c468889aaa5a85558ba88c770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Mon, 25 Jan 2016 17:45:33 +0100 Subject: Initial commit --- sources/plugins/indent/dev/indent.html | 284 +++++++++++++ sources/plugins/indent/icons/hidpi/indent-rtl.png | Bin 0 -> 1610 bytes sources/plugins/indent/icons/hidpi/indent.png | Bin 0 -> 1573 bytes sources/plugins/indent/icons/hidpi/outdent-rtl.png | Bin 0 -> 1584 bytes sources/plugins/indent/icons/hidpi/outdent.png | Bin 0 -> 1598 bytes sources/plugins/indent/icons/indent-rtl.png | Bin 0 -> 726 bytes sources/plugins/indent/icons/indent.png | Bin 0 -> 711 bytes sources/plugins/indent/icons/outdent-rtl.png | Bin 0 -> 708 bytes sources/plugins/indent/icons/outdent.png | Bin 0 -> 699 bytes sources/plugins/indent/lang/af.js | 8 + sources/plugins/indent/lang/ar.js | 8 + sources/plugins/indent/lang/bg.js | 8 + sources/plugins/indent/lang/bn.js | 8 + sources/plugins/indent/lang/bs.js | 8 + sources/plugins/indent/lang/ca.js | 8 + sources/plugins/indent/lang/cs.js | 8 + sources/plugins/indent/lang/cy.js | 8 + sources/plugins/indent/lang/da.js | 8 + sources/plugins/indent/lang/de.js | 8 + sources/plugins/indent/lang/el.js | 8 + sources/plugins/indent/lang/en-au.js | 8 + sources/plugins/indent/lang/en-ca.js | 8 + sources/plugins/indent/lang/en-gb.js | 8 + sources/plugins/indent/lang/en.js | 8 + sources/plugins/indent/lang/eo.js | 8 + sources/plugins/indent/lang/es.js | 8 + sources/plugins/indent/lang/et.js | 8 + sources/plugins/indent/lang/eu.js | 8 + sources/plugins/indent/lang/fa.js | 8 + sources/plugins/indent/lang/fi.js | 8 + sources/plugins/indent/lang/fo.js | 8 + sources/plugins/indent/lang/fr-ca.js | 8 + sources/plugins/indent/lang/fr.js | 8 + sources/plugins/indent/lang/gl.js | 8 + sources/plugins/indent/lang/gu.js | 8 + sources/plugins/indent/lang/he.js | 8 + sources/plugins/indent/lang/hi.js | 8 + sources/plugins/indent/lang/hr.js | 8 + sources/plugins/indent/lang/hu.js | 8 + sources/plugins/indent/lang/id.js | 8 + sources/plugins/indent/lang/is.js | 8 + sources/plugins/indent/lang/it.js | 8 + sources/plugins/indent/lang/ja.js | 8 + sources/plugins/indent/lang/ka.js | 8 + sources/plugins/indent/lang/km.js | 8 + sources/plugins/indent/lang/ko.js | 8 + sources/plugins/indent/lang/ku.js | 8 + sources/plugins/indent/lang/lt.js | 8 + sources/plugins/indent/lang/lv.js | 8 + sources/plugins/indent/lang/mk.js | 8 + sources/plugins/indent/lang/mn.js | 8 + sources/plugins/indent/lang/ms.js | 8 + sources/plugins/indent/lang/nb.js | 8 + sources/plugins/indent/lang/nl.js | 8 + sources/plugins/indent/lang/no.js | 8 + sources/plugins/indent/lang/pl.js | 8 + sources/plugins/indent/lang/pt-br.js | 8 + sources/plugins/indent/lang/pt.js | 8 + sources/plugins/indent/lang/ro.js | 8 + sources/plugins/indent/lang/ru.js | 8 + sources/plugins/indent/lang/si.js | 8 + sources/plugins/indent/lang/sk.js | 8 + sources/plugins/indent/lang/sl.js | 8 + sources/plugins/indent/lang/sq.js | 8 + sources/plugins/indent/lang/sr-latn.js | 8 + sources/plugins/indent/lang/sr.js | 8 + sources/plugins/indent/lang/sv.js | 8 + sources/plugins/indent/lang/th.js | 8 + sources/plugins/indent/lang/tr.js | 8 + sources/plugins/indent/lang/tt.js | 8 + sources/plugins/indent/lang/ug.js | 8 + sources/plugins/indent/lang/uk.js | 8 + sources/plugins/indent/lang/vi.js | 8 + sources/plugins/indent/lang/zh-cn.js | 8 + sources/plugins/indent/lang/zh.js | 8 + sources/plugins/indent/plugin.js | 461 +++++++++++++++++++++ 76 files changed, 1273 insertions(+) create mode 100644 sources/plugins/indent/dev/indent.html create mode 100644 sources/plugins/indent/icons/hidpi/indent-rtl.png create mode 100644 sources/plugins/indent/icons/hidpi/indent.png create mode 100644 sources/plugins/indent/icons/hidpi/outdent-rtl.png create mode 100644 sources/plugins/indent/icons/hidpi/outdent.png create mode 100644 sources/plugins/indent/icons/indent-rtl.png create mode 100644 sources/plugins/indent/icons/indent.png create mode 100644 sources/plugins/indent/icons/outdent-rtl.png create mode 100644 sources/plugins/indent/icons/outdent.png create mode 100644 sources/plugins/indent/lang/af.js create mode 100644 sources/plugins/indent/lang/ar.js create mode 100644 sources/plugins/indent/lang/bg.js create mode 100644 sources/plugins/indent/lang/bn.js create mode 100644 sources/plugins/indent/lang/bs.js create mode 100644 sources/plugins/indent/lang/ca.js create mode 100644 sources/plugins/indent/lang/cs.js create mode 100644 sources/plugins/indent/lang/cy.js create mode 100644 sources/plugins/indent/lang/da.js create mode 100644 sources/plugins/indent/lang/de.js create mode 100644 sources/plugins/indent/lang/el.js create mode 100644 sources/plugins/indent/lang/en-au.js create mode 100644 sources/plugins/indent/lang/en-ca.js create mode 100644 sources/plugins/indent/lang/en-gb.js create mode 100644 sources/plugins/indent/lang/en.js create mode 100644 sources/plugins/indent/lang/eo.js create mode 100644 sources/plugins/indent/lang/es.js create mode 100644 sources/plugins/indent/lang/et.js create mode 100644 sources/plugins/indent/lang/eu.js create mode 100644 sources/plugins/indent/lang/fa.js create mode 100644 sources/plugins/indent/lang/fi.js create mode 100644 sources/plugins/indent/lang/fo.js create mode 100644 sources/plugins/indent/lang/fr-ca.js create mode 100644 sources/plugins/indent/lang/fr.js create mode 100644 sources/plugins/indent/lang/gl.js create mode 100644 sources/plugins/indent/lang/gu.js create mode 100644 sources/plugins/indent/lang/he.js create mode 100644 sources/plugins/indent/lang/hi.js create mode 100644 sources/plugins/indent/lang/hr.js create mode 100644 sources/plugins/indent/lang/hu.js create mode 100644 sources/plugins/indent/lang/id.js create mode 100644 sources/plugins/indent/lang/is.js create mode 100644 sources/plugins/indent/lang/it.js create mode 100644 sources/plugins/indent/lang/ja.js create mode 100644 sources/plugins/indent/lang/ka.js create mode 100644 sources/plugins/indent/lang/km.js create mode 100644 sources/plugins/indent/lang/ko.js create mode 100644 sources/plugins/indent/lang/ku.js create mode 100644 sources/plugins/indent/lang/lt.js create mode 100644 sources/plugins/indent/lang/lv.js create mode 100644 sources/plugins/indent/lang/mk.js create mode 100644 sources/plugins/indent/lang/mn.js create mode 100644 sources/plugins/indent/lang/ms.js create mode 100644 sources/plugins/indent/lang/nb.js create mode 100644 sources/plugins/indent/lang/nl.js create mode 100644 sources/plugins/indent/lang/no.js create mode 100644 sources/plugins/indent/lang/pl.js create mode 100644 sources/plugins/indent/lang/pt-br.js create mode 100644 sources/plugins/indent/lang/pt.js create mode 100644 sources/plugins/indent/lang/ro.js create mode 100644 sources/plugins/indent/lang/ru.js create mode 100644 sources/plugins/indent/lang/si.js create mode 100644 sources/plugins/indent/lang/sk.js create mode 100644 sources/plugins/indent/lang/sl.js create mode 100644 sources/plugins/indent/lang/sq.js create mode 100644 sources/plugins/indent/lang/sr-latn.js create mode 100644 sources/plugins/indent/lang/sr.js create mode 100644 sources/plugins/indent/lang/sv.js create mode 100644 sources/plugins/indent/lang/th.js create mode 100644 sources/plugins/indent/lang/tr.js create mode 100644 sources/plugins/indent/lang/tt.js create mode 100644 sources/plugins/indent/lang/ug.js create mode 100644 sources/plugins/indent/lang/uk.js create mode 100644 sources/plugins/indent/lang/vi.js create mode 100644 sources/plugins/indent/lang/zh-cn.js create mode 100644 sources/plugins/indent/lang/zh.js create mode 100644 sources/plugins/indent/plugin.js (limited to 'sources/plugins/indent') diff --git a/sources/plugins/indent/dev/indent.html b/sources/plugins/indent/dev/indent.html new file mode 100644 index 00000000..0a3a8288 --- /dev/null +++ b/sources/plugins/indent/dev/indent.html @@ -0,0 +1,284 @@ + + + + + + Indent DEV sample + + + + + + +

Indent DEV sample

+

List & Block

+ + +

Indent classes

+ + +

List only

+ + +

Block only

+ + +

CKEDITOR.ENTER_BR

+ + + + diff --git a/sources/plugins/indent/icons/hidpi/indent-rtl.png b/sources/plugins/indent/icons/hidpi/indent-rtl.png new file mode 100644 index 00000000..e14dc308 Binary files /dev/null and b/sources/plugins/indent/icons/hidpi/indent-rtl.png differ diff --git a/sources/plugins/indent/icons/hidpi/indent.png b/sources/plugins/indent/icons/hidpi/indent.png new file mode 100644 index 00000000..c629bb41 Binary files /dev/null and b/sources/plugins/indent/icons/hidpi/indent.png differ diff --git a/sources/plugins/indent/icons/hidpi/outdent-rtl.png b/sources/plugins/indent/icons/hidpi/outdent-rtl.png new file mode 100644 index 00000000..35f69abf Binary files /dev/null and b/sources/plugins/indent/icons/hidpi/outdent-rtl.png differ diff --git a/sources/plugins/indent/icons/hidpi/outdent.png b/sources/plugins/indent/icons/hidpi/outdent.png new file mode 100644 index 00000000..b00179e2 Binary files /dev/null and b/sources/plugins/indent/icons/hidpi/outdent.png differ diff --git a/sources/plugins/indent/icons/indent-rtl.png b/sources/plugins/indent/icons/indent-rtl.png new file mode 100644 index 00000000..ff3fd222 Binary files /dev/null and b/sources/plugins/indent/icons/indent-rtl.png differ diff --git a/sources/plugins/indent/icons/indent.png b/sources/plugins/indent/icons/indent.png new file mode 100644 index 00000000..3e151bc6 Binary files /dev/null and b/sources/plugins/indent/icons/indent.png differ diff --git a/sources/plugins/indent/icons/outdent-rtl.png b/sources/plugins/indent/icons/outdent-rtl.png new file mode 100644 index 00000000..7165424d Binary files /dev/null and b/sources/plugins/indent/icons/outdent-rtl.png differ diff --git a/sources/plugins/indent/icons/outdent.png b/sources/plugins/indent/icons/outdent.png new file mode 100644 index 00000000..54f205d6 Binary files /dev/null and b/sources/plugins/indent/icons/outdent.png differ diff --git a/sources/plugins/indent/lang/af.js b/sources/plugins/indent/lang/af.js new file mode 100644 index 00000000..dcf8aeed --- /dev/null +++ b/sources/plugins/indent/lang/af.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'af', { + indent: 'Vergroot inspring', + outdent: 'Verklein inspring' +} ); diff --git a/sources/plugins/indent/lang/ar.js b/sources/plugins/indent/lang/ar.js new file mode 100644 index 00000000..bf427cba --- /dev/null +++ b/sources/plugins/indent/lang/ar.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'ar', { + indent: 'زيادة المسافة البادئة', + outdent: 'إنقاص المسافة البادئة' +} ); diff --git a/sources/plugins/indent/lang/bg.js b/sources/plugins/indent/lang/bg.js new file mode 100644 index 00000000..329363a6 --- /dev/null +++ b/sources/plugins/indent/lang/bg.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'bg', { + indent: 'Увеличаване на отстъпа', + outdent: 'Намаляване на отстъпа' +} ); diff --git a/sources/plugins/indent/lang/bn.js b/sources/plugins/indent/lang/bn.js new file mode 100644 index 00000000..331bede3 --- /dev/null +++ b/sources/plugins/indent/lang/bn.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'bn', { + indent: 'ইনডেন্ট বাড়াও', + outdent: 'ইনডেন্ট কমাও' +} ); diff --git a/sources/plugins/indent/lang/bs.js b/sources/plugins/indent/lang/bs.js new file mode 100644 index 00000000..ee41a42d --- /dev/null +++ b/sources/plugins/indent/lang/bs.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'bs', { + indent: 'Poveæaj uvod', + outdent: 'Smanji uvod' +} ); diff --git a/sources/plugins/indent/lang/ca.js b/sources/plugins/indent/lang/ca.js new file mode 100644 index 00000000..60756840 --- /dev/null +++ b/sources/plugins/indent/lang/ca.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'ca', { + indent: 'Augmenta el sagnat', + outdent: 'Redueix el sagnat' +} ); diff --git a/sources/plugins/indent/lang/cs.js b/sources/plugins/indent/lang/cs.js new file mode 100644 index 00000000..14b1474b --- /dev/null +++ b/sources/plugins/indent/lang/cs.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'cs', { + indent: 'Zvětšit odsazení', + outdent: 'Zmenšit odsazení' +} ); diff --git a/sources/plugins/indent/lang/cy.js b/sources/plugins/indent/lang/cy.js new file mode 100644 index 00000000..fe38f2ff --- /dev/null +++ b/sources/plugins/indent/lang/cy.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'cy', { + indent: 'Cynyddu\'r Mewnoliad', + outdent: 'Lleihau\'r Mewnoliad' +} ); diff --git a/sources/plugins/indent/lang/da.js b/sources/plugins/indent/lang/da.js new file mode 100644 index 00000000..fa22b3b3 --- /dev/null +++ b/sources/plugins/indent/lang/da.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'da', { + indent: 'Forøg indrykning', + outdent: 'Formindsk indrykning' +} ); diff --git a/sources/plugins/indent/lang/de.js b/sources/plugins/indent/lang/de.js new file mode 100644 index 00000000..315311dd --- /dev/null +++ b/sources/plugins/indent/lang/de.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'de', { + indent: 'Einzug erhöhen', + outdent: 'Einzug verringern' +} ); diff --git a/sources/plugins/indent/lang/el.js b/sources/plugins/indent/lang/el.js new file mode 100644 index 00000000..55e5678e --- /dev/null +++ b/sources/plugins/indent/lang/el.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'el', { + indent: 'Αύξηση Εσοχής', + outdent: 'Μείωση Εσοχής' +} ); diff --git a/sources/plugins/indent/lang/en-au.js b/sources/plugins/indent/lang/en-au.js new file mode 100644 index 00000000..be93b7b0 --- /dev/null +++ b/sources/plugins/indent/lang/en-au.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'en-au', { + indent: 'Increase Indent', + outdent: 'Decrease Indent' +} ); diff --git a/sources/plugins/indent/lang/en-ca.js b/sources/plugins/indent/lang/en-ca.js new file mode 100644 index 00000000..91b5f051 --- /dev/null +++ b/sources/plugins/indent/lang/en-ca.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'en-ca', { + indent: 'Increase Indent', + outdent: 'Decrease Indent' +} ); diff --git a/sources/plugins/indent/lang/en-gb.js b/sources/plugins/indent/lang/en-gb.js new file mode 100644 index 00000000..6f98aa99 --- /dev/null +++ b/sources/plugins/indent/lang/en-gb.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'en-gb', { + indent: 'Increase Indent', + outdent: 'Decrease Indent' +} ); diff --git a/sources/plugins/indent/lang/en.js b/sources/plugins/indent/lang/en.js new file mode 100644 index 00000000..6403f726 --- /dev/null +++ b/sources/plugins/indent/lang/en.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'en', { + indent: 'Increase Indent', + outdent: 'Decrease Indent' +} ); diff --git a/sources/plugins/indent/lang/eo.js b/sources/plugins/indent/lang/eo.js new file mode 100644 index 00000000..6dc6e0dc --- /dev/null +++ b/sources/plugins/indent/lang/eo.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'eo', { + indent: 'Pligrandigi Krommarĝenon', + outdent: 'Malpligrandigi Krommarĝenon' +} ); diff --git a/sources/plugins/indent/lang/es.js b/sources/plugins/indent/lang/es.js new file mode 100644 index 00000000..cd8845b2 --- /dev/null +++ b/sources/plugins/indent/lang/es.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'es', { + indent: 'Aumentar Sangría', + outdent: 'Disminuir Sangría' +} ); diff --git a/sources/plugins/indent/lang/et.js b/sources/plugins/indent/lang/et.js new file mode 100644 index 00000000..30082dae --- /dev/null +++ b/sources/plugins/indent/lang/et.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'et', { + indent: 'Taande suurendamine', + outdent: 'Taande vähendamine' +} ); diff --git a/sources/plugins/indent/lang/eu.js b/sources/plugins/indent/lang/eu.js new file mode 100644 index 00000000..ae12a9b0 --- /dev/null +++ b/sources/plugins/indent/lang/eu.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'eu', { + indent: 'Handitu koska', + outdent: 'Txikitu koska' +} ); diff --git a/sources/plugins/indent/lang/fa.js b/sources/plugins/indent/lang/fa.js new file mode 100644 index 00000000..71a60492 --- /dev/null +++ b/sources/plugins/indent/lang/fa.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'fa', { + indent: 'افزایش تورفتگی', + outdent: 'کاهش تورفتگی' +} ); diff --git a/sources/plugins/indent/lang/fi.js b/sources/plugins/indent/lang/fi.js new file mode 100644 index 00000000..42c28b01 --- /dev/null +++ b/sources/plugins/indent/lang/fi.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'fi', { + indent: 'Suurenna sisennystä', + outdent: 'Pienennä sisennystä' +} ); diff --git a/sources/plugins/indent/lang/fo.js b/sources/plugins/indent/lang/fo.js new file mode 100644 index 00000000..582cf2ae --- /dev/null +++ b/sources/plugins/indent/lang/fo.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'fo', { + indent: 'Økja reglubrotarinntriv', + outdent: 'Minka reglubrotarinntriv' +} ); diff --git a/sources/plugins/indent/lang/fr-ca.js b/sources/plugins/indent/lang/fr-ca.js new file mode 100644 index 00000000..37725cea --- /dev/null +++ b/sources/plugins/indent/lang/fr-ca.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'fr-ca', { + indent: 'Augmenter le retrait', + outdent: 'Diminuer le retrait' +} ); diff --git a/sources/plugins/indent/lang/fr.js b/sources/plugins/indent/lang/fr.js new file mode 100644 index 00000000..eda26f40 --- /dev/null +++ b/sources/plugins/indent/lang/fr.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'fr', { + indent: 'Augmenter le retrait (tabulation)', + outdent: 'Diminuer le retrait (tabulation)' +} ); diff --git a/sources/plugins/indent/lang/gl.js b/sources/plugins/indent/lang/gl.js new file mode 100644 index 00000000..1fc4350d --- /dev/null +++ b/sources/plugins/indent/lang/gl.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'gl', { + indent: 'Aumentar a sangría', + outdent: 'Reducir a sangría' +} ); diff --git a/sources/plugins/indent/lang/gu.js b/sources/plugins/indent/lang/gu.js new file mode 100644 index 00000000..935bbaf3 --- /dev/null +++ b/sources/plugins/indent/lang/gu.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'gu', { + indent: 'ઇન્ડેન્ટ, લીટીના આરંભમાં જગ્યા વધારવી', + outdent: 'ઇન્ડેન્ટ લીટીના આરંભમાં જગ્યા ઘટાડવી' +} ); diff --git a/sources/plugins/indent/lang/he.js b/sources/plugins/indent/lang/he.js new file mode 100644 index 00000000..a653131e --- /dev/null +++ b/sources/plugins/indent/lang/he.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'he', { + indent: 'הגדלת הזחה', + outdent: 'הקטנת הזחה' +} ); diff --git a/sources/plugins/indent/lang/hi.js b/sources/plugins/indent/lang/hi.js new file mode 100644 index 00000000..e48eeafb --- /dev/null +++ b/sources/plugins/indent/lang/hi.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'hi', { + indent: 'इन्डॅन्ट बढ़ायें', + outdent: 'इन्डॅन्ट कम करें' +} ); diff --git a/sources/plugins/indent/lang/hr.js b/sources/plugins/indent/lang/hr.js new file mode 100644 index 00000000..47a0b2c2 --- /dev/null +++ b/sources/plugins/indent/lang/hr.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'hr', { + indent: 'Pomakni udesno', + outdent: 'Pomakni ulijevo' +} ); diff --git a/sources/plugins/indent/lang/hu.js b/sources/plugins/indent/lang/hu.js new file mode 100644 index 00000000..1a55b43f --- /dev/null +++ b/sources/plugins/indent/lang/hu.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'hu', { + indent: 'Behúzás növelése', + outdent: 'Behúzás csökkentése' +} ); diff --git a/sources/plugins/indent/lang/id.js b/sources/plugins/indent/lang/id.js new file mode 100644 index 00000000..4b26b7ca --- /dev/null +++ b/sources/plugins/indent/lang/id.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'id', { + indent: 'Tingkatkan Lekuk', + outdent: 'Kurangi Lekuk' +} ); diff --git a/sources/plugins/indent/lang/is.js b/sources/plugins/indent/lang/is.js new file mode 100644 index 00000000..4ef6c390 --- /dev/null +++ b/sources/plugins/indent/lang/is.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'is', { + indent: 'Minnka inndrátt', + outdent: 'Auka inndrátt' +} ); diff --git a/sources/plugins/indent/lang/it.js b/sources/plugins/indent/lang/it.js new file mode 100644 index 00000000..aa70e80d --- /dev/null +++ b/sources/plugins/indent/lang/it.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'it', { + indent: 'Aumenta rientro', + outdent: 'Riduci rientro' +} ); diff --git a/sources/plugins/indent/lang/ja.js b/sources/plugins/indent/lang/ja.js new file mode 100644 index 00000000..daaaa77d --- /dev/null +++ b/sources/plugins/indent/lang/ja.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'ja', { + indent: 'インデント', + outdent: 'インデント解除' +} ); diff --git a/sources/plugins/indent/lang/ka.js b/sources/plugins/indent/lang/ka.js new file mode 100644 index 00000000..7c179132 --- /dev/null +++ b/sources/plugins/indent/lang/ka.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'ka', { + indent: 'მეტად შეწევა', + outdent: 'ნაკლებად შეწევა' +} ); diff --git a/sources/plugins/indent/lang/km.js b/sources/plugins/indent/lang/km.js new file mode 100644 index 00000000..4c6cb692 --- /dev/null +++ b/sources/plugins/indent/lang/km.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'km', { + indent: 'បន្ថែមការចូលបន្ទាត់', + outdent: 'បន្ថយការចូលបន្ទាត់' +} ); diff --git a/sources/plugins/indent/lang/ko.js b/sources/plugins/indent/lang/ko.js new file mode 100644 index 00000000..39f63737 --- /dev/null +++ b/sources/plugins/indent/lang/ko.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'ko', { + indent: '들여쓰기', + outdent: '내어쓰기' +} ); diff --git a/sources/plugins/indent/lang/ku.js b/sources/plugins/indent/lang/ku.js new file mode 100644 index 00000000..25349904 --- /dev/null +++ b/sources/plugins/indent/lang/ku.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'ku', { + indent: 'زیادکردنی بۆشایی', + outdent: 'کەمکردنەوەی بۆشایی' +} ); diff --git a/sources/plugins/indent/lang/lt.js b/sources/plugins/indent/lang/lt.js new file mode 100644 index 00000000..263fa04d --- /dev/null +++ b/sources/plugins/indent/lang/lt.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'lt', { + indent: 'Padidinti įtrauką', + outdent: 'Sumažinti įtrauką' +} ); diff --git a/sources/plugins/indent/lang/lv.js b/sources/plugins/indent/lang/lv.js new file mode 100644 index 00000000..0315bfb7 --- /dev/null +++ b/sources/plugins/indent/lang/lv.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'lv', { + indent: 'Palielināt atkāpi', + outdent: 'Samazināt atkāpi' +} ); diff --git a/sources/plugins/indent/lang/mk.js b/sources/plugins/indent/lang/mk.js new file mode 100644 index 00000000..52d13c35 --- /dev/null +++ b/sources/plugins/indent/lang/mk.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'mk', { + indent: 'Increase Indent', // MISSING + outdent: 'Decrease Indent' // MISSING +} ); diff --git a/sources/plugins/indent/lang/mn.js b/sources/plugins/indent/lang/mn.js new file mode 100644 index 00000000..9eded3ef --- /dev/null +++ b/sources/plugins/indent/lang/mn.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'mn', { + indent: 'Догол мөр хасах', + outdent: 'Догол мөр нэмэх' +} ); diff --git a/sources/plugins/indent/lang/ms.js b/sources/plugins/indent/lang/ms.js new file mode 100644 index 00000000..7d3a5f29 --- /dev/null +++ b/sources/plugins/indent/lang/ms.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'ms', { + indent: 'Tambahkan Inden', + outdent: 'Kurangkan Inden' +} ); diff --git a/sources/plugins/indent/lang/nb.js b/sources/plugins/indent/lang/nb.js new file mode 100644 index 00000000..3e124d55 --- /dev/null +++ b/sources/plugins/indent/lang/nb.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'nb', { + indent: 'Øk innrykk', + outdent: 'Reduser innrykk' +} ); diff --git a/sources/plugins/indent/lang/nl.js b/sources/plugins/indent/lang/nl.js new file mode 100644 index 00000000..0cdf066f --- /dev/null +++ b/sources/plugins/indent/lang/nl.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'nl', { + indent: 'Inspringing vergroten', + outdent: 'Inspringing verkleinen' +} ); diff --git a/sources/plugins/indent/lang/no.js b/sources/plugins/indent/lang/no.js new file mode 100644 index 00000000..eeb5e1ce --- /dev/null +++ b/sources/plugins/indent/lang/no.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'no', { + indent: 'Øk innrykk', + outdent: 'Reduser innrykk' +} ); diff --git a/sources/plugins/indent/lang/pl.js b/sources/plugins/indent/lang/pl.js new file mode 100644 index 00000000..321f520b --- /dev/null +++ b/sources/plugins/indent/lang/pl.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'pl', { + indent: 'Zwiększ wcięcie', + outdent: 'Zmniejsz wcięcie' +} ); diff --git a/sources/plugins/indent/lang/pt-br.js b/sources/plugins/indent/lang/pt-br.js new file mode 100644 index 00000000..b2334695 --- /dev/null +++ b/sources/plugins/indent/lang/pt-br.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'pt-br', { + indent: 'Aumentar Recuo', + outdent: 'Diminuir Recuo' +} ); diff --git a/sources/plugins/indent/lang/pt.js b/sources/plugins/indent/lang/pt.js new file mode 100644 index 00000000..5e395317 --- /dev/null +++ b/sources/plugins/indent/lang/pt.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'pt', { + indent: 'Aumentar Avanço', + outdent: 'Diminuir Avanço' +} ); diff --git a/sources/plugins/indent/lang/ro.js b/sources/plugins/indent/lang/ro.js new file mode 100644 index 00000000..639d4f03 --- /dev/null +++ b/sources/plugins/indent/lang/ro.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'ro', { + indent: 'Creşte indentarea', + outdent: 'Scade indentarea' +} ); diff --git a/sources/plugins/indent/lang/ru.js b/sources/plugins/indent/lang/ru.js new file mode 100644 index 00000000..ddbb0508 --- /dev/null +++ b/sources/plugins/indent/lang/ru.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'ru', { + indent: 'Увеличить отступ', + outdent: 'Уменьшить отступ' +} ); diff --git a/sources/plugins/indent/lang/si.js b/sources/plugins/indent/lang/si.js new file mode 100644 index 00000000..fe5a8e2b --- /dev/null +++ b/sources/plugins/indent/lang/si.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'si', { + indent: 'අතර පරතරය වැඩිකරන්න', + outdent: 'අතර පරතරය අඩුකරන්න' +} ); diff --git a/sources/plugins/indent/lang/sk.js b/sources/plugins/indent/lang/sk.js new file mode 100644 index 00000000..a5210ee0 --- /dev/null +++ b/sources/plugins/indent/lang/sk.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'sk', { + indent: 'Zväčšiť odsadenie', + outdent: 'Zmenšiť odsadenie' +} ); diff --git a/sources/plugins/indent/lang/sl.js b/sources/plugins/indent/lang/sl.js new file mode 100644 index 00000000..1cef8167 --- /dev/null +++ b/sources/plugins/indent/lang/sl.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'sl', { + indent: 'Povečaj zamik', + outdent: 'Zmanjšaj zamik' +} ); diff --git a/sources/plugins/indent/lang/sq.js b/sources/plugins/indent/lang/sq.js new file mode 100644 index 00000000..670b1065 --- /dev/null +++ b/sources/plugins/indent/lang/sq.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'sq', { + indent: 'Rrite Identin', + outdent: 'Zvogëlo Identin' +} ); diff --git a/sources/plugins/indent/lang/sr-latn.js b/sources/plugins/indent/lang/sr-latn.js new file mode 100644 index 00000000..a79ff72b --- /dev/null +++ b/sources/plugins/indent/lang/sr-latn.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'sr-latn', { + indent: 'Uvećaj levu marginu', + outdent: 'Smanji levu marginu' +} ); diff --git a/sources/plugins/indent/lang/sr.js b/sources/plugins/indent/lang/sr.js new file mode 100644 index 00000000..92f11970 --- /dev/null +++ b/sources/plugins/indent/lang/sr.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'sr', { + indent: 'Увећај леву маргину', + outdent: 'Смањи леву маргину' +} ); diff --git a/sources/plugins/indent/lang/sv.js b/sources/plugins/indent/lang/sv.js new file mode 100644 index 00000000..c9141012 --- /dev/null +++ b/sources/plugins/indent/lang/sv.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'sv', { + indent: 'Öka indrag', + outdent: 'Minska indrag' +} ); diff --git a/sources/plugins/indent/lang/th.js b/sources/plugins/indent/lang/th.js new file mode 100644 index 00000000..1a4f2cde --- /dev/null +++ b/sources/plugins/indent/lang/th.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'th', { + indent: 'เพิ่มระยะย่อหน้า', + outdent: 'ลดระยะย่อหน้า' +} ); diff --git a/sources/plugins/indent/lang/tr.js b/sources/plugins/indent/lang/tr.js new file mode 100644 index 00000000..227e2cd9 --- /dev/null +++ b/sources/plugins/indent/lang/tr.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'tr', { + indent: 'Sekme Arttır', + outdent: 'Sekme Azalt' +} ); diff --git a/sources/plugins/indent/lang/tt.js b/sources/plugins/indent/lang/tt.js new file mode 100644 index 00000000..465b4ce3 --- /dev/null +++ b/sources/plugins/indent/lang/tt.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'tt', { + indent: 'Отступны арттыру', + outdent: 'Отступны кечерәйтү' +} ); diff --git a/sources/plugins/indent/lang/ug.js b/sources/plugins/indent/lang/ug.js new file mode 100644 index 00000000..956e6a4c --- /dev/null +++ b/sources/plugins/indent/lang/ug.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'ug', { + indent: 'تارايت', + outdent: 'كەڭەيت' +} ); diff --git a/sources/plugins/indent/lang/uk.js b/sources/plugins/indent/lang/uk.js new file mode 100644 index 00000000..80d77f76 --- /dev/null +++ b/sources/plugins/indent/lang/uk.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'uk', { + indent: 'Збільшити відступ', + outdent: 'Зменшити відступ' +} ); diff --git a/sources/plugins/indent/lang/vi.js b/sources/plugins/indent/lang/vi.js new file mode 100644 index 00000000..c423837d --- /dev/null +++ b/sources/plugins/indent/lang/vi.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'vi', { + indent: 'Dịch vào trong', + outdent: 'Dịch ra ngoài' +} ); diff --git a/sources/plugins/indent/lang/zh-cn.js b/sources/plugins/indent/lang/zh-cn.js new file mode 100644 index 00000000..2ce406f2 --- /dev/null +++ b/sources/plugins/indent/lang/zh-cn.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'zh-cn', { + indent: '增加缩进量', + outdent: '减少缩进量' +} ); diff --git a/sources/plugins/indent/lang/zh.js b/sources/plugins/indent/lang/zh.js new file mode 100644 index 00000000..4aa2abf8 --- /dev/null +++ b/sources/plugins/indent/lang/zh.js @@ -0,0 +1,8 @@ +/* +Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.md or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang( 'indent', 'zh', { + indent: '增加縮排', + outdent: '減少縮排' +} ); diff --git a/sources/plugins/indent/plugin.js b/sources/plugins/indent/plugin.js new file mode 100644 index 00000000..325503d6 --- /dev/null +++ b/sources/plugins/indent/plugin.js @@ -0,0 +1,461 @@ +/** + * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +/** + * @fileOverview Increase and Decrease Indent commands. + */ + +( function() { + 'use strict'; + + var TRISTATE_DISABLED = CKEDITOR.TRISTATE_DISABLED, + TRISTATE_OFF = CKEDITOR.TRISTATE_OFF; + + CKEDITOR.plugins.add( 'indent', { + // jscs:disable maximumLineLength + 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% + // jscs:enable maximumLineLength + icons: 'indent,indent-rtl,outdent,outdent-rtl', // %REMOVE_LINE_CORE% + hidpi: true, // %REMOVE_LINE_CORE% + + init: function( editor ) { + var genericDefinition = CKEDITOR.plugins.indent.genericDefinition; + + // Register generic commands. + setupGenericListeners( editor, editor.addCommand( 'indent', new genericDefinition( true ) ) ); + setupGenericListeners( editor, editor.addCommand( 'outdent', new genericDefinition() ) ); + + // Create and register toolbar button if possible. + if ( editor.ui.addButton ) { + editor.ui.addButton( 'Indent', { + label: editor.lang.indent.indent, + command: 'indent', + directional: true, + toolbar: 'indent,20' + } ); + + editor.ui.addButton( 'Outdent', { + label: editor.lang.indent.outdent, + command: 'outdent', + directional: true, + toolbar: 'indent,10' + } ); + } + + // Register dirChanged listener. + editor.on( 'dirChanged', function( evt ) { + var range = editor.createRange(), + dataNode = evt.data.node; + + range.setStartBefore( dataNode ); + range.setEndAfter( dataNode ); + + var walker = new CKEDITOR.dom.walker( range ), + node; + + while ( ( node = walker.next() ) ) { + if ( node.type == CKEDITOR.NODE_ELEMENT ) { + // A child with the defined dir is to be ignored. + if ( !node.equals( dataNode ) && node.getDirection() ) { + range.setStartAfter( node ); + walker = new CKEDITOR.dom.walker( range ); + continue; + } + + // Switch alignment classes. + var classes = editor.config.indentClasses; + if ( classes ) { + var suffix = ( evt.data.dir == 'ltr' ) ? [ '_rtl', '' ] : [ '', '_rtl' ]; + for ( var i = 0; i < classes.length; i++ ) { + if ( node.hasClass( classes[ i ] + suffix[ 0 ] ) ) { + node.removeClass( classes[ i ] + suffix[ 0 ] ); + node.addClass( classes[ i ] + suffix[ 1 ] ); + } + } + } + + // Switch the margins. + var marginLeft = node.getStyle( 'margin-right' ), + marginRight = node.getStyle( 'margin-left' ); + + marginLeft ? node.setStyle( 'margin-left', marginLeft ) : node.removeStyle( 'margin-left' ); + marginRight ? node.setStyle( 'margin-right', marginRight ) : node.removeStyle( 'margin-right' ); + } + } + } ); + } + } ); + + /** + * Global command class definitions and global helpers. + * + * @class + * @singleton + */ + CKEDITOR.plugins.indent = { + /** + * A base class for a generic command definition, responsible mainly for creating + * Increase Indent and Decrease Indent toolbar buttons as well as for refreshing + * UI states. + * + * Commands of this class do not perform any indentation by themselves. They + * delegate this job to content-specific indentation commands (i.e. indentlist). + * + * @class CKEDITOR.plugins.indent.genericDefinition + * @extends CKEDITOR.commandDefinition + * @param {CKEDITOR.editor} editor The editor instance this command will be + * applied to. + * @param {String} name The name of the command. + * @param {Boolean} [isIndent] Defines the command as indenting or outdenting. + */ + genericDefinition: function( isIndent ) { + /** + * Determines whether the command belongs to the indentation family. + * Otherwise it is assumed to be an outdenting command. + * + * @readonly + * @property {Boolean} [=false] + */ + this.isIndent = !!isIndent; + + // Mimic naive startDisabled behavior for outdent. + this.startDisabled = !this.isIndent; + }, + + /** + * A base class for specific indentation command definitions responsible for + * handling a pre-defined set of elements i.e. indentlist for lists or + * indentblock for text block elements. + * + * Commands of this class perform indentation operations and modify the DOM structure. + * They listen for events fired by {@link CKEDITOR.plugins.indent.genericDefinition} + * and execute defined actions. + * + * **NOTE**: This is not an {@link CKEDITOR.command editor command}. + * Context-specific commands are internal, for indentation system only. + * + * @class CKEDITOR.plugins.indent.specificDefinition + * @param {CKEDITOR.editor} editor The editor instance this command will be + * applied to. + * @param {String} name The name of the command. + * @param {Boolean} [isIndent] Defines the command as indenting or outdenting. + */ + specificDefinition: function( editor, name, isIndent ) { + this.name = name; + this.editor = editor; + + /** + * An object of jobs handled by the command. Each job consists + * of two functions: `refresh` and `exec` as well as the execution priority. + * + * * The `refresh` function determines whether a job is doable for + * a particular context. These functions are executed in the + * order of priorities, one by one, for all plugins that registered + * jobs. As jobs are related to generic commands, refreshing + * occurs when the global command is firing the `refresh` event. + * + * **Note**: This function must return either {@link CKEDITOR#TRISTATE_DISABLED} + * or {@link CKEDITOR#TRISTATE_OFF}. + * + * * The `exec` function modifies the DOM if possible. Just like + * `refresh`, `exec` functions are executed in the order of priorities + * while the generic command is executed. This function is not executed + * if `refresh` for this job returned {@link CKEDITOR#TRISTATE_DISABLED}. + * + * **Note**: This function must return a Boolean value, indicating whether it + * was successful. If a job was successful, then no other jobs are being executed. + * + * Sample definition: + * + * command.jobs = { + * // Priority = 20. + * '20': { + * refresh( editor, path ) { + * if ( condition ) + * return CKEDITOR.TRISTATE_OFF; + * else + * return CKEDITOR.TRISTATE_DISABLED; + * }, + * exec( editor ) { + * // DOM modified! This was OK. + * return true; + * } + * }, + * // Priority = 60. This job is done later. + * '60': { + * // Another job. + * } + * }; + * + * For additional information, please check comments for + * the `setupGenericListeners` function. + * + * @readonly + * @property {Object} [={}] + */ + this.jobs = {}; + + /** + * Determines whether the editor that the command belongs to has + * {@link CKEDITOR.config#enterMode config.enterMode} set to {@link CKEDITOR#ENTER_BR}. + * + * @readonly + * @see CKEDITOR.config#enterMode + * @property {Boolean} [=false] + */ + this.enterBr = editor.config.enterMode == CKEDITOR.ENTER_BR; + + /** + * Determines whether the command belongs to the indentation family. + * Otherwise it is assumed to be an outdenting command. + * + * @readonly + * @property {Boolean} [=false] + */ + this.isIndent = !!isIndent; + + /** + * The name of the global command related to this one. + * + * @readonly + */ + this.relatedGlobal = isIndent ? 'indent' : 'outdent'; + + /** + * A keystroke associated with this command (*Tab* or *Shift+Tab*). + * + * @readonly + */ + this.indentKey = isIndent ? 9 : CKEDITOR.SHIFT + 9; + + /** + * Stores created markers for the command so they can eventually be + * purged after the `exec` function is run. + */ + this.database = {}; + }, + + /** + * Registers content-specific commands as a part of the indentation system + * directed by generic commands. Once a command is registered, + * it listens for events of a related generic command. + * + * CKEDITOR.plugins.indent.registerCommands( editor, { + * 'indentlist': new indentListCommand( editor, 'indentlist' ), + * 'outdentlist': new indentListCommand( editor, 'outdentlist' ) + * } ); + * + * Content-specific commands listen for the generic command's `exec` and + * try to execute their own jobs, one after another. If some execution is + * successful, `evt.data.done` is set so no more jobs (commands) are involved. + * + * Content-specific commands also listen for the generic command's `refresh` + * and fill the `evt.data.states` object with states of jobs. A generic command + * uses this data to determine its own state and to update the UI. + * + * @member CKEDITOR.plugins.indent + * @param {CKEDITOR.editor} editor The editor instance this command is + * applied to. + * @param {Object} commands An object of {@link CKEDITOR.command}. + */ + registerCommands: function( editor, commands ) { + editor.on( 'pluginsLoaded', function() { + for ( var name in commands ) { + ( function( editor, command ) { + var relatedGlobal = editor.getCommand( command.relatedGlobal ); + + for ( var priority in command.jobs ) { + // Observe generic exec event and execute command when necessary. + // If the command was successfully handled by the command and + // DOM has been modified, stop event propagation so no other plugin + // will bother. Job is done. + relatedGlobal.on( 'exec', function( evt ) { + if ( evt.data.done ) + return; + + // Make sure that anything this command will do is invisible + // for undoManager. What undoManager only can see and + // remember is the execution of the global command (relatedGlobal). + editor.fire( 'lockSnapshot' ); + + if ( command.execJob( editor, priority ) ) + evt.data.done = true; + + editor.fire( 'unlockSnapshot' ); + + // Clean up the markers. + CKEDITOR.dom.element.clearAllMarkers( command.database ); + }, this, null, priority ); + + // Observe generic refresh event and force command refresh. + // Once refreshed, save command state in event data + // so generic command plugin can update its own state and UI. + relatedGlobal.on( 'refresh', function( evt ) { + if ( !evt.data.states ) + evt.data.states = {}; + + evt.data.states[ command.name + '@' + priority ] = + command.refreshJob( editor, priority, evt.data.path ); + }, this, null, priority ); + } + + // Since specific indent commands have no UI elements, + // they need to be manually registered as a editor feature. + editor.addFeature( command ); + } )( this, commands[ name ] ); + } + } ); + } + }; + + CKEDITOR.plugins.indent.genericDefinition.prototype = { + context: 'p', + + exec: function() {} + }; + + CKEDITOR.plugins.indent.specificDefinition.prototype = { + /** + * Executes the content-specific procedure if the context is correct. + * It calls the `exec` function of a job of the given `priority` + * that modifies the DOM. + * + * @param {CKEDITOR.editor} editor The editor instance this command + * will be applied to. + * @param {Number} priority The priority of the job to be executed. + * @returns {Boolean} Indicates whether the job was successful. + */ + execJob: function( editor, priority ) { + var job = this.jobs[ priority ]; + + if ( job.state != TRISTATE_DISABLED ) + return job.exec.call( this, editor ); + }, + + /** + * Calls the `refresh` function of a job of the given `priority`. + * The function returns the state of the job which can be either + * {@link CKEDITOR#TRISTATE_DISABLED} or {@link CKEDITOR#TRISTATE_OFF}. + * + * @param {CKEDITOR.editor} editor The editor instance this command + * will be applied to. + * @param {Number} priority The priority of the job to be executed. + * @returns {Number} The state of the job. + */ + refreshJob: function( editor, priority, path ) { + var job = this.jobs[ priority ]; + + if ( !editor.activeFilter.checkFeature( this ) ) + job.state = TRISTATE_DISABLED; + else + job.state = job.refresh.call( this, editor, path ); + + return job.state; + }, + + /** + * Checks if the element path contains the element handled + * by this indentation command. + * + * @param {CKEDITOR.dom.elementPath} node A path to be checked. + * @returns {CKEDITOR.dom.element} + */ + getContext: function( path ) { + return path.contains( this.context ); + } + }; + + /** + * Attaches event listeners for this generic command. Since the indentation + * system is event-oriented, generic commands communicate with + * content-specific commands using the `exec` and `refresh` events. + * + * Listener priorities are crucial. Different indentation phases + * are executed with different priorities. + * + * For the `exec` event: + * + * * 0: Selection and bookmarks are saved by the generic command. + * * 1-99: Content-specific commands try to indent the code by executing + * their own jobs ({@link CKEDITOR.plugins.indent.specificDefinition#jobs}). + * * 100: Bookmarks are re-selected by the generic command. + * + * The visual interpretation looks as follows: + * + * +------------------+ + * | Exec event fired | + * +------ + ---------+ + * | + * 0 -<----------+ Selection and bookmarks saved. + * | + * | + * 25 -<---+ Exec 1st job of plugin#1 (return false, continuing...). + * | + * | + * 50 -<---+ Exec 1st job of plugin#2 (return false, continuing...). + * | + * | + * 75 -<---+ Exec 2nd job of plugin#1 (only if plugin#2 failed). + * | + * | + * 100 -<-----------+ Re-select bookmarks, clean-up. + * | + * +-------- v ----------+ + * | Exec event finished | + * +---------------------+ + * + * For the `refresh` event: + * + * * <100: Content-specific commands refresh their job states according + * to the given path. Jobs save their states in the `evt.data.states` object + * passed along with the event. This can be either {@link CKEDITOR#TRISTATE_DISABLED} + * or {@link CKEDITOR#TRISTATE_OFF}. + * * 100: Command state is determined according to what states + * have been returned by content-specific jobs (`evt.data.states`). + * UI elements are updated at this stage. + * + * **Note**: If there is at least one job with the {@link CKEDITOR#TRISTATE_OFF} state, + * then the generic command state is also {@link CKEDITOR#TRISTATE_OFF}. Otherwise, + * the command state is {@link CKEDITOR#TRISTATE_DISABLED}. + * + * @param {CKEDITOR.command} command The command to be set up. + * @private + */ + function setupGenericListeners( editor, command ) { + var selection, bookmarks; + + // Set the command state according to content-specific + // command states. + command.on( 'refresh', function( evt ) { + // If no state comes with event data, disable command. + var states = [ TRISTATE_DISABLED ]; + + for ( var s in evt.data.states ) + states.push( evt.data.states[ s ] ); + + this.setState( CKEDITOR.tools.search( states, TRISTATE_OFF ) ? TRISTATE_OFF : TRISTATE_DISABLED ); + }, command, null, 100 ); + + // Initialization. Save bookmarks and mark event as not handled + // by any plugin (command) yet. + command.on( 'exec', function( evt ) { + selection = editor.getSelection(); + bookmarks = selection.createBookmarks( 1 ); + + // Mark execution as not handled yet. + if ( !evt.data ) + evt.data = {}; + + evt.data.done = false; + }, command, null, 0 ); + + // Housekeeping. Make sure selectionChange will be called. + // Also re-select previously saved bookmarks. + command.on( 'exec', function() { + editor.forceNextSelectionCheck(); + selection.selectBookmarks( bookmarks ); + }, command, null, 100 ); + } +} )(); -- cgit v1.2.3