From 3332bebe4da6dfa0fe3e4b2abddc84b1cc62f8f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Fri, 19 Feb 2016 23:38:52 +0100 Subject: Initial commit --- sources/plugins/button/lang/af.js | 8 + sources/plugins/button/lang/ar.js | 8 + sources/plugins/button/lang/bg.js | 8 + sources/plugins/button/lang/ca.js | 8 + sources/plugins/button/lang/cs.js | 8 + sources/plugins/button/lang/da.js | 8 + sources/plugins/button/lang/de-ch.js | 8 + sources/plugins/button/lang/de.js | 8 + sources/plugins/button/lang/el.js | 8 + sources/plugins/button/lang/en-gb.js | 8 + sources/plugins/button/lang/en.js | 8 + sources/plugins/button/lang/eo.js | 8 + sources/plugins/button/lang/es.js | 8 + sources/plugins/button/lang/eu.js | 8 + sources/plugins/button/lang/fa.js | 8 + sources/plugins/button/lang/fi.js | 8 + sources/plugins/button/lang/fr.js | 8 + sources/plugins/button/lang/gl.js | 8 + sources/plugins/button/lang/he.js | 8 + sources/plugins/button/lang/hu.js | 8 + sources/plugins/button/lang/id.js | 8 + sources/plugins/button/lang/it.js | 8 + sources/plugins/button/lang/ja.js | 8 + sources/plugins/button/lang/km.js | 8 + sources/plugins/button/lang/ko.js | 8 + sources/plugins/button/lang/ku.js | 8 + sources/plugins/button/lang/lt.js | 8 + sources/plugins/button/lang/nb.js | 8 + sources/plugins/button/lang/nl.js | 8 + sources/plugins/button/lang/pl.js | 8 + sources/plugins/button/lang/pt-br.js | 8 + sources/plugins/button/lang/pt.js | 8 + sources/plugins/button/lang/ro.js | 8 + sources/plugins/button/lang/ru.js | 8 + sources/plugins/button/lang/sk.js | 8 + sources/plugins/button/lang/sl.js | 8 + sources/plugins/button/lang/sq.js | 8 + sources/plugins/button/lang/sv.js | 8 + sources/plugins/button/lang/tr.js | 8 + sources/plugins/button/lang/tt.js | 8 + sources/plugins/button/lang/ug.js | 8 + sources/plugins/button/lang/uk.js | 8 + sources/plugins/button/lang/vi.js | 8 + sources/plugins/button/lang/zh-cn.js | 8 + sources/plugins/button/lang/zh.js | 8 + sources/plugins/button/plugin.js | 377 +++++++++++++++++++++++++++++++++++ 46 files changed, 737 insertions(+) create mode 100644 sources/plugins/button/lang/af.js create mode 100644 sources/plugins/button/lang/ar.js create mode 100644 sources/plugins/button/lang/bg.js create mode 100644 sources/plugins/button/lang/ca.js create mode 100644 sources/plugins/button/lang/cs.js create mode 100644 sources/plugins/button/lang/da.js create mode 100644 sources/plugins/button/lang/de-ch.js create mode 100644 sources/plugins/button/lang/de.js create mode 100644 sources/plugins/button/lang/el.js create mode 100644 sources/plugins/button/lang/en-gb.js create mode 100644 sources/plugins/button/lang/en.js create mode 100644 sources/plugins/button/lang/eo.js create mode 100644 sources/plugins/button/lang/es.js create mode 100644 sources/plugins/button/lang/eu.js create mode 100644 sources/plugins/button/lang/fa.js create mode 100644 sources/plugins/button/lang/fi.js create mode 100644 sources/plugins/button/lang/fr.js create mode 100644 sources/plugins/button/lang/gl.js create mode 100644 sources/plugins/button/lang/he.js create mode 100644 sources/plugins/button/lang/hu.js create mode 100644 sources/plugins/button/lang/id.js create mode 100644 sources/plugins/button/lang/it.js create mode 100644 sources/plugins/button/lang/ja.js create mode 100644 sources/plugins/button/lang/km.js create mode 100644 sources/plugins/button/lang/ko.js create mode 100644 sources/plugins/button/lang/ku.js create mode 100644 sources/plugins/button/lang/lt.js create mode 100644 sources/plugins/button/lang/nb.js create mode 100644 sources/plugins/button/lang/nl.js create mode 100644 sources/plugins/button/lang/pl.js create mode 100644 sources/plugins/button/lang/pt-br.js create mode 100644 sources/plugins/button/lang/pt.js create mode 100644 sources/plugins/button/lang/ro.js create mode 100644 sources/plugins/button/lang/ru.js create mode 100644 sources/plugins/button/lang/sk.js create mode 100644 sources/plugins/button/lang/sl.js create mode 100644 sources/plugins/button/lang/sq.js create mode 100644 sources/plugins/button/lang/sv.js create mode 100644 sources/plugins/button/lang/tr.js create mode 100644 sources/plugins/button/lang/tt.js create mode 100644 sources/plugins/button/lang/ug.js create mode 100644 sources/plugins/button/lang/uk.js create mode 100644 sources/plugins/button/lang/vi.js create mode 100644 sources/plugins/button/lang/zh-cn.js create mode 100644 sources/plugins/button/lang/zh.js create mode 100644 sources/plugins/button/plugin.js (limited to 'sources/plugins/button') diff --git a/sources/plugins/button/lang/af.js b/sources/plugins/button/lang/af.js new file mode 100644 index 0000000..af03793 --- /dev/null +++ b/sources/plugins/button/lang/af.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'af', { + selectedLabel: '%1 uitgekies' +} ); diff --git a/sources/plugins/button/lang/ar.js b/sources/plugins/button/lang/ar.js new file mode 100644 index 0000000..28f4346 --- /dev/null +++ b/sources/plugins/button/lang/ar.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'ar', { + selectedLabel: '%1 (محدد)' +} ); diff --git a/sources/plugins/button/lang/bg.js b/sources/plugins/button/lang/bg.js new file mode 100644 index 0000000..dfe5be1 --- /dev/null +++ b/sources/plugins/button/lang/bg.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'bg', { + selectedLabel: '%1 (Избрано)' +} ); diff --git a/sources/plugins/button/lang/ca.js b/sources/plugins/button/lang/ca.js new file mode 100644 index 0000000..2feb710 --- /dev/null +++ b/sources/plugins/button/lang/ca.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'ca', { + selectedLabel: '%1 (Seleccionat)' +} ); diff --git a/sources/plugins/button/lang/cs.js b/sources/plugins/button/lang/cs.js new file mode 100644 index 0000000..01f4a86 --- /dev/null +++ b/sources/plugins/button/lang/cs.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'cs', { + selectedLabel: '%1 (Vybráno)' +} ); diff --git a/sources/plugins/button/lang/da.js b/sources/plugins/button/lang/da.js new file mode 100644 index 0000000..021201f --- /dev/null +++ b/sources/plugins/button/lang/da.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'da', { + selectedLabel: '%1 (Valgt)' +} ); diff --git a/sources/plugins/button/lang/de-ch.js b/sources/plugins/button/lang/de-ch.js new file mode 100644 index 0000000..680cc20 --- /dev/null +++ b/sources/plugins/button/lang/de-ch.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'de-ch', { + selectedLabel: '%1 (Ausgewählt)' +} ); diff --git a/sources/plugins/button/lang/de.js b/sources/plugins/button/lang/de.js new file mode 100644 index 0000000..d31afaa --- /dev/null +++ b/sources/plugins/button/lang/de.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'de', { + selectedLabel: '%1 (Ausgewählt)' +} ); diff --git a/sources/plugins/button/lang/el.js b/sources/plugins/button/lang/el.js new file mode 100644 index 0000000..84e630c --- /dev/null +++ b/sources/plugins/button/lang/el.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'el', { + selectedLabel: '%1 (Επιλεγμένο)' +} ); diff --git a/sources/plugins/button/lang/en-gb.js b/sources/plugins/button/lang/en-gb.js new file mode 100644 index 0000000..b4060d3 --- /dev/null +++ b/sources/plugins/button/lang/en-gb.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'en-gb', { + selectedLabel: '%1 (Selected)' +} ); diff --git a/sources/plugins/button/lang/en.js b/sources/plugins/button/lang/en.js new file mode 100644 index 0000000..b0b4807 --- /dev/null +++ b/sources/plugins/button/lang/en.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'en', { + selectedLabel: '%1 (Selected)' +} ); diff --git a/sources/plugins/button/lang/eo.js b/sources/plugins/button/lang/eo.js new file mode 100644 index 0000000..733c960 --- /dev/null +++ b/sources/plugins/button/lang/eo.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'eo', { + selectedLabel: '%1 (Selektita)' +} ); diff --git a/sources/plugins/button/lang/es.js b/sources/plugins/button/lang/es.js new file mode 100644 index 0000000..8b4695b --- /dev/null +++ b/sources/plugins/button/lang/es.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'es', { + selectedLabel: '%1 (Seleccionado)' +} ); diff --git a/sources/plugins/button/lang/eu.js b/sources/plugins/button/lang/eu.js new file mode 100644 index 0000000..fd60b16 --- /dev/null +++ b/sources/plugins/button/lang/eu.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'eu', { + selectedLabel: '%1 (hautatuta)' +} ); diff --git a/sources/plugins/button/lang/fa.js b/sources/plugins/button/lang/fa.js new file mode 100644 index 0000000..8e923b0 --- /dev/null +++ b/sources/plugins/button/lang/fa.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'fa', { + selectedLabel: '%1 (انتخاب شده)' +} ); diff --git a/sources/plugins/button/lang/fi.js b/sources/plugins/button/lang/fi.js new file mode 100644 index 0000000..2668a8d --- /dev/null +++ b/sources/plugins/button/lang/fi.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'fi', { + selectedLabel: '%1 (Valittu)' +} ); diff --git a/sources/plugins/button/lang/fr.js b/sources/plugins/button/lang/fr.js new file mode 100644 index 0000000..1039c90 --- /dev/null +++ b/sources/plugins/button/lang/fr.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'fr', { + selectedLabel: '%1 (Sélectionné)' +} ); diff --git a/sources/plugins/button/lang/gl.js b/sources/plugins/button/lang/gl.js new file mode 100644 index 0000000..e73ea65 --- /dev/null +++ b/sources/plugins/button/lang/gl.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'gl', { + selectedLabel: '%1 (seleccionado)' +} ); diff --git a/sources/plugins/button/lang/he.js b/sources/plugins/button/lang/he.js new file mode 100644 index 0000000..8890cf9 --- /dev/null +++ b/sources/plugins/button/lang/he.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'he', { + selectedLabel: '1% (סומן)' +} ); diff --git a/sources/plugins/button/lang/hu.js b/sources/plugins/button/lang/hu.js new file mode 100644 index 0000000..9dc42a5 --- /dev/null +++ b/sources/plugins/button/lang/hu.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'hu', { + selectedLabel: '%1 (Kiválasztva)' +} ); diff --git a/sources/plugins/button/lang/id.js b/sources/plugins/button/lang/id.js new file mode 100644 index 0000000..52726a8 --- /dev/null +++ b/sources/plugins/button/lang/id.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'id', { + selectedLabel: '%1(Dipilih)' +} ); diff --git a/sources/plugins/button/lang/it.js b/sources/plugins/button/lang/it.js new file mode 100644 index 0000000..0b28b8c --- /dev/null +++ b/sources/plugins/button/lang/it.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'it', { + selectedLabel: '%1 (selezionato)' +} ); diff --git a/sources/plugins/button/lang/ja.js b/sources/plugins/button/lang/ja.js new file mode 100644 index 0000000..559d08c --- /dev/null +++ b/sources/plugins/button/lang/ja.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'ja', { + selectedLabel: '%1 (選択中)' +} ); diff --git a/sources/plugins/button/lang/km.js b/sources/plugins/button/lang/km.js new file mode 100644 index 0000000..ecfc774 --- /dev/null +++ b/sources/plugins/button/lang/km.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'km', { + selectedLabel: '%1 (បាន​ជ្រើស​រើស)' +} ); diff --git a/sources/plugins/button/lang/ko.js b/sources/plugins/button/lang/ko.js new file mode 100644 index 0000000..2e2cc61 --- /dev/null +++ b/sources/plugins/button/lang/ko.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'ko', { + selectedLabel: '%1 (선택됨)' +} ); diff --git a/sources/plugins/button/lang/ku.js b/sources/plugins/button/lang/ku.js new file mode 100644 index 0000000..b794e23 --- /dev/null +++ b/sources/plugins/button/lang/ku.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'ku', { + selectedLabel: '%1 (هەڵبژێردراو)' +} ); diff --git a/sources/plugins/button/lang/lt.js b/sources/plugins/button/lang/lt.js new file mode 100644 index 0000000..e17e9e5 --- /dev/null +++ b/sources/plugins/button/lang/lt.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'lt', { + selectedLabel: '%1 (Pasirinkta)' +} ); diff --git a/sources/plugins/button/lang/nb.js b/sources/plugins/button/lang/nb.js new file mode 100644 index 0000000..b91a823 --- /dev/null +++ b/sources/plugins/button/lang/nb.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'nb', { + selectedLabel: '%1 (Valgt)' +} ); diff --git a/sources/plugins/button/lang/nl.js b/sources/plugins/button/lang/nl.js new file mode 100644 index 0000000..0654cec --- /dev/null +++ b/sources/plugins/button/lang/nl.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'nl', { + selectedLabel: '%1 (Geselecteerd)' +} ); diff --git a/sources/plugins/button/lang/pl.js b/sources/plugins/button/lang/pl.js new file mode 100644 index 0000000..bc980d0 --- /dev/null +++ b/sources/plugins/button/lang/pl.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'pl', { + selectedLabel: '%1 (Wybrany)' +} ); diff --git a/sources/plugins/button/lang/pt-br.js b/sources/plugins/button/lang/pt-br.js new file mode 100644 index 0000000..f1cd7c4 --- /dev/null +++ b/sources/plugins/button/lang/pt-br.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'pt-br', { + selectedLabel: '%1 (Selecionado)' +} ); diff --git a/sources/plugins/button/lang/pt.js b/sources/plugins/button/lang/pt.js new file mode 100644 index 0000000..adc8251 --- /dev/null +++ b/sources/plugins/button/lang/pt.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'pt', { + selectedLabel: '%1 (Selecionado)' +} ); diff --git a/sources/plugins/button/lang/ro.js b/sources/plugins/button/lang/ro.js new file mode 100644 index 0000000..c70153c --- /dev/null +++ b/sources/plugins/button/lang/ro.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'ro', { + selectedLabel: '%1 (Selectat)' +} ); diff --git a/sources/plugins/button/lang/ru.js b/sources/plugins/button/lang/ru.js new file mode 100644 index 0000000..06ee190 --- /dev/null +++ b/sources/plugins/button/lang/ru.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'ru', { + selectedLabel: '%1 (Выбрано)' +} ); diff --git a/sources/plugins/button/lang/sk.js b/sources/plugins/button/lang/sk.js new file mode 100644 index 0000000..adbadf2 --- /dev/null +++ b/sources/plugins/button/lang/sk.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'sk', { + selectedLabel: '%1 (Vybrané)' +} ); diff --git a/sources/plugins/button/lang/sl.js b/sources/plugins/button/lang/sl.js new file mode 100644 index 0000000..85e5cc2 --- /dev/null +++ b/sources/plugins/button/lang/sl.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'sl', { + selectedLabel: '%1 (Izbrano)' +} ); diff --git a/sources/plugins/button/lang/sq.js b/sources/plugins/button/lang/sq.js new file mode 100644 index 0000000..1690634 --- /dev/null +++ b/sources/plugins/button/lang/sq.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'sq', { + selectedLabel: '%1 (Përzgjedhur)' +} ); diff --git a/sources/plugins/button/lang/sv.js b/sources/plugins/button/lang/sv.js new file mode 100644 index 0000000..db15526 --- /dev/null +++ b/sources/plugins/button/lang/sv.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'sv', { + selectedLabel: '%1 (Vald)' +} ); diff --git a/sources/plugins/button/lang/tr.js b/sources/plugins/button/lang/tr.js new file mode 100644 index 0000000..a87bb12 --- /dev/null +++ b/sources/plugins/button/lang/tr.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'tr', { + selectedLabel: '%1 (Seçilmiş)' +} ); diff --git a/sources/plugins/button/lang/tt.js b/sources/plugins/button/lang/tt.js new file mode 100644 index 0000000..79044c6 --- /dev/null +++ b/sources/plugins/button/lang/tt.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'tt', { + selectedLabel: '%1 (Сайланган)' +} ); diff --git a/sources/plugins/button/lang/ug.js b/sources/plugins/button/lang/ug.js new file mode 100644 index 0000000..fe30252 --- /dev/null +++ b/sources/plugins/button/lang/ug.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'ug', { + selectedLabel: '%1 (تاللاندى)' +} ); diff --git a/sources/plugins/button/lang/uk.js b/sources/plugins/button/lang/uk.js new file mode 100644 index 0000000..a40cf8f --- /dev/null +++ b/sources/plugins/button/lang/uk.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'uk', { + selectedLabel: '%1 (Вибрано)' +} ); diff --git a/sources/plugins/button/lang/vi.js b/sources/plugins/button/lang/vi.js new file mode 100644 index 0000000..a3ea973 --- /dev/null +++ b/sources/plugins/button/lang/vi.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'vi', { + selectedLabel: '%1 (Đã chọn)' +} ); diff --git a/sources/plugins/button/lang/zh-cn.js b/sources/plugins/button/lang/zh-cn.js new file mode 100644 index 0000000..1271943 --- /dev/null +++ b/sources/plugins/button/lang/zh-cn.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'zh-cn', { + selectedLabel: '已选中 %1 项' +} ); diff --git a/sources/plugins/button/lang/zh.js b/sources/plugins/button/lang/zh.js new file mode 100644 index 0000000..5fee74f --- /dev/null +++ b/sources/plugins/button/lang/zh.js @@ -0,0 +1,8 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +CKEDITOR.plugins.setLang( 'button', 'zh', { + selectedLabel: '%1 (已選取)' +} ); diff --git a/sources/plugins/button/plugin.js b/sources/plugins/button/plugin.js new file mode 100644 index 0000000..0ce75c6 --- /dev/null +++ b/sources/plugins/button/plugin.js @@ -0,0 +1,377 @@ +/** + * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * For licensing, see LICENSE.md or http://ckeditor.com/license + */ + +( function() { + var template = '' + + '{label}' + + '{arrowHtml}' + + ''; + + var templateArrow = '' + + // BLACK DOWN-POINTING TRIANGLE + ( CKEDITOR.env.hc ? '▼' : '' ) + + ''; + + var btnArrowTpl = CKEDITOR.addTemplate( 'buttonArrow', templateArrow ), + btnTpl = CKEDITOR.addTemplate( 'button', template ); + + CKEDITOR.plugins.add( 'button', { + lang: 'af,ar,bg,ca,cs,da,de,de-ch,el,en,en-gb,eo,es,eu,fa,fi,fr,gl,he,hu,id,it,ja,km,ko,ku,lt,nb,nl,pl,pt,pt-br,ro,ru,sk,sl,sq,sv,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% + beforeInit: function( editor ) { + editor.ui.addHandler( CKEDITOR.UI_BUTTON, CKEDITOR.ui.button.handler ); + } + } ); + + /** + * Button UI element. + * + * @readonly + * @property {String} [='button'] + * @member CKEDITOR + */ + CKEDITOR.UI_BUTTON = 'button'; + + /** + * Represents a button UI element. This class should not be called directly. To + * create new buttons use {@link CKEDITOR.ui#addButton} instead. + * + * @class + * @constructor Creates a button class instance. + * @param {Object} definition The button definition. + */ + CKEDITOR.ui.button = function( definition ) { + CKEDITOR.tools.extend( this, definition, + // Set defaults. + { + title: definition.label, + click: definition.click || + function( editor ) { + editor.execCommand( definition.command ); + } + } ); + + this._ = {}; + }; + + /** + * Represents the button handler object. + * + * @class + * @singleton + * @extends CKEDITOR.ui.handlerDefinition + */ + CKEDITOR.ui.button.handler = { + /** + * Transforms a button definition in a {@link CKEDITOR.ui.button} instance. + * + * @member CKEDITOR.ui.button.handler + * @param {Object} definition + * @returns {CKEDITOR.ui.button} + */ + create: function( definition ) { + return new CKEDITOR.ui.button( definition ); + } + }; + + /** @class CKEDITOR.ui.button */ + CKEDITOR.ui.button.prototype = { + /** + * Renders the button. + * + * @param {CKEDITOR.editor} editor The editor instance which this button is + * to be used by. + * @param {Array} output The output array to which the HTML code related to + * this button should be appended. + */ + render: function( editor, output ) { + function updateState() { + // "this" is a CKEDITOR.ui.button instance. + var mode = editor.mode; + + if ( mode ) { + // Restore saved button state. + var state = this.modes[ mode ] ? modeStates[ mode ] !== undefined ? modeStates[ mode ] : CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED; + + state = editor.readOnly && !this.readOnly ? CKEDITOR.TRISTATE_DISABLED : state; + + this.setState( state ); + + // Let plugin to disable button. + if ( this.refresh ) + this.refresh(); + } + } + + var env = CKEDITOR.env, + id = this._.id = CKEDITOR.tools.getNextId(), + stateName = '', + command = this.command, + // Get the command name. + clickFn; + + this._.editor = editor; + + var instance = { + id: id, + button: this, + editor: editor, + focus: function() { + var element = CKEDITOR.document.getById( id ); + element.focus(); + }, + execute: function() { + this.button.click( editor ); + }, + attach: function( editor ) { + this.button.attach( editor ); + } + }; + + var keydownFn = CKEDITOR.tools.addFunction( function( ev ) { + if ( instance.onkey ) { + ev = new CKEDITOR.dom.event( ev ); + return ( instance.onkey( instance, ev.getKeystroke() ) !== false ); + } + } ); + + var focusFn = CKEDITOR.tools.addFunction( function( ev ) { + var retVal; + + if ( instance.onfocus ) + retVal = ( instance.onfocus( instance, new CKEDITOR.dom.event( ev ) ) !== false ); + + return retVal; + } ); + + var selLocked = 0; + + instance.clickFn = clickFn = CKEDITOR.tools.addFunction( function() { + + // Restore locked selection in Opera. + if ( selLocked ) { + editor.unlockSelection( 1 ); + selLocked = 0; + } + instance.execute(); + + // Fixed iOS focus issue when your press disabled button (#12381). + if ( env.iOS ) { + editor.focus(); + } + } ); + + + // Indicate a mode sensitive button. + if ( this.modes ) { + var modeStates = {}; + + editor.on( 'beforeModeUnload', function() { + if ( editor.mode && this._.state != CKEDITOR.TRISTATE_DISABLED ) + modeStates[ editor.mode ] = this._.state; + }, this ); + + // Update status when activeFilter, mode or readOnly changes. + editor.on( 'activeFilterChange', updateState, this ); + editor.on( 'mode', updateState, this ); + // If this button is sensitive to readOnly state, update it accordingly. + !this.readOnly && editor.on( 'readOnly', updateState, this ); + + } else if ( command ) { + // Get the command instance. + command = editor.getCommand( command ); + + if ( command ) { + command.on( 'state', function() { + this.setState( command.state ); + }, this ); + + stateName += ( command.state == CKEDITOR.TRISTATE_ON ? 'on' : command.state == CKEDITOR.TRISTATE_DISABLED ? 'disabled' : 'off' ); + } + } + + // For button that has text-direction awareness on selection path. + if ( this.directional ) { + editor.on( 'contentDirChanged', function( evt ) { + var el = CKEDITOR.document.getById( this._.id ), + icon = el.getFirst(); + + var pathDir = evt.data; + + // Make a minor direction change to become style-able for the skin icon. + if ( pathDir != editor.lang.dir ) + el.addClass( 'cke_' + pathDir ); + else + el.removeClass( 'cke_ltr' ).removeClass( 'cke_rtl' ); + + // Inline style update for the plugin icon. + icon.setAttribute( 'style', CKEDITOR.skin.getIconStyle( iconName, pathDir == 'rtl', this.icon, this.iconOffset ) ); + }, this ); + } + + if ( !command ) + stateName += 'off'; + + var name = this.name || this.command, + iconName = name; + + // Check if we're pointing to an icon defined by another command. (#9555) + if ( this.icon && !( /\./ ).test( this.icon ) ) { + iconName = this.icon; + this.icon = null; + } + + var params = { + id: id, + name: name, + iconName: iconName, + label: this.label, + cls: this.className || '', + state: stateName, + ariaDisabled: stateName == 'disabled' ? 'true' : 'false', + title: this.title, + titleJs: env.gecko && !env.hc ? '' : ( this.title || '' ).replace( "'", '' ), + hasArrow: this.hasArrow ? 'true' : 'false', + keydownFn: keydownFn, + focusFn: focusFn, + clickFn: clickFn, + style: CKEDITOR.skin.getIconStyle( iconName, ( editor.lang.dir == 'rtl' ), this.icon, this.iconOffset ), + arrowHtml: this.hasArrow ? btnArrowTpl.output() : '' + }; + + btnTpl.output( params, output ); + + if ( this.onRender ) + this.onRender(); + + return instance; + }, + + /** + * Sets the button state. + * + * @param {Number} state Indicates the button state. One of {@link CKEDITOR#TRISTATE_ON}, + * {@link CKEDITOR#TRISTATE_OFF}, or {@link CKEDITOR#TRISTATE_DISABLED}. + */ + setState: function( state ) { + if ( this._.state == state ) + return false; + + this._.state = state; + + var element = CKEDITOR.document.getById( this._.id ); + + if ( element ) { + element.setState( state, 'cke_button' ); + + state == CKEDITOR.TRISTATE_DISABLED ? + element.setAttribute( 'aria-disabled', true ) : + element.removeAttribute( 'aria-disabled' ); + + if ( !this.hasArrow ) { + // Note: aria-pressed attribute should not be added to menuButton instances. (#11331) + state == CKEDITOR.TRISTATE_ON ? + element.setAttribute( 'aria-pressed', true ) : + element.removeAttribute( 'aria-pressed' ); + } else { + var newLabel = state == CKEDITOR.TRISTATE_ON ? + this._.editor.lang.button.selectedLabel.replace( /%1/g, this.label ) : this.label; + CKEDITOR.document.getById( this._.id + '_label' ).setText( newLabel ); + } + + return true; + } else { + return false; + } + }, + + /** + * Gets the button state. + * + * @returns {Number} The button state. One of {@link CKEDITOR#TRISTATE_ON}, + * {@link CKEDITOR#TRISTATE_OFF}, or {@link CKEDITOR#TRISTATE_DISABLED}. + */ + getState: function() { + return this._.state; + }, + + /** + * Returns this button's {@link CKEDITOR.feature} instance. + * + * It may be this button instance if it has at least one of + * `allowedContent` and `requiredContent` properties. Otherwise, + * if a command is bound to this button by the `command` property, then + * that command will be returned. + * + * This method implements the {@link CKEDITOR.feature#toFeature} interface method. + * + * @since 4.1 + * @param {CKEDITOR.editor} Editor instance. + * @returns {CKEDITOR.feature} The feature. + */ + toFeature: function( editor ) { + if ( this._.feature ) + return this._.feature; + + var feature = this; + + // If button isn't a feature, return command if is bound. + if ( !this.allowedContent && !this.requiredContent && this.command ) + feature = editor.getCommand( this.command ) || feature; + + return this._.feature = feature; + } + }; + + /** + * Adds a button definition to the UI elements list. + * + * editorInstance.ui.addButton( 'MyBold', { + * label: 'My Bold', + * command: 'bold', + * toolbar: 'basicstyles,1' + * } ); + * + * @member CKEDITOR.ui + * @param {String} name The button name. + * @param {Object} definition The button definition. + * @param {String} definition.label The textual part of the button (if visible) and its tooltip. + * @param {String} definition.command The command to be executed once the button is activated. + * @param {String} definition.toolbar The {@link CKEDITOR.config#toolbarGroups toolbar group} into which + * the button will be added. An optional index value (separated by a comma) determines the button position within the group. + */ + CKEDITOR.ui.prototype.addButton = function( name, definition ) { + this.add( name, CKEDITOR.UI_BUTTON, definition ); + }; + +} )(); -- cgit v1.2.3