aboutsummaryrefslogtreecommitdiff
path: root/sources/plugins/templates
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-01-25 17:45:33 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-01-25 18:00:33 +0100
commit7adcb81e4f83f98c468889aaa5a85558ba88c770 (patch)
tree0d6ede733777b29060b48df4afaa2c64bfbae276 /sources/plugins/templates
downloadconnexionswing-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/templates')
-rw-r--r--sources/plugins/templates/dialogs/templates.css84
-rw-r--r--sources/plugins/templates/dialogs/templates.js199
-rw-r--r--sources/plugins/templates/icons/hidpi/templates-rtl.pngbin0 -> 1387 bytes
-rw-r--r--sources/plugins/templates/icons/hidpi/templates.pngbin0 -> 1387 bytes
-rw-r--r--sources/plugins/templates/icons/templates-rtl.pngbin0 -> 639 bytes
-rw-r--r--sources/plugins/templates/icons/templates.pngbin0 -> 639 bytes
-rw-r--r--sources/plugins/templates/lang/af.js12
-rw-r--r--sources/plugins/templates/lang/ar.js12
-rw-r--r--sources/plugins/templates/lang/bg.js12
-rw-r--r--sources/plugins/templates/lang/bn.js12
-rw-r--r--sources/plugins/templates/lang/bs.js12
-rw-r--r--sources/plugins/templates/lang/ca.js12
-rw-r--r--sources/plugins/templates/lang/cs.js12
-rw-r--r--sources/plugins/templates/lang/cy.js12
-rw-r--r--sources/plugins/templates/lang/da.js12
-rw-r--r--sources/plugins/templates/lang/de.js12
-rw-r--r--sources/plugins/templates/lang/el.js12
-rw-r--r--sources/plugins/templates/lang/en-au.js12
-rw-r--r--sources/plugins/templates/lang/en-ca.js12
-rw-r--r--sources/plugins/templates/lang/en-gb.js12
-rw-r--r--sources/plugins/templates/lang/en.js12
-rw-r--r--sources/plugins/templates/lang/eo.js12
-rw-r--r--sources/plugins/templates/lang/es.js12
-rw-r--r--sources/plugins/templates/lang/et.js12
-rw-r--r--sources/plugins/templates/lang/eu.js12
-rw-r--r--sources/plugins/templates/lang/fa.js12
-rw-r--r--sources/plugins/templates/lang/fi.js12
-rw-r--r--sources/plugins/templates/lang/fo.js12
-rw-r--r--sources/plugins/templates/lang/fr-ca.js12
-rw-r--r--sources/plugins/templates/lang/fr.js12
-rw-r--r--sources/plugins/templates/lang/gl.js12
-rw-r--r--sources/plugins/templates/lang/gu.js12
-rw-r--r--sources/plugins/templates/lang/he.js12
-rw-r--r--sources/plugins/templates/lang/hi.js12
-rw-r--r--sources/plugins/templates/lang/hr.js12
-rw-r--r--sources/plugins/templates/lang/hu.js12
-rw-r--r--sources/plugins/templates/lang/id.js12
-rw-r--r--sources/plugins/templates/lang/is.js12
-rw-r--r--sources/plugins/templates/lang/it.js12
-rw-r--r--sources/plugins/templates/lang/ja.js12
-rw-r--r--sources/plugins/templates/lang/ka.js12
-rw-r--r--sources/plugins/templates/lang/km.js12
-rw-r--r--sources/plugins/templates/lang/ko.js12
-rw-r--r--sources/plugins/templates/lang/ku.js12
-rw-r--r--sources/plugins/templates/lang/lt.js12
-rw-r--r--sources/plugins/templates/lang/lv.js12
-rw-r--r--sources/plugins/templates/lang/mk.js12
-rw-r--r--sources/plugins/templates/lang/mn.js12
-rw-r--r--sources/plugins/templates/lang/ms.js12
-rw-r--r--sources/plugins/templates/lang/nb.js12
-rw-r--r--sources/plugins/templates/lang/nl.js12
-rw-r--r--sources/plugins/templates/lang/no.js12
-rw-r--r--sources/plugins/templates/lang/pl.js12
-rw-r--r--sources/plugins/templates/lang/pt-br.js12
-rw-r--r--sources/plugins/templates/lang/pt.js12
-rw-r--r--sources/plugins/templates/lang/ro.js12
-rw-r--r--sources/plugins/templates/lang/ru.js12
-rw-r--r--sources/plugins/templates/lang/si.js12
-rw-r--r--sources/plugins/templates/lang/sk.js12
-rw-r--r--sources/plugins/templates/lang/sl.js12
-rw-r--r--sources/plugins/templates/lang/sq.js12
-rw-r--r--sources/plugins/templates/lang/sr-latn.js12
-rw-r--r--sources/plugins/templates/lang/sr.js12
-rw-r--r--sources/plugins/templates/lang/sv.js12
-rw-r--r--sources/plugins/templates/lang/th.js12
-rw-r--r--sources/plugins/templates/lang/tr.js12
-rw-r--r--sources/plugins/templates/lang/tt.js12
-rw-r--r--sources/plugins/templates/lang/ug.js12
-rw-r--r--sources/plugins/templates/lang/uk.js12
-rw-r--r--sources/plugins/templates/lang/vi.js12
-rw-r--r--sources/plugins/templates/lang/zh-cn.js12
-rw-r--r--sources/plugins/templates/lang/zh.js12
-rw-r--r--sources/plugins/templates/plugin.js93
-rw-r--r--sources/plugins/templates/templates/default.js87
-rw-r--r--sources/plugins/templates/templates/images/template1.gifbin0 -> 375 bytes
-rw-r--r--sources/plugins/templates/templates/images/template2.gifbin0 -> 333 bytes
-rw-r--r--sources/plugins/templates/templates/images/template3.gifbin0 -> 422 bytes
77 files changed, 1255 insertions, 0 deletions
diff --git a/sources/plugins/templates/dialogs/templates.css b/sources/plugins/templates/dialogs/templates.css
new file mode 100644
index 00000000..7fc4a1bc
--- /dev/null
+++ b/sources/plugins/templates/dialogs/templates.css
@@ -0,0 +1,84 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5
6.cke_tpl_list
7{
8 border: #dcdcdc 2px solid;
9 background-color: #ffffff;
10 overflow-y: auto;
11 overflow-x: hidden;
12 width: 100%;
13 height: 220px;
14}
15
16.cke_tpl_item
17{
18 margin: 5px;
19 padding: 7px;
20 border: #eeeeee 1px solid;
21 *width: 88%;
22}
23
24.cke_tpl_preview
25{
26 border-collapse: separate;
27 text-indent:0;
28 width: 100%;
29}
30.cke_tpl_preview td
31{
32 padding: 2px;
33 vertical-align: middle;
34}
35.cke_tpl_preview .cke_tpl_preview_img
36{
37 width: 100px;
38}
39.cke_tpl_preview span
40{
41 white-space: normal;
42}
43
44.cke_tpl_title
45{
46 font-weight: bold;
47}
48
49.cke_tpl_list a:hover .cke_tpl_item,
50.cke_tpl_list a:focus .cke_tpl_item,
51.cke_tpl_list a:active .cke_tpl_item
52{
53 border: #ff9933 1px solid;
54 background-color: #fffacd;
55}
56
57.cke_tpl_list a:hover *,
58.cke_tpl_list a:focus *,
59.cke_tpl_list a:active *
60{
61 cursor: pointer;
62}
63
64/* IE Quirks contextual selectors children will not get :hover transition until
65 the hover style of the link itself contains certain CSS declarations. */
66.cke_browser_quirks .cke_tpl_list a:active,
67.cke_browser_quirks .cke_tpl_list a:hover,
68.cke_browser_quirks .cke_tpl_list a:focus
69{
70 background-position: 0 0;
71}
72
73.cke_hc .cke_tpl_list a:hover .cke_tpl_item,
74.cke_hc .cke_tpl_list a:focus .cke_tpl_item,
75.cke_hc .cke_tpl_list a:active .cke_tpl_item
76{
77 border-width: 3px;
78}
79
80.cke_tpl_empty, .cke_tpl_loading
81{
82 text-align: center;
83 padding: 5px;
84}
diff --git a/sources/plugins/templates/dialogs/templates.js b/sources/plugins/templates/dialogs/templates.js
new file mode 100644
index 00000000..93dca0a8
--- /dev/null
+++ b/sources/plugins/templates/dialogs/templates.js
@@ -0,0 +1,199 @@
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
8 CKEDITOR.dialog.add( 'templates', function( editor ) {
9 // Constructs the HTML view of the specified templates data.
10 function renderTemplatesList( container, templatesDefinitions ) {
11 // clear loading wait text.
12 container.setHtml( '' );
13
14 for ( var i = 0, totalDefs = templatesDefinitions.length; i < totalDefs; i++ ) {
15 var definition = CKEDITOR.getTemplates( templatesDefinitions[ i ] ),
16 imagesPath = definition.imagesPath,
17 templates = definition.templates,
18 count = templates.length;
19
20 for ( var j = 0; j < count; j++ ) {
21 var template = templates[ j ],
22 item = createTemplateItem( template, imagesPath );
23 item.setAttribute( 'aria-posinset', j + 1 );
24 item.setAttribute( 'aria-setsize', count );
25 container.append( item );
26 }
27 }
28 }
29
30 function createTemplateItem( template, imagesPath ) {
31 var item = CKEDITOR.dom.element.createFromHtml( '<a href="javascript:void(0)" tabIndex="-1" role="option" >' +
32 '<div class="cke_tpl_item"></div>' +
33 '</a>' );
34
35 // Build the inner HTML of our new item DIV.
36 var html = '<table style="width:350px;" class="cke_tpl_preview" role="presentation"><tr>';
37
38 if ( template.image && imagesPath ) {
39 html += '<td class="cke_tpl_preview_img"><img src="' +
40 CKEDITOR.getUrl( imagesPath + template.image ) + '"' +
41 ( CKEDITOR.env.ie6Compat ? ' onload="this.width=this.width"' : '' ) + ' alt="" title=""></td>';
42 }
43
44 html += '<td style="white-space:normal;"><span class="cke_tpl_title">' + template.title + '</span><br/>';
45
46 if ( template.description )
47 html += '<span>' + template.description + '</span>';
48
49 html += '</td></tr></table>';
50
51 item.getFirst().setHtml( html );
52
53 item.on( 'click', function() {
54 insertTemplate( template.html );
55 } );
56
57 return item;
58 }
59
60 // Insert the specified template content into editor.
61 // @param {Number} index
62 function insertTemplate( html ) {
63 var dialog = CKEDITOR.dialog.getCurrent(),
64 isReplace = dialog.getValueOf( 'selectTpl', 'chkInsertOpt' );
65
66 if ( isReplace ) {
67 editor.fire( 'saveSnapshot' );
68 // Everything should happen after the document is loaded (#4073).
69 editor.setData( html, function() {
70 dialog.hide();
71
72 // Place the cursor at the first editable place.
73 var range = editor.createRange();
74 range.moveToElementEditStart( editor.editable() );
75 range.select();
76 setTimeout( function() {
77 editor.fire( 'saveSnapshot' );
78 }, 0 );
79
80 } );
81 } else {
82 editor.insertHtml( html );
83 dialog.hide();
84 }
85 }
86
87 function keyNavigation( evt ) {
88 var target = evt.data.getTarget(),
89 onList = listContainer.equals( target );
90
91 // Keyboard navigation for template list.
92 if ( onList || listContainer.contains( target ) ) {
93 var keystroke = evt.data.getKeystroke(),
94 items = listContainer.getElementsByTag( 'a' ),
95 focusItem;
96
97 if ( items ) {
98 // Focus not yet onto list items?
99 if ( onList )
100 focusItem = items.getItem( 0 );
101 else {
102 switch ( keystroke ) {
103 case 40: // ARROW-DOWN
104 focusItem = target.getNext();
105 break;
106
107 case 38: // ARROW-UP
108 focusItem = target.getPrevious();
109 break;
110
111 case 13: // ENTER
112 case 32: // SPACE
113 target.fire( 'click' );
114 }
115 }
116
117 if ( focusItem ) {
118 focusItem.focus();
119 evt.data.preventDefault();
120 }
121 }
122 }
123 }
124
125 // Load skin at first.
126 var plugin = CKEDITOR.plugins.get( 'templates' );
127 CKEDITOR.document.appendStyleSheet( CKEDITOR.getUrl( plugin.path + 'dialogs/templates.css' ) );
128
129
130 var listContainer;
131
132 var templateListLabelId = 'cke_tpl_list_label_' + CKEDITOR.tools.getNextNumber(),
133 lang = editor.lang.templates,
134 config = editor.config;
135 return {
136 title: editor.lang.templates.title,
137
138 minWidth: CKEDITOR.env.ie ? 440 : 400,
139 minHeight: 340,
140
141 contents: [ {
142 id: 'selectTpl',
143 label: lang.title,
144 elements: [ {
145 type: 'vbox',
146 padding: 5,
147 children: [ {
148 id: 'selectTplText',
149 type: 'html',
150 html: '<span>' +
151 lang.selectPromptMsg +
152 '</span>'
153 },
154 {
155 id: 'templatesList',
156 type: 'html',
157 focus: true,
158 html: '<div class="cke_tpl_list" tabIndex="-1" role="listbox" aria-labelledby="' + templateListLabelId + '">' +
159 '<div class="cke_tpl_loading"><span></span></div>' +
160 '</div>' +
161 '<span class="cke_voice_label" id="' + templateListLabelId + '">' + lang.options + '</span>'
162 },
163 {
164 id: 'chkInsertOpt',
165 type: 'checkbox',
166 label: lang.insertOption,
167 'default': config.templates_replaceContent
168 } ]
169 } ]
170 } ],
171
172 buttons: [ CKEDITOR.dialog.cancelButton ],
173
174 onShow: function() {
175 var templatesListField = this.getContentElement( 'selectTpl', 'templatesList' );
176 listContainer = templatesListField.getElement();
177
178 CKEDITOR.loadTemplates( config.templates_files, function() {
179 var templates = ( config.templates || 'default' ).split( ',' );
180
181 if ( templates.length ) {
182 renderTemplatesList( listContainer, templates );
183 templatesListField.focus();
184 } else {
185 listContainer.setHtml( '<div class="cke_tpl_empty">' +
186 '<span>' + lang.emptyListMsg + '</span>' +
187 '</div>' );
188 }
189 } );
190
191 this._.element.on( 'keydown', keyNavigation );
192 },
193
194 onHide: function() {
195 this._.element.removeListener( 'keydown', keyNavigation );
196 }
197 };
198 } );
199} )();
diff --git a/sources/plugins/templates/icons/hidpi/templates-rtl.png b/sources/plugins/templates/icons/hidpi/templates-rtl.png
new file mode 100644
index 00000000..9a263404
--- /dev/null
+++ b/sources/plugins/templates/icons/hidpi/templates-rtl.png
Binary files differ
diff --git a/sources/plugins/templates/icons/hidpi/templates.png b/sources/plugins/templates/icons/hidpi/templates.png
new file mode 100644
index 00000000..9a263404
--- /dev/null
+++ b/sources/plugins/templates/icons/hidpi/templates.png
Binary files differ
diff --git a/sources/plugins/templates/icons/templates-rtl.png b/sources/plugins/templates/icons/templates-rtl.png
new file mode 100644
index 00000000..202b6045
--- /dev/null
+++ b/sources/plugins/templates/icons/templates-rtl.png
Binary files differ
diff --git a/sources/plugins/templates/icons/templates.png b/sources/plugins/templates/icons/templates.png
new file mode 100644
index 00000000..202b6045
--- /dev/null
+++ b/sources/plugins/templates/icons/templates.png
Binary files differ
diff --git a/sources/plugins/templates/lang/af.js b/sources/plugins/templates/lang/af.js
new file mode 100644
index 00000000..92290482
--- /dev/null
+++ b/sources/plugins/templates/lang/af.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'af', {
6 button: 'Sjablone',
7 emptyListMsg: '(Geen sjablone gedefineer nie)',
8 insertOption: 'Vervang huidige inhoud',
9 options: 'Sjabloon opsies',
10 selectPromptMsg: 'Kies die sjabloon om te gebruik in die redigeerder (huidige inhoud gaan verlore):',
11 title: 'Inhoud Sjablone'
12} );
diff --git a/sources/plugins/templates/lang/ar.js b/sources/plugins/templates/lang/ar.js
new file mode 100644
index 00000000..39f378de
--- /dev/null
+++ b/sources/plugins/templates/lang/ar.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'ar', {
6 button: 'القوالب',
7 emptyListMsg: '(لم يتم تعريف أي قالب)',
8 insertOption: 'استبدال المحتوى',
9 options: 'خصائص القوالب',
10 selectPromptMsg: 'اختر القالب الذي تود وضعه في المحرر',
11 title: 'قوالب المحتوى'
12} );
diff --git a/sources/plugins/templates/lang/bg.js b/sources/plugins/templates/lang/bg.js
new file mode 100644
index 00000000..815fd0b3
--- /dev/null
+++ b/sources/plugins/templates/lang/bg.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'bg', {
6 button: 'Шаблони',
7 emptyListMsg: '(Няма дефинирани шаблони)',
8 insertOption: 'Препокрива актуалното съдържание',
9 options: 'Опции за шаблона',
10 selectPromptMsg: 'Изберете шаблон <br>(текущото съдържание на редактора ще бъде загубено):',
11 title: 'Шаблони'
12} );
diff --git a/sources/plugins/templates/lang/bn.js b/sources/plugins/templates/lang/bn.js
new file mode 100644
index 00000000..84d5a885
--- /dev/null
+++ b/sources/plugins/templates/lang/bn.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'bn', {
6 button: 'টেমপ্লেট',
7 emptyListMsg: '(কোন টেমপ্লেট ডিফাইন করা নেই)',
8 insertOption: 'Replace actual contents', // MISSING
9 options: 'Template Options', // MISSING
10 selectPromptMsg: 'অনুগ্রহ করে এডিটরে ওপেন করার জন্য টেমপ্লেট বাছাই করুন<br>(আসল কনটেন্ট হারিয়ে যাবে):',
11 title: 'কনটেন্ট টেমপ্লেট'
12} );
diff --git a/sources/plugins/templates/lang/bs.js b/sources/plugins/templates/lang/bs.js
new file mode 100644
index 00000000..78bf198d
--- /dev/null
+++ b/sources/plugins/templates/lang/bs.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'bs', {
6 button: 'Templates', // MISSING
7 emptyListMsg: '(No templates defined)', // MISSING
8 insertOption: 'Replace actual contents', // MISSING
9 options: 'Template Options', // MISSING
10 selectPromptMsg: 'Please select the template to open in the editor', // MISSING
11 title: 'Content Templates' // MISSING
12} );
diff --git a/sources/plugins/templates/lang/ca.js b/sources/plugins/templates/lang/ca.js
new file mode 100644
index 00000000..e41831a2
--- /dev/null
+++ b/sources/plugins/templates/lang/ca.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'ca', {
6 button: 'Plantilles',
7 emptyListMsg: '(No hi ha plantilles definides)',
8 insertOption: 'Reemplaça el contingut actual',
9 options: 'Opcions de plantilla',
10 selectPromptMsg: 'Seleccioneu una plantilla per usar a l\'editor<br>(per defecte s\'elimina el contingut actual):',
11 title: 'Plantilles de contingut'
12} );
diff --git a/sources/plugins/templates/lang/cs.js b/sources/plugins/templates/lang/cs.js
new file mode 100644
index 00000000..d9d25511
--- /dev/null
+++ b/sources/plugins/templates/lang/cs.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'cs', {
6 button: 'Šablony',
7 emptyListMsg: '(Není definována žádná šablona)',
8 insertOption: 'Nahradit aktuální obsah',
9 options: 'Nastavení šablon',
10 selectPromptMsg: 'Prosím zvolte šablonu pro otevření v editoru<br>(aktuální obsah editoru bude ztracen):',
11 title: 'Šablony obsahu'
12} );
diff --git a/sources/plugins/templates/lang/cy.js b/sources/plugins/templates/lang/cy.js
new file mode 100644
index 00000000..eefb9b86
--- /dev/null
+++ b/sources/plugins/templates/lang/cy.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'cy', {
6 button: 'Templedi',
7 emptyListMsg: '(Dim templedi wedi\'u diffinio)',
8 insertOption: 'Amnewid y cynnwys go iawn',
9 options: 'Opsiynau Templedi',
10 selectPromptMsg: 'Dewiswch dempled i\'w agor yn y golygydd',
11 title: 'Templedi Cynnwys'
12} );
diff --git a/sources/plugins/templates/lang/da.js b/sources/plugins/templates/lang/da.js
new file mode 100644
index 00000000..fe0dd1da
--- /dev/null
+++ b/sources/plugins/templates/lang/da.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'da', {
6 button: 'Skabeloner',
7 emptyListMsg: '(Der er ikke defineret nogen skabelon)',
8 insertOption: 'Erstat det faktiske indhold',
9 options: 'Skabelon muligheder',
10 selectPromptMsg: 'Vælg den skabelon, som skal åbnes i editoren (nuværende indhold vil blive overskrevet):',
11 title: 'Indholdsskabeloner'
12} );
diff --git a/sources/plugins/templates/lang/de.js b/sources/plugins/templates/lang/de.js
new file mode 100644
index 00000000..f354c26f
--- /dev/null
+++ b/sources/plugins/templates/lang/de.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'de', {
6 button: 'Vorlagen',
7 emptyListMsg: '(Keine Vorlagen definiert)',
8 insertOption: 'Aktuelle Inhalte ersetzen',
9 options: 'Vorlagenoptionen',
10 selectPromptMsg: 'Klicken Sie auf eine Vorlage, um sie im Editor zu öffnen',
11 title: 'Inhaltsvorlagen'
12} );
diff --git a/sources/plugins/templates/lang/el.js b/sources/plugins/templates/lang/el.js
new file mode 100644
index 00000000..2d5bbb77
--- /dev/null
+++ b/sources/plugins/templates/lang/el.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'el', {
6 button: 'Πρότυπα',
7 emptyListMsg: '(Δεν έχουν καθοριστεί πρότυπα)',
8 insertOption: 'Αντικατάσταση υπάρχοντων περιεχομένων',
9 options: 'Επιλογές Προτύπου',
10 selectPromptMsg: 'Παρακαλώ επιλέξτε πρότυπο για εισαγωγή στο πρόγραμμα',
11 title: 'Πρότυπα Περιεχομένου'
12} );
diff --git a/sources/plugins/templates/lang/en-au.js b/sources/plugins/templates/lang/en-au.js
new file mode 100644
index 00000000..5c611616
--- /dev/null
+++ b/sources/plugins/templates/lang/en-au.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'en-au', {
6 button: 'Templates',
7 emptyListMsg: '(No templates defined)',
8 insertOption: 'Replace actual contents',
9 options: 'Template Options', // MISSING
10 selectPromptMsg: 'Please select the template to open in the editor',
11 title: 'Content Templates'
12} );
diff --git a/sources/plugins/templates/lang/en-ca.js b/sources/plugins/templates/lang/en-ca.js
new file mode 100644
index 00000000..16bd7e13
--- /dev/null
+++ b/sources/plugins/templates/lang/en-ca.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'en-ca', {
6 button: 'Templates',
7 emptyListMsg: '(No templates defined)',
8 insertOption: 'Replace actual contents',
9 options: 'Template Options', // MISSING
10 selectPromptMsg: 'Please select the template to open in the editor',
11 title: 'Content Templates'
12} );
diff --git a/sources/plugins/templates/lang/en-gb.js b/sources/plugins/templates/lang/en-gb.js
new file mode 100644
index 00000000..794c0074
--- /dev/null
+++ b/sources/plugins/templates/lang/en-gb.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'en-gb', {
6 button: 'Templates',
7 emptyListMsg: '(No templates defined)',
8 insertOption: 'Replace actual contents',
9 options: 'Template Options',
10 selectPromptMsg: 'Please select the template to open in the editor',
11 title: 'Content Templates'
12} );
diff --git a/sources/plugins/templates/lang/en.js b/sources/plugins/templates/lang/en.js
new file mode 100644
index 00000000..1fffcc06
--- /dev/null
+++ b/sources/plugins/templates/lang/en.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'en', {
6 button: 'Templates',
7 emptyListMsg: '(No templates defined)',
8 insertOption: 'Replace actual contents',
9 options: 'Template Options',
10 selectPromptMsg: 'Please select the template to open in the editor',
11 title: 'Content Templates'
12} );
diff --git a/sources/plugins/templates/lang/eo.js b/sources/plugins/templates/lang/eo.js
new file mode 100644
index 00000000..82be7b41
--- /dev/null
+++ b/sources/plugins/templates/lang/eo.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'eo', {
6 button: 'Ŝablonoj',
7 emptyListMsg: '(Neniu ŝablono difinita)',
8 insertOption: 'Anstataŭigi la nunan enhavon',
9 options: 'Opcioj pri ŝablonoj',
10 selectPromptMsg: 'Bonvolu selekti la ŝablonon por malfermi ĝin en la redaktilo',
11 title: 'Enhavo de ŝablonoj'
12} );
diff --git a/sources/plugins/templates/lang/es.js b/sources/plugins/templates/lang/es.js
new file mode 100644
index 00000000..2cf155cb
--- /dev/null
+++ b/sources/plugins/templates/lang/es.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'es', {
6 button: 'Plantillas',
7 emptyListMsg: '(No hay plantillas definidas)',
8 insertOption: 'Reemplazar el contenido actual',
9 options: 'Opciones de plantillas',
10 selectPromptMsg: 'Por favor selecciona la plantilla a abrir en el editor<br>(el contenido actual se perderá):',
11 title: 'Contenido de Plantillas'
12} );
diff --git a/sources/plugins/templates/lang/et.js b/sources/plugins/templates/lang/et.js
new file mode 100644
index 00000000..3e46e4bf
--- /dev/null
+++ b/sources/plugins/templates/lang/et.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'et', {
6 button: 'Mall',
7 emptyListMsg: '(Ühtegi malli ei ole defineeritud)',
8 insertOption: 'Praegune sisu asendatakse',
9 options: 'Malli valikud',
10 selectPromptMsg: 'Palun vali mall, mis avada redaktoris<br />(praegune sisu läheb kaotsi):',
11 title: 'Sisumallid'
12} );
diff --git a/sources/plugins/templates/lang/eu.js b/sources/plugins/templates/lang/eu.js
new file mode 100644
index 00000000..6d680d50
--- /dev/null
+++ b/sources/plugins/templates/lang/eu.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'eu', {
6 button: 'Txantiloiak',
7 emptyListMsg: '(Ez dago txantiloirik definituta)',
8 insertOption: 'Ordeztu uneko edukiak',
9 options: 'Txantiloi aukerak',
10 selectPromptMsg: 'Mesedez hautatu txantiloia editorean irekitzeko',
11 title: 'Eduki txantiloiak'
12} );
diff --git a/sources/plugins/templates/lang/fa.js b/sources/plugins/templates/lang/fa.js
new file mode 100644
index 00000000..9b642061
--- /dev/null
+++ b/sources/plugins/templates/lang/fa.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'fa', {
6 button: 'الگوها',
7 emptyListMsg: '(الگوئی تعریف نشده است)',
8 insertOption: 'محتویات کنونی جایگزین شوند',
9 options: 'گزینه‌های الگو',
10 selectPromptMsg: 'لطفاً الگوی مورد نظر را برای بازکردن در ویرایشگر انتخاب کنید',
11 title: 'الگوهای محتویات'
12} );
diff --git a/sources/plugins/templates/lang/fi.js b/sources/plugins/templates/lang/fi.js
new file mode 100644
index 00000000..a7e4d429
--- /dev/null
+++ b/sources/plugins/templates/lang/fi.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'fi', {
6 button: 'Pohjat',
7 emptyListMsg: '(Ei määriteltyjä pohjia)',
8 insertOption: 'Korvaa koko sisältö',
9 options: 'Sisältöpohjan ominaisuudet',
10 selectPromptMsg: 'Valitse editoriin avattava pohja',
11 title: 'Sisältöpohjat'
12} );
diff --git a/sources/plugins/templates/lang/fo.js b/sources/plugins/templates/lang/fo.js
new file mode 100644
index 00000000..9ccb4e6a
--- /dev/null
+++ b/sources/plugins/templates/lang/fo.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'fo', {
6 button: 'Skabelónir',
7 emptyListMsg: '(Ongar skabelónir tøkar)',
8 insertOption: 'Yvirskriva núverandi innihald',
9 options: 'Møguleikar fyri Template',
10 selectPromptMsg: 'Vinarliga vel ta skabelón, ið skal opnast í tekstviðgeranum<br>(Hetta yvirskrivar núverandi innihald):',
11 title: 'Innihaldsskabelónir'
12} );
diff --git a/sources/plugins/templates/lang/fr-ca.js b/sources/plugins/templates/lang/fr-ca.js
new file mode 100644
index 00000000..5996dccb
--- /dev/null
+++ b/sources/plugins/templates/lang/fr-ca.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'fr-ca', {
6 button: 'Modèles',
7 emptyListMsg: '(Aucun modèle disponible)',
8 insertOption: 'Remplacer tout le contenu actuel',
9 options: 'Options de modèles',
10 selectPromptMsg: 'Sélectionner le modèle à ouvrir dans l\'éditeur',
11 title: 'Modèles de contenu'
12} );
diff --git a/sources/plugins/templates/lang/fr.js b/sources/plugins/templates/lang/fr.js
new file mode 100644
index 00000000..49e1165c
--- /dev/null
+++ b/sources/plugins/templates/lang/fr.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'fr', {
6 button: 'Modèles',
7 emptyListMsg: '(Aucun modèle disponible)',
8 insertOption: 'Remplacer le contenu actuel',
9 options: 'Options des modèles',
10 selectPromptMsg: 'Veuillez sélectionner le modèle pour l\'ouvrir dans l\'éditeur',
11 title: 'Contenu des modèles'
12} );
diff --git a/sources/plugins/templates/lang/gl.js b/sources/plugins/templates/lang/gl.js
new file mode 100644
index 00000000..b7c0f052
--- /dev/null
+++ b/sources/plugins/templates/lang/gl.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'gl', {
6 button: 'Modelos',
7 emptyListMsg: '(Non hai modelos definidos)',
8 insertOption: 'Substituír o contido actual',
9 options: 'Opcións de modelos',
10 selectPromptMsg: 'Seleccione o modelo a abrir no editor',
11 title: 'Modelos de contido'
12} );
diff --git a/sources/plugins/templates/lang/gu.js b/sources/plugins/templates/lang/gu.js
new file mode 100644
index 00000000..d4841fe8
--- /dev/null
+++ b/sources/plugins/templates/lang/gu.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'gu', {
6 button: 'ટેમ્પ્લેટ',
7 emptyListMsg: '(કોઈ ટેમ્પ્લેટ ડિફાઇન નથી)',
8 insertOption: 'મૂળ શબ્દને બદલો',
9 options: 'ટેમ્પ્લેટના વિકલ્પો',
10 selectPromptMsg: 'એડિટરમાં ઓપન કરવા ટેમ્પ્લેટ પસંદ કરો (વર્તમાન કન્ટેન્ટ સેવ નહીં થાય):',
11 title: 'કન્ટેન્ટ ટેમ્પ્લેટ'
12} );
diff --git a/sources/plugins/templates/lang/he.js b/sources/plugins/templates/lang/he.js
new file mode 100644
index 00000000..b32bd1f1
--- /dev/null
+++ b/sources/plugins/templates/lang/he.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'he', {
6 button: 'תבניות',
7 emptyListMsg: '(לא הוגדרו תבניות)',
8 insertOption: 'החלפת תוכן ממשי',
9 options: 'אפשרויות התבניות',
10 selectPromptMsg: 'יש לבחור תבנית לפתיחה בעורך.<br />התוכן המקורי ימחק:',
11 title: 'תביות תוכן'
12} );
diff --git a/sources/plugins/templates/lang/hi.js b/sources/plugins/templates/lang/hi.js
new file mode 100644
index 00000000..5878fed9
--- /dev/null
+++ b/sources/plugins/templates/lang/hi.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'hi', {
6 button: 'टॅम्प्लेट',
7 emptyListMsg: '(कोई टॅम्प्लेट डिफ़ाइन नहीं किया गया है)',
8 insertOption: 'मूल शब्दों को बदलें',
9 options: 'Template Options', // MISSING
10 selectPromptMsg: 'ऍडिटर में ओपन करने हेतु टॅम्प्लेट चुनें(वर्तमान कन्टॅन्ट सेव नहीं होंगे):',
11 title: 'कन्टेन्ट टॅम्प्लेट'
12} );
diff --git a/sources/plugins/templates/lang/hr.js b/sources/plugins/templates/lang/hr.js
new file mode 100644
index 00000000..b4ec5ac9
--- /dev/null
+++ b/sources/plugins/templates/lang/hr.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'hr', {
6 button: 'Predlošci',
7 emptyListMsg: '(Nema definiranih predložaka)',
8 insertOption: 'Zamijeni trenutne sadržaje',
9 options: 'Opcije predložaka',
10 selectPromptMsg: 'Molimo odaberite predložak koji želite otvoriti<br>(stvarni sadržaj će biti izgubljen):',
11 title: 'Predlošci sadržaja'
12} );
diff --git a/sources/plugins/templates/lang/hu.js b/sources/plugins/templates/lang/hu.js
new file mode 100644
index 00000000..016f2004
--- /dev/null
+++ b/sources/plugins/templates/lang/hu.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'hu', {
6 button: 'Sablonok',
7 emptyListMsg: '(Nincs sablon megadva)',
8 insertOption: 'Kicseréli a jelenlegi tartalmat',
9 options: 'Sablon opciók',
10 selectPromptMsg: 'Válassza ki melyik sablon nyíljon meg a szerkesztőben<br>(a jelenlegi tartalom elveszik):',
11 title: 'Elérhető sablonok'
12} );
diff --git a/sources/plugins/templates/lang/id.js b/sources/plugins/templates/lang/id.js
new file mode 100644
index 00000000..72e2e2e9
--- /dev/null
+++ b/sources/plugins/templates/lang/id.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'id', {
6 button: 'Contoh',
7 emptyListMsg: '(Tidak ada contoh didefinisikan)',
8 insertOption: 'Ganti konten sebenarnya',
9 options: 'Opsi Contoh',
10 selectPromptMsg: 'Mohon pilih contoh untuk dibuka di editor',
11 title: 'Contoh Konten'
12} );
diff --git a/sources/plugins/templates/lang/is.js b/sources/plugins/templates/lang/is.js
new file mode 100644
index 00000000..5168a998
--- /dev/null
+++ b/sources/plugins/templates/lang/is.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'is', {
6 button: 'Sniðmát',
7 emptyListMsg: '(Ekkert sniðmát er skilgreint!)',
8 insertOption: 'Skipta út raunverulegu innihaldi',
9 options: 'Template Options', // MISSING
10 selectPromptMsg: 'Veldu sniðmát til að opna í ritlinum.<br>(Núverandi innihald víkur fyrir því!):',
11 title: 'Innihaldssniðmát'
12} );
diff --git a/sources/plugins/templates/lang/it.js b/sources/plugins/templates/lang/it.js
new file mode 100644
index 00000000..6beea875
--- /dev/null
+++ b/sources/plugins/templates/lang/it.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'it', {
6 button: 'Modelli',
7 emptyListMsg: '(Nessun modello definito)',
8 insertOption: 'Cancella il contenuto corrente',
9 options: 'Opzioni del Modello',
10 selectPromptMsg: 'Seleziona il modello da aprire nell\'editor',
11 title: 'Contenuto dei modelli'
12} );
diff --git a/sources/plugins/templates/lang/ja.js b/sources/plugins/templates/lang/ja.js
new file mode 100644
index 00000000..59d3cd62
--- /dev/null
+++ b/sources/plugins/templates/lang/ja.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'ja', {
6 button: 'テンプレート',
7 emptyListMsg: '(テンプレートが定義されていません)',
8 insertOption: '現在のエディタの内容と置き換えます',
9 options: 'テンプレートオプション',
10 selectPromptMsg: 'エディターで使用するテンプレートを選択してください。<br>(現在のエディタの内容は失われます):',
11 title: '内容テンプレート'
12} );
diff --git a/sources/plugins/templates/lang/ka.js b/sources/plugins/templates/lang/ka.js
new file mode 100644
index 00000000..d48b87f1
--- /dev/null
+++ b/sources/plugins/templates/lang/ka.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'ka', {
6 button: 'თარგები',
7 emptyListMsg: '(თარგი არაა განსაზღვრული)',
8 insertOption: 'მიმდინარე შეგთავსის შეცვლა',
9 options: 'თარგების პარამეტრები',
10 selectPromptMsg: 'აირჩიეთ თარგი რედაქტორისთვის',
11 title: 'თარგები'
12} );
diff --git a/sources/plugins/templates/lang/km.js b/sources/plugins/templates/lang/km.js
new file mode 100644
index 00000000..59eb7743
--- /dev/null
+++ b/sources/plugins/templates/lang/km.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'km', {
6 button: 'ពុម្ព​គំរូ',
7 emptyListMsg: '(មិន​មាន​ពុម្ព​គំរូ​ត្រូវ​បាន​កំណត់)',
8 insertOption: 'ជំនួស​ក្នុង​មាតិកា​បច្ចុប្បន្ន',
9 options: 'ជម្រើស​ពុម្ព​គំរូ',
10 selectPromptMsg: 'សូម​រើស​ពុម្ព​គំរូ​ដើម្បី​បើក​ក្នុង​កម្មវិធី​សរសេរ​អត្ថបទ',
11 title: 'ពុម្ព​គំរូ​មាតិកា'
12} );
diff --git a/sources/plugins/templates/lang/ko.js b/sources/plugins/templates/lang/ko.js
new file mode 100644
index 00000000..03beec82
--- /dev/null
+++ b/sources/plugins/templates/lang/ko.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'ko', {
6 button: '템플릿',
7 emptyListMsg: '(템플릿이 없습니다)',
8 insertOption: '현재 내용 바꾸기',
9 options: '템플릿 옵션',
10 selectPromptMsg: '에디터에서 사용할 템플릿을 선택하십시오',
11 title: '내용 템플릿'
12} );
diff --git a/sources/plugins/templates/lang/ku.js b/sources/plugins/templates/lang/ku.js
new file mode 100644
index 00000000..ccf7e023
--- /dev/null
+++ b/sources/plugins/templates/lang/ku.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'ku', {
6 button: 'ڕووکار',
7 emptyListMsg: '(هیچ ڕووکارێك دیارینەکراوە)',
8 insertOption: 'لە شوێن دانانی ئەم پێکهاتانەی ئێستا',
9 options: 'هەڵبژاردەکانی ڕووکار',
10 selectPromptMsg: 'ڕووکارێك هەڵبژێره بۆ کردنەوەی له سەرنووسەر:',
11 title: 'پێکهاتەی ڕووکار'
12} );
diff --git a/sources/plugins/templates/lang/lt.js b/sources/plugins/templates/lang/lt.js
new file mode 100644
index 00000000..931f7ad9
--- /dev/null
+++ b/sources/plugins/templates/lang/lt.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'lt', {
6 button: 'Šablonai',
7 emptyListMsg: '(Šablonų sąrašas tuščias)',
8 insertOption: 'Pakeisti dabartinį turinį pasirinktu šablonu',
9 options: 'Template Options',
10 selectPromptMsg: 'Pasirinkite norimą šabloną<br>(<b>Dėmesio!</b> esamas turinys bus prarastas):',
11 title: 'Turinio šablonai'
12} );
diff --git a/sources/plugins/templates/lang/lv.js b/sources/plugins/templates/lang/lv.js
new file mode 100644
index 00000000..41c7b986
--- /dev/null
+++ b/sources/plugins/templates/lang/lv.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'lv', {
6 button: 'Sagataves',
7 emptyListMsg: '(Nav norādītas sagataves)',
8 insertOption: 'Aizvietot pašreizējo saturu',
9 options: 'Sagataves uzstādījumi',
10 selectPromptMsg: 'Lūdzu, norādiet sagatavi, ko atvērt editorā<br>(patreizējie dati tiks zaudēti):',
11 title: 'Satura sagataves'
12} );
diff --git a/sources/plugins/templates/lang/mk.js b/sources/plugins/templates/lang/mk.js
new file mode 100644
index 00000000..d570cefc
--- /dev/null
+++ b/sources/plugins/templates/lang/mk.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'mk', {
6 button: 'Templates', // MISSING
7 emptyListMsg: '(No templates defined)', // MISSING
8 insertOption: 'Replace actual contents', // MISSING
9 options: 'Template Options', // MISSING
10 selectPromptMsg: 'Please select the template to open in the editor', // MISSING
11 title: 'Content Templates' // MISSING
12} );
diff --git a/sources/plugins/templates/lang/mn.js b/sources/plugins/templates/lang/mn.js
new file mode 100644
index 00000000..cba69a59
--- /dev/null
+++ b/sources/plugins/templates/lang/mn.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'mn', {
6 button: 'Загварууд',
7 emptyListMsg: '(Загвар тодорхойлогдоогүй байна)',
8 insertOption: 'Одоогийн агууллагыг дарж бичих',
9 options: 'Template Options', // MISSING
10 selectPromptMsg: 'Загварыг нээж editor-рүү сонгож оруулна уу<br />(Одоогийн агууллагыг устаж магадгүй):',
11 title: 'Загварын агуулга'
12} );
diff --git a/sources/plugins/templates/lang/ms.js b/sources/plugins/templates/lang/ms.js
new file mode 100644
index 00000000..2223c922
--- /dev/null
+++ b/sources/plugins/templates/lang/ms.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'ms', {
6 button: 'Templat',
7 emptyListMsg: '(Tiada Templat Disimpan)',
8 insertOption: 'Replace actual contents', // MISSING
9 options: 'Template Options', // MISSING
10 selectPromptMsg: 'Sila pilih templat untuk dibuka oleh editor<br>(kandungan sebenar akan hilang):',
11 title: 'Templat Kandungan'
12} );
diff --git a/sources/plugins/templates/lang/nb.js b/sources/plugins/templates/lang/nb.js
new file mode 100644
index 00000000..c6caa8ea
--- /dev/null
+++ b/sources/plugins/templates/lang/nb.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'nb', {
6 button: 'Maler',
7 emptyListMsg: '(Ingen maler definert)',
8 insertOption: 'Erstatt gjeldende innhold',
9 options: 'Alternativer for mal',
10 selectPromptMsg: 'Velg malen du vil åpne i redigeringsverktøyet:',
11 title: 'Innholdsmaler'
12} );
diff --git a/sources/plugins/templates/lang/nl.js b/sources/plugins/templates/lang/nl.js
new file mode 100644
index 00000000..0133c079
--- /dev/null
+++ b/sources/plugins/templates/lang/nl.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'nl', {
6 button: 'Sjablonen',
7 emptyListMsg: '(Geen sjablonen gedefinieerd)',
8 insertOption: 'Vervang de huidige inhoud',
9 options: 'Template opties',
10 selectPromptMsg: 'Selecteer het sjabloon dat in de editor geopend moet worden (de actuele inhoud gaat verloren):',
11 title: 'Inhoud sjablonen'
12} );
diff --git a/sources/plugins/templates/lang/no.js b/sources/plugins/templates/lang/no.js
new file mode 100644
index 00000000..1c0eb2dc
--- /dev/null
+++ b/sources/plugins/templates/lang/no.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'no', {
6 button: 'Maler',
7 emptyListMsg: '(Ingen maler definert)',
8 insertOption: 'Erstatt gjeldende innhold',
9 options: 'Alternativer for mal',
10 selectPromptMsg: 'Velg malen du vil åpne i redigeringsverktøyet:',
11 title: 'Innholdsmaler'
12} );
diff --git a/sources/plugins/templates/lang/pl.js b/sources/plugins/templates/lang/pl.js
new file mode 100644
index 00000000..26eea259
--- /dev/null
+++ b/sources/plugins/templates/lang/pl.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'pl', {
6 button: 'Szablony',
7 emptyListMsg: '(Brak zdefiniowanych szablonów)',
8 insertOption: 'Zastąp obecną zawartość',
9 options: 'Opcje szablonów',
10 selectPromptMsg: 'Wybierz szablon do otwarcia w edytorze<br>(obecna zawartość okna edytora zostanie utracona):',
11 title: 'Szablony zawartości'
12} );
diff --git a/sources/plugins/templates/lang/pt-br.js b/sources/plugins/templates/lang/pt-br.js
new file mode 100644
index 00000000..a5b3df79
--- /dev/null
+++ b/sources/plugins/templates/lang/pt-br.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'pt-br', {
6 button: 'Modelos de layout',
7 emptyListMsg: '(Não foram definidos modelos de layout)',
8 insertOption: 'Substituir o conteúdo atual',
9 options: 'Opções de Template',
10 selectPromptMsg: 'Selecione um modelo de layout para ser aberto no editor<br>(o conteúdo atual será perdido):',
11 title: 'Modelo de layout de conteúdo'
12} );
diff --git a/sources/plugins/templates/lang/pt.js b/sources/plugins/templates/lang/pt.js
new file mode 100644
index 00000000..5058d609
--- /dev/null
+++ b/sources/plugins/templates/lang/pt.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'pt', {
6 button: 'Modelos',
7 emptyListMsg: '(Sem modelos definidos)',
8 insertOption: 'Substituir conteúdos atuais',
9 options: 'Opções do modelo',
10 selectPromptMsg: 'Por favor, selecione o modelo para abrir no editor',
11 title: 'Conteúdo dos Modelos'
12} );
diff --git a/sources/plugins/templates/lang/ro.js b/sources/plugins/templates/lang/ro.js
new file mode 100644
index 00000000..14e691be
--- /dev/null
+++ b/sources/plugins/templates/lang/ro.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'ro', {
6 button: 'Template-uri (şabloane)',
7 emptyListMsg: '(Niciun template (şablon) definit)',
8 insertOption: 'Înlocuieşte cuprinsul actual',
9 options: 'Opțiuni șabloane',
10 selectPromptMsg: 'Vă rugăm selectaţi template-ul (şablonul) ce se va deschide în editor<br>(conţinutul actual va fi pierdut):',
11 title: 'Template-uri (şabloane) de conţinut'
12} );
diff --git a/sources/plugins/templates/lang/ru.js b/sources/plugins/templates/lang/ru.js
new file mode 100644
index 00000000..a7462690
--- /dev/null
+++ b/sources/plugins/templates/lang/ru.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'ru', {
6 button: 'Шаблоны',
7 emptyListMsg: '(не определено ни одного шаблона)',
8 insertOption: 'Заменить текущее содержимое',
9 options: 'Параметры шаблона',
10 selectPromptMsg: 'Пожалуйста, выберите, какой шаблон следует открыть в редакторе',
11 title: 'Шаблоны содержимого'
12} );
diff --git a/sources/plugins/templates/lang/si.js b/sources/plugins/templates/lang/si.js
new file mode 100644
index 00000000..be41fdb8
--- /dev/null
+++ b/sources/plugins/templates/lang/si.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'si', {
6 button: 'අච්චුව',
7 emptyListMsg: 'කිසිම අච්චුවක් කලින් තීරණය කර ',
8 insertOption: 'සත්‍ය අන්තර්ගතයන් ප්‍රතිස්ථාපනය කරන්න',
9 options: 'අච්චු ',
10 selectPromptMsg: 'කරුණාකර සංස්කරණය සදහා අච්චුවක් ',
11 title: 'අන්තර්ගත් අච්චුන්'
12} );
diff --git a/sources/plugins/templates/lang/sk.js b/sources/plugins/templates/lang/sk.js
new file mode 100644
index 00000000..e87c16a8
--- /dev/null
+++ b/sources/plugins/templates/lang/sk.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'sk', {
6 button: 'Šablóny',
7 emptyListMsg: '(Žiadne šablóny nedefinované)',
8 insertOption: 'Nahradiť aktuálny obsah',
9 options: 'Možnosti šablóny',
10 selectPromptMsg: 'Prosím vyberte šablónu na otvorenie v editore',
11 title: 'Šablóny obsahu'
12} );
diff --git a/sources/plugins/templates/lang/sl.js b/sources/plugins/templates/lang/sl.js
new file mode 100644
index 00000000..e8bca32e
--- /dev/null
+++ b/sources/plugins/templates/lang/sl.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'sl', {
6 button: 'Predloge',
7 emptyListMsg: '(Ni pripravljenih predlog)',
8 insertOption: 'Zamenjaj trenutno vsebino',
9 options: 'Možnosti Predloge',
10 selectPromptMsg: 'Izberite predlogo, ki jo želite odpreti v urejevalniku<br>(trenutna vsebina bo izgubljena):',
11 title: 'Vsebinske predloge'
12} );
diff --git a/sources/plugins/templates/lang/sq.js b/sources/plugins/templates/lang/sq.js
new file mode 100644
index 00000000..d724e366
--- /dev/null
+++ b/sources/plugins/templates/lang/sq.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'sq', {
6 button: 'Shabllonet',
7 emptyListMsg: '(Asnjë shabllon nuk është paradefinuar)',
8 insertOption: 'Zëvendëso përmbajtjen aktuale',
9 options: 'Opsionet e Shabllonit',
10 selectPromptMsg: 'Përzgjidhni shabllonin për të hapur tek redaktuesi',
11 title: 'Përmbajtja e Shabllonit'
12} );
diff --git a/sources/plugins/templates/lang/sr-latn.js b/sources/plugins/templates/lang/sr-latn.js
new file mode 100644
index 00000000..3b221d73
--- /dev/null
+++ b/sources/plugins/templates/lang/sr-latn.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'sr-latn', {
6 button: 'Obrasci',
7 emptyListMsg: '(Nema definisanih obrazaca)',
8 insertOption: 'Replace actual contents', // MISSING
9 options: 'Template Options', // MISSING
10 selectPromptMsg: 'Molimo Vas da odaberete obrazac koji ce biti primenjen na stranicu (trenutni sadržaj ce biti obrisan):',
11 title: 'Obrasci za sadržaj'
12} );
diff --git a/sources/plugins/templates/lang/sr.js b/sources/plugins/templates/lang/sr.js
new file mode 100644
index 00000000..4ff9a057
--- /dev/null
+++ b/sources/plugins/templates/lang/sr.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'sr', {
6 button: 'Обрасци',
7 emptyListMsg: '(Нема дефинисаних образаца)',
8 insertOption: 'Replace actual contents', // MISSING
9 options: 'Template Options', // MISSING
10 selectPromptMsg: 'Молимо Вас да одаберете образац који ће бити примењен на страницу (тренутни садржај ће бити обрисан):',
11 title: 'Обрасци за садржај'
12} );
diff --git a/sources/plugins/templates/lang/sv.js b/sources/plugins/templates/lang/sv.js
new file mode 100644
index 00000000..07e9300a
--- /dev/null
+++ b/sources/plugins/templates/lang/sv.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'sv', {
6 button: 'Sidmallar',
7 emptyListMsg: '(Ingen mall är vald)',
8 insertOption: 'Ersätt aktuellt innehåll',
9 options: 'Inställningar för mall',
10 selectPromptMsg: 'Var god välj en mall att använda med editorn<br>(allt nuvarande innehåll raderas):',
11 title: 'Sidmallar'
12} );
diff --git a/sources/plugins/templates/lang/th.js b/sources/plugins/templates/lang/th.js
new file mode 100644
index 00000000..2fabf998
--- /dev/null
+++ b/sources/plugins/templates/lang/th.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'th', {
6 button: 'เทมเพลต',
7 emptyListMsg: '(ยังไม่มีการกำหนดเทมเพลต)',
8 insertOption: 'แทนที่เนื้อหาเว็บไซต์ที่เลือก',
9 options: 'ตัวเลือกเกี่ยวกับเทมเพลท',
10 selectPromptMsg: 'กรุณาเลือก เทมเพลต เพื่อนำไปแก้ไขในอีดิตเตอร์<br />(เนื้อหาส่วนนี้จะหายไป):',
11 title: 'เทมเพลตของส่วนเนื้อหาเว็บไซต์'
12} );
diff --git a/sources/plugins/templates/lang/tr.js b/sources/plugins/templates/lang/tr.js
new file mode 100644
index 00000000..a2963bc8
--- /dev/null
+++ b/sources/plugins/templates/lang/tr.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'tr', {
6 button: 'Şablonlar',
7 emptyListMsg: '(Belirli bir şablon seçilmedi)',
8 insertOption: 'Mevcut içerik ile değiştir',
9 options: 'Şablon Seçenekleri',
10 selectPromptMsg: 'Düzenleyicide açmak için lütfen bir şablon seçin.<br>(hali hazırdaki içerik kaybolacaktır.):',
11 title: 'İçerik Şablonları'
12} );
diff --git a/sources/plugins/templates/lang/tt.js b/sources/plugins/templates/lang/tt.js
new file mode 100644
index 00000000..d1745c29
--- /dev/null
+++ b/sources/plugins/templates/lang/tt.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'tt', {
6 button: 'Шаблоннар',
7 emptyListMsg: '(Шаблоннар билгеләнмәгән)',
8 insertOption: 'Әлеге эчтәлекне алмаштыру',
9 options: 'Шаблон үзлекләре',
10 selectPromptMsg: 'Please select the template to open in the editor', // MISSING
11 title: 'Эчтәлек шаблоннары'
12} );
diff --git a/sources/plugins/templates/lang/ug.js b/sources/plugins/templates/lang/ug.js
new file mode 100644
index 00000000..ee883b75
--- /dev/null
+++ b/sources/plugins/templates/lang/ug.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'ug', {
6 button: 'قېلىپ',
7 emptyListMsg: '(قېلىپ يوق)',
8 insertOption: 'نۆۋەتتىكى مەزمۇننى ئالماشتۇر',
9 options: 'قېلىپ تاللانمىسى',
10 selectPromptMsg: 'تەھرىرلىگۈچنىڭ مەزمۇن قېلىپىنى تاللاڭ:',
11 title: 'مەزمۇن قېلىپى'
12} );
diff --git a/sources/plugins/templates/lang/uk.js b/sources/plugins/templates/lang/uk.js
new file mode 100644
index 00000000..031930b5
--- /dev/null
+++ b/sources/plugins/templates/lang/uk.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'uk', {
6 button: 'Шаблони',
7 emptyListMsg: '(Не знайдено жодного шаблону)',
8 insertOption: 'Замінити поточний вміст',
9 options: 'Опції шаблону',
10 selectPromptMsg: 'Оберіть, будь ласка, шаблон для відкриття в редакторі<br>(поточний зміст буде втрачено):',
11 title: 'Шаблони змісту'
12} );
diff --git a/sources/plugins/templates/lang/vi.js b/sources/plugins/templates/lang/vi.js
new file mode 100644
index 00000000..ae701b98
--- /dev/null
+++ b/sources/plugins/templates/lang/vi.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'vi', {
6 button: 'Mẫu dựng sẵn',
7 emptyListMsg: '(Không có mẫu dựng sẵn nào được định nghĩa)',
8 insertOption: 'Thay thế nội dung hiện tại',
9 options: 'Tùy chọn mẫu dựng sẵn',
10 selectPromptMsg: 'Hãy chọn mẫu dựng sẵn để mở trong trình biên tập<br>(nội dung hiện tại sẽ bị mất):',
11 title: 'Nội dung Mẫu dựng sẵn'
12} );
diff --git a/sources/plugins/templates/lang/zh-cn.js b/sources/plugins/templates/lang/zh-cn.js
new file mode 100644
index 00000000..e432b7c2
--- /dev/null
+++ b/sources/plugins/templates/lang/zh-cn.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'zh-cn', {
6 button: '模板',
7 emptyListMsg: '(没有模板)',
8 insertOption: '替换当前内容',
9 options: '模板选项',
10 selectPromptMsg: '请选择要在编辑器中使用的模板:',
11 title: '内容模板'
12} );
diff --git a/sources/plugins/templates/lang/zh.js b/sources/plugins/templates/lang/zh.js
new file mode 100644
index 00000000..9e822ae1
--- /dev/null
+++ b/sources/plugins/templates/lang/zh.js
@@ -0,0 +1,12 @@
1/*
2Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5CKEDITOR.plugins.setLang( 'templates', 'zh', {
6 button: '範本',
7 emptyListMsg: '(尚未定義任何範本)',
8 insertOption: '替代實際內容',
9 options: '範本選項',
10 selectPromptMsg: '請選擇要在編輯器中開啟的範本。',
11 title: '內容範本'
12} );
diff --git a/sources/plugins/templates/plugin.js b/sources/plugins/templates/plugin.js
new file mode 100644
index 00000000..11447308
--- /dev/null
+++ b/sources/plugins/templates/plugin.js
@@ -0,0 +1,93 @@
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 CKEDITOR.plugins.add( 'templates', {
8 requires: 'dialog',
9 // jscs:disable maximumLineLength
10 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%
11 // jscs:enable maximumLineLength
12 icons: 'templates,templates-rtl', // %REMOVE_LINE_CORE%
13 hidpi: true, // %REMOVE_LINE_CORE%
14 init: function( editor ) {
15 CKEDITOR.dialog.add( 'templates', CKEDITOR.getUrl( this.path + 'dialogs/templates.js' ) );
16
17 editor.addCommand( 'templates', new CKEDITOR.dialogCommand( 'templates' ) );
18
19 editor.ui.addButton && editor.ui.addButton( 'Templates', {
20 label: editor.lang.templates.button,
21 command: 'templates',
22 toolbar: 'doctools,10'
23 } );
24 }
25 } );
26
27 var templates = {},
28 loadedTemplatesFiles = {};
29
30 CKEDITOR.addTemplates = function( name, definition ) {
31 templates[ name ] = definition;
32 };
33
34 CKEDITOR.getTemplates = function( name ) {
35 return templates[ name ];
36 };
37
38 CKEDITOR.loadTemplates = function( templateFiles, callback ) {
39 // Holds the templates files to be loaded.
40 var toLoad = [];
41
42 // Look for pending template files to get loaded.
43 for ( var i = 0, count = templateFiles.length; i < count; i++ ) {
44 if ( !loadedTemplatesFiles[ templateFiles[ i ] ] ) {
45 toLoad.push( templateFiles[ i ] );
46 loadedTemplatesFiles[ templateFiles[ i ] ] = 1;
47 }
48 }
49
50 if ( toLoad.length )
51 CKEDITOR.scriptLoader.load( toLoad, callback );
52 else
53 setTimeout( callback, 0 );
54 };
55} )();
56
57
58
59/**
60 * The templates definition set to use. It accepts a list of names separated by
61 * comma. It must match definitions loaded with the {@link #templates_files} setting.
62 *
63 * config.templates = 'my_templates';
64 *
65 * @cfg {String} [templates='default']
66 * @member CKEDITOR.config
67 */
68
69/**
70 * The list of templates definition files to load.
71 *
72 * config.templates_files = [
73 * '/editor_templates/site_default.js',
74 * 'http://www.example.com/user_templates.js
75 * ];
76 *
77 * @cfg
78 * @member CKEDITOR.config
79 */
80CKEDITOR.config.templates_files = [
81 CKEDITOR.getUrl( 'plugins/templates/templates/default.js' )
82];
83
84/**
85 * Whether the "Replace actual contents" checkbox is checked by default in the
86 * Templates dialog.
87 *
88 * config.templates_replaceContent = false;
89 *
90 * @cfg
91 * @member CKEDITOR.config
92 */
93CKEDITOR.config.templates_replaceContent = true;
diff --git a/sources/plugins/templates/templates/default.js b/sources/plugins/templates/templates/default.js
new file mode 100644
index 00000000..a8edaec0
--- /dev/null
+++ b/sources/plugins/templates/templates/default.js
@@ -0,0 +1,87 @@
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// Register a templates definition set named "default".
7CKEDITOR.addTemplates( 'default', {
8 // The name of sub folder which hold the shortcut preview images of the
9 // templates.
10 imagesPath: CKEDITOR.getUrl( CKEDITOR.plugins.getPath( 'templates' ) + 'templates/images/' ),
11
12 // The templates definitions.
13 templates: [ {
14 title: 'Image and Title',
15 image: 'template1.gif',
16 description: 'One main image with a title and text that surround the image.',
17 html: '<h3>' +
18 // Use src=" " so image is not filtered out by the editor as incorrect (src is required).
19 '<img src=" " alt="" style="margin-right: 10px" height="100" width="100" align="left" />' +
20 'Type the title here' +
21 '</h3>' +
22 '<p>' +
23 'Type the text here' +
24 '</p>'
25 },
26 {
27 title: 'Strange Template',
28 image: 'template2.gif',
29 description: 'A template that defines two colums, each one with a title, and some text.',
30 html: '<table cellspacing="0" cellpadding="0" style="width:100%" border="0">' +
31 '<tr>' +
32 '<td style="width:50%">' +
33 '<h3>Title 1</h3>' +
34 '</td>' +
35 '<td></td>' +
36 '<td style="width:50%">' +
37 '<h3>Title 2</h3>' +
38 '</td>' +
39 '</tr>' +
40 '<tr>' +
41 '<td>' +
42 'Text 1' +
43 '</td>' +
44 '<td></td>' +
45 '<td>' +
46 'Text 2' +
47 '</td>' +
48 '</tr>' +
49 '</table>' +
50 '<p>' +
51 'More text goes here.' +
52 '</p>'
53 },
54 {
55 title: 'Text and Table',
56 image: 'template3.gif',
57 description: 'A title with some text and a table.',
58 html: '<div style="width: 80%">' +
59 '<h3>' +
60 'Title goes here' +
61 '</h3>' +
62 '<table style="width:150px;float: right" cellspacing="0" cellpadding="0" border="1">' +
63 '<caption style="border:solid 1px black">' +
64 '<strong>Table title</strong>' +
65 '</caption>' +
66 '<tr>' +
67 '<td>&nbsp;</td>' +
68 '<td>&nbsp;</td>' +
69 '<td>&nbsp;</td>' +
70 '</tr>' +
71 '<tr>' +
72 '<td>&nbsp;</td>' +
73 '<td>&nbsp;</td>' +
74 '<td>&nbsp;</td>' +
75 '</tr>' +
76 '<tr>' +
77 '<td>&nbsp;</td>' +
78 '<td>&nbsp;</td>' +
79 '<td>&nbsp;</td>' +
80 '</tr>' +
81 '</table>' +
82 '<p>' +
83 'Type the text here' +
84 '</p>' +
85 '</div>'
86 } ]
87} );
diff --git a/sources/plugins/templates/templates/images/template1.gif b/sources/plugins/templates/templates/images/template1.gif
new file mode 100644
index 00000000..efdabbeb
--- /dev/null
+++ b/sources/plugins/templates/templates/images/template1.gif
Binary files differ
diff --git a/sources/plugins/templates/templates/images/template2.gif b/sources/plugins/templates/templates/images/template2.gif
new file mode 100644
index 00000000..d1cebb3a
--- /dev/null
+++ b/sources/plugins/templates/templates/images/template2.gif
Binary files differ
diff --git a/sources/plugins/templates/templates/images/template3.gif b/sources/plugins/templates/templates/images/template3.gif
new file mode 100644
index 00000000..db41cb4f
--- /dev/null
+++ b/sources/plugins/templates/templates/images/template3.gif
Binary files differ