add scayt plugin

1.10.x
jmontoyaa 9 years ago
parent c99331107f
commit d5bbae8406
  1. 25
      app/Resources/public/assets/ckeditor/plugins/scayt/README.md
  2. 592
      app/Resources/public/assets/ckeditor/plugins/scayt/dialogs/options.js
  3. BIN
      app/Resources/public/assets/ckeditor/plugins/scayt/icons/hidpi/scayt.png
  4. BIN
      app/Resources/public/assets/ckeditor/plugins/scayt/icons/scayt.png
  5. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/af.js
  6. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/ar.js
  7. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/bg.js
  8. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/bn.js
  9. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/bs.js
  10. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/ca.js
  11. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/cs.js
  12. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/cy.js
  13. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/da.js
  14. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/de.js
  15. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/el.js
  16. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/en-au.js
  17. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/en-ca.js
  18. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/en-gb.js
  19. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/en.js
  20. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/eo.js
  21. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/es.js
  22. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/et.js
  23. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/eu.js
  24. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/fa.js
  25. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/fi.js
  26. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/fo.js
  27. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/fr-ca.js
  28. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/fr.js
  29. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/gl.js
  30. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/gu.js
  31. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/he.js
  32. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/hi.js
  33. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/hr.js
  34. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/hu.js
  35. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/is.js
  36. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/it.js
  37. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/ja.js
  38. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/ka.js
  39. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/km.js
  40. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/ko.js
  41. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/ku.js
  42. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/lt.js
  43. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/lv.js
  44. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/mk.js
  45. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/mn.js
  46. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/ms.js
  47. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/nb.js
  48. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/nl.js
  49. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/no.js
  50. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/pl.js
  51. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/pt-br.js
  52. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/pt.js
  53. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/ro.js
  54. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/ru.js
  55. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/sk.js
  56. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/sl.js
  57. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/sr-latn.js
  58. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/sr.js
  59. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/sv.js
  60. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/th.js
  61. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/tr.js
  62. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/ug.js
  63. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/uk.js
  64. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/vi.js
  65. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/zh-cn.js
  66. 13
      app/Resources/public/assets/ckeditor/plugins/scayt/lang/zh.js
  67. 1877
      app/Resources/public/assets/ckeditor/plugins/scayt/plugin.js

@ -0,0 +1,25 @@
CKEditor SCAYT Plugin
=====================
This plugin brings Spell Check As You Type (SCAYT) into up to CKEditor 4+.
SCAYT is a "installation-less", using the web-services of [WebSpellChecker.net](http://www.webspellchecker.net/). It's an out of the box solution.
Installation
------------
1. Clone/copy this repository contents in a new "plugins/scayt" folder in your CKEditor installation.
2. Enable the "scayt" plugin in the CKEditor configuration file (config.js):
config.extraPlugins = 'scayt';
That's all. SCAYT will appear on the editor toolbar and will be ready to use.
License
-------
Licensed under the terms of any of the following licenses at your choice: [GPL](http://www.gnu.org/licenses/gpl.html), [LGPL](http://www.gnu.org/licenses/lgpl.html) and [MPL](http://www.mozilla.org/MPL/MPL-1.1.html).
See LICENSE.md for more information.
Developed in cooperation with [WebSpellChecker.net](http://www.webspellchecker.net/).

@ -1,19 +1,573 @@
CKEDITOR.dialog.add("scaytDialog",function(c){var f=c.scayt,q='\x3cp\x3e\x3cimg src\x3d"'+f.getLogo()+'" /\x3e\x3c/p\x3e\x3cp\x3e'+f.getLocal("version")+f.getVersion()+"\x3c/p\x3e\x3cp\x3e"+f.getLocal("text_copyrights")+"\x3c/p\x3e",r=CKEDITOR.document,n={isChanged:function(){return null===this.newLang||this.currentLang===this.newLang?!1:!0},currentLang:f.getLang(),newLang:null,reset:function(){this.currentLang=f.getLang();this.newLang=null},id:"lang"},q=[{id:"options",label:f.getLocal("tab_options"), /*
onShow:function(){},elements:[{type:"vbox",id:"scaytOptions",children:function(){var a=f.getApplicationConfig(),b=[],g={"ignore-all-caps-words":"label_allCaps","ignore-domain-names":"label_ignoreDomainNames","ignore-words-with-mixed-cases":"label_mixedCase","ignore-words-with-numbers":"label_mixedWithDigits"},e;for(e in a)a={type:"checkbox"},a.id=e,a.label=f.getLocal(g[e]),b.push(a);return b}(),onShow:function(){this.getChild();for(var a=c.scayt,b=0;b<this.getChild().length;b++)this.getChild()[b].setValue(a.getApplicationConfig()[this.getChild()[b].id])}}]}, Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
{id:"langs",label:f.getLocal("tab_languages"),elements:[{id:"leftLangColumn",type:"vbox",align:"left",widths:["100"],children:[{type:"html",id:"langBox",style:"overflow: hidden; white-space: normal;margin-bottom:15px;",html:'\x3cdiv\x3e\x3cdiv style\x3d"float:left;width:45%;margin-left:5px;" id\x3d"left-col-'+c.name+'"\x3e\x3c/div\x3e\x3cdiv style\x3d"float:left;width:45%;margin-left:15px;" id\x3d"right-col-'+c.name+'"\x3e\x3c/div\x3e\x3c/div\x3e',onShow:function(){var a=c.scayt.getLang();r.getById("scaytLang_"+ For licensing, see LICENSE.html or http://ckeditor.com/license
c.name+"_"+a).$.checked=!0}},{type:"html",id:"graytLanguagesHint",html:'\x3cdiv style\x3d"margin:5px auto; width:95%;white-space:normal;" id\x3d"'+c.name+'graytLanguagesHint"\x3e\x3cspan style\x3d"width:10px;height:10px;display: inline-block; background:#02b620;vertical-align:top;margin-top:2px;"\x3e\x3c/span\x3e - This languages are supported by Grammar As You Type(GRAYT).\x3c/div\x3e',onShow:function(){var a=r.getById(c.name+"graytLanguagesHint");c.config.grayt_autoStartup||(a.$.style.display="none")}}]}]}, */
{id:"dictionaries",label:f.getLocal("tab_dictionaries"),elements:[{type:"vbox",id:"rightCol_col__left",children:[{type:"html",id:"dictionaryNote",html:""},{type:"text",id:"dictionaryName",label:f.getLocal("label_fieldNameDic")||"Dictionary name",onShow:function(a){var b=a.sender,g=c.scayt;setTimeout(function(){b.getContentElement("dictionaries","dictionaryNote").getElement().setText("");null!=g.getUserDictionaryName()&&""!=g.getUserDictionaryName()&&b.getContentElement("dictionaries","dictionaryName").setValue(g.getUserDictionaryName())},
0)}},{type:"hbox",id:"notExistDic",align:"left",style:"width:auto;",widths:["50%","50%"],children:[{type:"button",id:"createDic",label:f.getLocal("btn_createDic"),title:f.getLocal("btn_createDic"),onClick:function(){var a=this.getDialog(),b=p,g=c.scayt,e=a.getContentElement("dictionaries","dictionaryName").getValue();g.createUserDictionary(e,function(d){d.error||b.toggleDictionaryButtons.call(a,!0);d.dialog=a;d.command="create";d.name=e;c.fire("scaytUserDictionaryAction",d)},function(d){d.dialog= CKEDITOR.dialog.add( 'scaytDialog', function( editor ) {
a;d.command="create";d.name=e;c.fire("scaytUserDictionaryActionError",d)})}},{type:"button",id:"restoreDic",label:f.getLocal("btn_restoreDic"),title:f.getLocal("btn_restoreDic"),onClick:function(){var a=this.getDialog(),b=c.scayt,g=p,e=a.getContentElement("dictionaries","dictionaryName").getValue();b.restoreUserDictionary(e,function(d){d.dialog=a;d.error||g.toggleDictionaryButtons.call(a,!0);d.command="restore";d.name=e;c.fire("scaytUserDictionaryAction",d)},function(d){d.dialog=a;d.command="restore"; var scayt_instance = editor.scayt;
d.name=e;c.fire("scaytUserDictionaryActionError",d)})}}]},{type:"hbox",id:"existDic",align:"left",style:"width:auto;",widths:["50%","50%"],children:[{type:"button",id:"removeDic",label:f.getLocal("btn_deleteDic"),title:f.getLocal("btn_deleteDic"),onClick:function(){var a=this.getDialog(),b=c.scayt,g=p,e=a.getContentElement("dictionaries","dictionaryName"),d=e.getValue();b.removeUserDictionary(d,function(b){e.setValue("");b.error||g.toggleDictionaryButtons.call(a,!1);b.dialog=a;b.command="remove";
b.name=d;c.fire("scaytUserDictionaryAction",b)},function(b){b.dialog=a;b.command="remove";b.name=d;c.fire("scaytUserDictionaryActionError",b)})}},{type:"button",id:"renameDic",label:f.getLocal("btn_renameDic"),title:f.getLocal("btn_renameDic"),onClick:function(){var a=this.getDialog(),b=c.scayt,g=a.getContentElement("dictionaries","dictionaryName").getValue();b.renameUserDictionary(g,function(b){b.dialog=a;b.command="rename";b.name=g;c.fire("scaytUserDictionaryAction",b)},function(b){b.dialog=a;b.command= var aboutTabDefinition = '<p><img src="' + scayt_instance.getLogo() + '" /></p>' +
"rename";b.name=g;c.fire("scaytUserDictionaryActionError",b)})}}]},{type:"html",id:"dicInfo",html:'\x3cdiv id\x3d"dic_info_editor1" style\x3d"margin:5px auto; width:95%;white-space:normal;"\x3e'+f.getLocal("text_descriptionDic")+"\x3c/div\x3e"}]}]},{id:"about",label:f.getLocal("tab_about"),elements:[{type:"html",id:"about",style:"margin: 5px 5px;",html:'\x3cdiv\x3e\x3cdiv id\x3d"scayt_about_"\x3e'+q+"\x3c/div\x3e\x3c/div\x3e"}]}];c.on("scaytUserDictionaryAction",function(a){var b=SCAYT.prototype.UILib, '<p>' + scayt_instance.getLocal('version') + scayt_instance.getVersion() + '</p>' +
g=a.data.dialog,e=g.getContentElement("dictionaries","dictionaryNote").getElement(),d=a.editor.scayt,c;void 0===a.data.error?(c=d.getLocal("message_success_"+a.data.command+"Dic"),c=c.replace("%s",a.data.name),e.setText(c),b.css(e.$,{color:"blue"})):(""===a.data.name?e.setText(d.getLocal("message_info_emptyDic")):(c=d.getLocal("message_error_"+a.data.command+"Dic"),c=c.replace("%s",a.data.name),e.setText(c)),b.css(e.$,{color:"red"}),null!=d.getUserDictionaryName()&&""!=d.getUserDictionaryName()?g.getContentElement("dictionaries", '<p>' + scayt_instance.getLocal('text_copyrights') + '</p>';
"dictionaryName").setValue(d.getUserDictionaryName()):g.getContentElement("dictionaries","dictionaryName").setValue(""))});c.on("scaytUserDictionaryActionError",function(a){var b=SCAYT.prototype.UILib,c=a.data.dialog,e=c.getContentElement("dictionaries","dictionaryNote").getElement(),d=a.editor.scayt,f;""===a.data.name?e.setText(d.getLocal("message_info_emptyDic")):(f=d.getLocal("message_error_"+a.data.command+"Dic"),f=f.replace("%s",a.data.name),e.setText(f));b.css(e.$,{color:"red"});null!=d.getUserDictionaryName()&&
""!=d.getUserDictionaryName()?c.getContentElement("dictionaries","dictionaryName").setValue(d.getUserDictionaryName()):c.getContentElement("dictionaries","dictionaryName").setValue("")});var p={title:f.getLocal("text_title"),resizable:CKEDITOR.DIALOG_RESIZE_BOTH,minWidth:340,minHeight:260,onLoad:function(){if(0!=c.config.scayt_uiTabs[1]){var a=p,b=a.getLangBoxes.call(this);b.getParent().setStyle("white-space","normal");a.renderLangList(b);this.definition.minWidth=this.getSize().width;this.resize(this.definition.minWidth, var doc = CKEDITOR.document;
this.definition.minHeight)}},onCancel:function(){n.reset()},onHide:function(){c.unlockSelection()},onShow:function(){c.fire("scaytDialogShown",this);if(0!=c.config.scayt_uiTabs[2]){var a=c.scayt,b=this.getContentElement("dictionaries","dictionaryName"),g=this.getContentElement("dictionaries","existDic").getElement().getParent(),e=this.getContentElement("dictionaries","notExistDic").getElement().getParent();g.hide();e.hide();null!=a.getUserDictionaryName()&&""!=a.getUserDictionaryName()?(this.getContentElement("dictionaries",
"dictionaryName").setValue(a.getUserDictionaryName()),g.show()):(b.setValue(""),e.show())}},onOk:function(){var a=p,b=c.scayt;this.getContentElement("options","scaytOptions");a=a.getChangedOption.call(this);b.commitOption({changedOptions:a})},toggleDictionaryButtons:function(a){var b=this.getContentElement("dictionaries","existDic").getElement().getParent(),c=this.getContentElement("dictionaries","notExistDic").getElement().getParent();a?(b.show(),c.hide()):(b.hide(),c.show())},getChangedOption:function(){var a= var optionGenerator = function() {
{};if(1==c.config.scayt_uiTabs[0])for(var b=this.getContentElement("options","scaytOptions").getChild(),g=0;g<b.length;g++)b[g].isChanged()&&(a[b[g].id]=b[g].getValue());n.isChanged()&&(a[n.id]=c.config.scayt_sLang=n.currentLang=n.newLang);return a},buildRadioInputs:function(a,b,g){var e=new CKEDITOR.dom.element("div"),d="scaytLang_"+c.name+"_"+b,f=CKEDITOR.dom.element.createFromHtml('\x3cinput id\x3d"'+d+'" type\x3d"radio" value\x3d"'+b+'" name\x3d"scayt_lang" /\x3e'),m=new CKEDITOR.dom.element("label"), var scayt_instance_ = editor.scayt,
k=c.scayt;e.setStyles({"white-space":"normal",position:"relative","padding-bottom":"2px"});f.on("click",function(a){n.newLang=a.sender.getValue()});m.appendText(a);m.setAttribute("for",d);g&&c.config.grayt_autoStartup&&m.setStyles({color:"#02b620"});e.append(f);e.append(m);b===k.getLang()&&(f.setAttribute("checked",!0),f.setAttribute("defaultChecked","defaultChecked"));return e},renderLangList:function(a){var b=a.find("#left-col-"+c.name).getItem(0);a=a.find("#right-col-"+c.name).getItem(0);var g= applicationConfig = scayt_instance.getApplicationConfig(),
f.getScaytLangList(),e=f.getGraytLangList(),d={},l=[],m=0,k=!1,h;for(h in g.ltr)d[h]=g.ltr[h];for(h in g.rtl)d[h]=g.rtl[h];for(h in d)l.push([h,d[h]]);l.sort(function(a,b){var c=0;a[1]>b[1]?c=1:a[1]<b[1]&&(c=-1);return c});d={};for(k=0;k<l.length;k++)d[l[k][0]]=l[k][1];l=Math.round(l.length/2);for(h in d)m++,k=h in e.ltr||h in e.rtl,this.buildRadioInputs(d[h],h,k).appendTo(m<=l?b:a)},getLangBoxes:function(){return this.getContentElement("langs","langBox").getElement()},contents:function(a,b){var c= optionArrayUiCheckboxes = [],
[],e=b.config.scayt_uiTabs;if(e){for(var d in e)1==e[d]&&c.push(a[d]);c.push(a[a.length-1])}else return a;return c}(q,c)};return p}); optionLocalizationList = {
"ignore-all-caps-words" : "label_allCaps",
"ignore-domain-names" : "label_ignoreDomainNames",
"ignore-words-with-mixed-cases" : "label_mixedCase",
"ignore-words-with-numbers" : "label_mixedWithDigits"
};
for(var option in applicationConfig) {
var checkboxConfig = {
type: "checkbox"
};
checkboxConfig.id = option;
checkboxConfig.label = scayt_instance.getLocal(optionLocalizationList[option]);
optionArrayUiCheckboxes.push(checkboxConfig);
}
return optionArrayUiCheckboxes;
};
var languageModelState = {
isChanged : function() {
return (this.newLang === null || this.currentLang === this.newLang) ? false : true;
},
currentLang: scayt_instance.getLang(),
newLang: null,
reset: function() {
this.currentLang = scayt_instance.getLang();
this.newLang = null;
},
id: 'lang'
};
var generateDialogTabs = function(tabsList, editor) {
var tabs = [],
uiTabs = editor.config.scayt_uiTabs;
if(!uiTabs) {
return tabsList;
} else {
for(var i in uiTabs) {
(uiTabs[i] == 1) && tabs.push(tabsList[i]);
}
tabs.push(tabsList[tabsList.length - 1]);
}
return tabs;
};
var dialogTabs = [{
id : 'options',
label : scayt_instance.getLocal('tab_options'),
onShow: function() {
// console.log("tab show");
},
elements : [
{
type: 'vbox',
id: 'scaytOptions',
children: optionGenerator(),
onShow: function() {
var optionsTab = this.getChild(),
scayt_instance = editor.scayt;
for(var i = 0; i < this.getChild().length; i++) {
this.getChild()[i].setValue(scayt_instance.getApplicationConfig()[this.getChild()[i].id]);
}
}
}
]
},
{
id : 'langs',
label : scayt_instance.getLocal('tab_languages'),
elements : [
{
id: "leftLangColumn",
type: 'vbox',
align: 'left',
widths: ['100'],
children: [
{
type: 'html',
id: 'langBox',
style: 'overflow: hidden; white-space: normal;margin-bottom:15px;',
html: '<div><div style="float:left;width:45%;margin-left:5px;" id="left-col-' + editor.name + '"></div><div style="float:left;width:45%;margin-left:15px;" id="right-col-' + editor.name + '"></div></div>',
onShow: function() {
var scayt_instance = editor.scayt;
var lang = scayt_instance.getLang(),
prefix_id = "scaytLang_",
radio = doc.getById(prefix_id + editor.name + '_' + lang);
radio.$.checked = true;
}
},
{
type: 'html',
id: 'graytLanguagesHint',
html: '<div style="margin:5px auto; width:95%;white-space:normal;" id="' + editor.name + 'graytLanguagesHint"><span style="width:10px;height:10px;display: inline-block; background:#02b620;vertical-align:top;margin-top:2px;"></span> - This languages are supported by Grammar As You Type(GRAYT).</div>',
onShow: function() {
var graytLanguagesHint = doc.getById(editor.name + 'graytLanguagesHint');
if (!editor.config.grayt_autoStartup) {
graytLanguagesHint.$.style.display = 'none';
}
}
}
]
}
]
},
{
id : 'dictionaries',
label : scayt_instance.getLocal('tab_dictionaries'),
elements : [
{
type: 'vbox',
id: 'rightCol_col__left',
children: [
{
type: 'html',
id: 'dictionaryNote',
html: ''
},
{
type: 'text',
id: 'dictionaryName',
label: scayt_instance.getLocal('label_fieldNameDic') || 'Dictionary name',
onShow: function(data) {
var dialog = data.sender,
scayt_instance = editor.scayt;
// IE7 specific fix
setTimeout(function() {
// clear dictionaryNote field
dialog.getContentElement("dictionaries", "dictionaryNote").getElement().setText('');
// restore/clear dictionaryName field
if(scayt_instance.getUserDictionaryName() != null && scayt_instance.getUserDictionaryName() != '') {
dialog.getContentElement("dictionaries", "dictionaryName").setValue(scayt_instance.getUserDictionaryName());
}
}, 0);
}
},
{
type: 'hbox',
id: 'notExistDic',
align: 'left',
style: 'width:auto;',
widths: [ '50%', '50%' ],
children: [
{
type: 'button',
id: 'createDic',
label: scayt_instance.getLocal('btn_createDic'),
title: scayt_instance.getLocal('btn_createDic'),
onClick: function() {
var dialog = this.getDialog(),
self = dialogDefinition,
scayt_instance = editor.scayt,
name = dialog.getContentElement("dictionaries", "dictionaryName").getValue();
scayt_instance.createUserDictionary(name, function(response) {
if(!response.error) {
self.toggleDictionaryButtons.call(dialog, true);
}
response.dialog = dialog;
response.command = "create";
response.name = name;
editor.fire("scaytUserDictionaryAction", response);
}, function(error) {
error.dialog = dialog;
error.command = "create";
error.name = name;
editor.fire("scaytUserDictionaryActionError", error);
});
}
},
{
type: 'button',
id: 'restoreDic',
label: scayt_instance.getLocal('btn_restoreDic'),
title: scayt_instance.getLocal('btn_restoreDic'),
onClick: function() {
var dialog = this.getDialog(),
scayt_instance = editor.scayt,
self = dialogDefinition,
name = dialog.getContentElement("dictionaries", "dictionaryName").getValue();
scayt_instance.restoreUserDictionary(name, function(response) {
response.dialog = dialog;
if(!response.error) {
self.toggleDictionaryButtons.call(dialog, true);
}
response.command = "restore";
response.name = name;
editor.fire("scaytUserDictionaryAction", response);
}, function(error) {
error.dialog = dialog;
error.command = "restore";
error.name = name;
editor.fire("scaytUserDictionaryActionError", error);
});
}
}
]
},
{
type: 'hbox',
id: 'existDic',
align: 'left',
style: 'width:auto;',
widths: [ '50%', '50%' ],
children: [
{
type: 'button',
id: 'removeDic',
label: scayt_instance.getLocal('btn_deleteDic'),
title: scayt_instance.getLocal('btn_deleteDic'),
onClick: function() {
var dialog = this.getDialog(),
scayt_instance = editor.scayt,
self = dialogDefinition,
dictionaryNameField = dialog.getContentElement("dictionaries", "dictionaryName"),
name = dictionaryNameField.getValue();
scayt_instance.removeUserDictionary(name, function(response) {
dictionaryNameField.setValue("");
if(!response.error) {
self.toggleDictionaryButtons.call(dialog, false);
}
response.dialog = dialog;
response.command = "remove";
response.name = name;
editor.fire("scaytUserDictionaryAction", response);
}, function(error) {
error.dialog = dialog;
error.command = "remove";
error.name = name;
editor.fire("scaytUserDictionaryActionError", error);
});
}
},
{
type: 'button',
id: 'renameDic',
label: scayt_instance.getLocal('btn_renameDic'),
title: scayt_instance.getLocal('btn_renameDic'),
onClick: function() {
var dialog = this.getDialog(),
scayt_instance = editor.scayt,
name = dialog.getContentElement("dictionaries", "dictionaryName").getValue();
scayt_instance.renameUserDictionary(name, function(response) {
response.dialog = dialog;
response.command = "rename";
response.name = name;
editor.fire("scaytUserDictionaryAction", response);
}, function(error) {
error.dialog = dialog;
error.command = "rename";
error.name = name;
editor.fire("scaytUserDictionaryActionError", error);
});
}
}
]
},
{
type: 'html',
id: 'dicInfo',
html: '<div id="dic_info_editor1" style="margin:5px auto; width:95%;white-space:normal;">' + scayt_instance.getLocal('text_descriptionDic') + '</div>'
}
]
}
]
},
{
id : 'about',
label : scayt_instance.getLocal('tab_about'),
elements : [
{
type : 'html',
id : 'about',
style : 'margin: 5px 5px;',
html : '<div><div id="scayt_about_">' +
aboutTabDefinition +
'</div></div>'
}
]
}];
editor.on("scaytUserDictionaryAction", function(event) {
var UILib = SCAYT.prototype.UILib,
dialog = event.data.dialog,
dictionaryNote = dialog.getContentElement("dictionaries", "dictionaryNote").getElement(),
scayt_instance = event.editor.scayt,
messageTemplate;
if(event.data.error === undefined) {
// success message
messageTemplate = scayt_instance.getLocal("message_success_" + event.data.command + "Dic");
messageTemplate = messageTemplate.replace('%s', event.data.name);
dictionaryNote.setText(messageTemplate);
UILib.css(dictionaryNote.$, {color: 'blue'});
} else {
// error message
if(event.data.name === '') {
// empty dictionary name
dictionaryNote.setText(scayt_instance.getLocal('message_info_emptyDic'));
} else {
messageTemplate = scayt_instance.getLocal("message_error_" + event.data.command + "Dic");
messageTemplate = messageTemplate.replace('%s', event.data.name);
dictionaryNote.setText(messageTemplate);
}
UILib.css(dictionaryNote.$, {color: 'red'});
if(scayt_instance.getUserDictionaryName() != null && scayt_instance.getUserDictionaryName() != '') {
dialog.getContentElement("dictionaries", "dictionaryName").setValue(scayt_instance.getUserDictionaryName());
} else {
dialog.getContentElement("dictionaries", "dictionaryName").setValue("");
}
}
});
editor.on("scaytUserDictionaryActionError", function(event) {
var UILib = SCAYT.prototype.UILib,
dialog = event.data.dialog,
dictionaryNote = dialog.getContentElement("dictionaries", "dictionaryNote").getElement(),
scayt_instance = event.editor.scayt,
messageTemplate;
if(event.data.name === '') {
// empty dictionary name
dictionaryNote.setText(scayt_instance.getLocal('message_info_emptyDic'));
} else {
messageTemplate = scayt_instance.getLocal("message_error_" + event.data.command + "Dic");
messageTemplate = messageTemplate.replace('%s', event.data.name);
dictionaryNote.setText(messageTemplate);
}
UILib.css(dictionaryNote.$, {color: 'red'});
if(scayt_instance.getUserDictionaryName() != null && scayt_instance.getUserDictionaryName() != '') {
dialog.getContentElement("dictionaries", "dictionaryName").setValue(scayt_instance.getUserDictionaryName());
} else {
dialog.getContentElement("dictionaries", "dictionaryName").setValue("");
}
});
var plugin = CKEDITOR.plugins.scayt;
var dialogDefinition = {
title: scayt_instance.getLocal('text_title'),
resizable: CKEDITOR.DIALOG_RESIZE_BOTH,
minWidth: 340,
minHeight: 260,
onLoad: function() {
if(editor.config.scayt_uiTabs[1] == 0) {
return;
}
var dialog = this,
self = dialogDefinition,
langBoxes = self.getLangBoxes.call(dialog);
langBoxes.getParent().setStyle("white-space", "normal");
//dialog.data = editor.fire( 'scaytDialog', {} );
self.renderLangList(langBoxes);
var scayt_instance = editor.scayt;
this.definition.minWidth = this.getSize().width;
this.resize(this.definition.minWidth, this.definition.minHeight);
},
onCancel: function() {
languageModelState.reset();
},
onHide: function() {
editor.unlockSelection();
},
onShow: function() {
editor.fire("scaytDialogShown", this);
if(editor.config.scayt_uiTabs[2] == 0) {
return;
}
var scayt_instance = editor.scayt,
self = dialogDefinition,
dialog = this,
dictionaryNameField = dialog.getContentElement("dictionaries", "dictionaryName"),
existance = dialog.getContentElement("dictionaries", "existDic").getElement().getParent(),
notExistance = dialog.getContentElement("dictionaries", "notExistDic").getElement().getParent();
existance.hide();
notExistance.hide();
if(scayt_instance.getUserDictionaryName() != null && scayt_instance.getUserDictionaryName() != '') {
dialog.getContentElement("dictionaries", "dictionaryName").setValue(scayt_instance.getUserDictionaryName());
existance.show();
} else {
dictionaryNameField.setValue("");
notExistance.show();
}
},
onOk: function() {
var dialog = this,
self = dialogDefinition,
scayt_instance = editor.scayt,
scaytOptions = dialog.getContentElement("options", "scaytOptions"),
changedOptions = self.getChangedOption.call(dialog);
scayt_instance.commitOption({ changedOptions: changedOptions });
},
toggleDictionaryButtons: function(exist) {
var existance = this.getContentElement("dictionaries", "existDic").getElement().getParent(),
notExistance = this.getContentElement("dictionaries", "notExistDic").getElement().getParent();
if(exist) {
existance.show();
notExistance.hide();
} else {
existance.hide();
notExistance.show();
}
},
getChangedOption: function() {
var changedOption = {};
if(editor.config.scayt_uiTabs[0] == 1) {
var dialog = this,
scaytOptions = dialog.getContentElement("options", "scaytOptions").getChild();
for(var i = 0; i < scaytOptions.length; i++) {
if(scaytOptions[i].isChanged()) {
changedOption[scaytOptions[i].id] = scaytOptions[i].getValue();
}
}
}
if(languageModelState.isChanged()) {
changedOption[languageModelState.id] = editor.config.scayt_sLang = languageModelState.currentLang = languageModelState.newLang;
}
return changedOption;
},
buildRadioInputs: function(key, value, isSupportedByGrayt) {
var divContainer = new CKEDITOR.dom.element( 'div' ),
doc = CKEDITOR.document,
id = "scaytLang_" + editor.name + '_' + value,
radio = CKEDITOR.dom.element.createFromHtml( '<input id="' +
id + '" type="radio" ' +
' value="' + value + '" name="scayt_lang" />' ),
radioLabel = new CKEDITOR.dom.element( 'label' ),
scayt_instance = editor.scayt;
divContainer.setStyles({
"white-space": "normal",
'position': 'relative',
'padding-bottom': '2px'
});
radio.on( 'click', function(data) {
languageModelState.newLang = data.sender.getValue();
});
radioLabel.appendText(key);
radioLabel.setAttribute("for", id);
if(isSupportedByGrayt && editor.config.grayt_autoStartup) {
radioLabel.setStyles({
'color': '#02b620'
});
}
divContainer.append(radio);
divContainer.append(radioLabel);
if(value === scayt_instance.getLang()) {
radio.setAttribute("checked", true);
radio.setAttribute('defaultChecked', 'defaultChecked');
}
return divContainer;
},
renderLangList: function(langBoxes) {
var dialog = this,
leftCol = langBoxes.find('#left-col-' + editor.name).getItem(0),
rightCol = langBoxes.find('#right-col-' + editor.name).getItem(0),
scaytLangList = scayt_instance.getScaytLangList(),
graytLangList = scayt_instance.getGraytLangList(),
mergedLangList = {},
sortable = [],
counter = 0,
isSupportedByGrayt = false,
half, lang;
for(lang in scaytLangList.ltr) {
mergedLangList[lang] = scaytLangList.ltr[lang];
}
for(lang in scaytLangList.rtl) {
mergedLangList[lang] = scaytLangList.rtl[lang];
}
// sort alphabetically lang list
for(lang in mergedLangList) {
sortable.push([lang, mergedLangList[lang]]);
}
sortable.sort(function(a, b) {
var result = 0;
if(a[1] > b[1]) {
result = 1;
} else if(a[1] < b[1]) {
result = -1;
}
return result;
});
mergedLangList = {};
for(var i = 0; i < sortable.length; i++) {
mergedLangList[sortable[i][0]] = sortable[i][1];
}
half = Math.round(sortable.length / 2);
for(lang in mergedLangList) {
counter++;
isSupportedByGrayt = (lang in graytLangList.ltr) || (lang in graytLangList.rtl);
dialog.buildRadioInputs(mergedLangList[lang], lang, isSupportedByGrayt).appendTo(counter <= half ? leftCol : rightCol);
}
},
getLangBoxes: function() {
var dialog = this,
langboxes = dialog.getContentElement("langs", "langBox").getElement();
return langboxes;
},
contents: generateDialogTabs(dialogTabs, editor)
};
return dialogDefinition;
});

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'af', {
btn_about: 'SCAYT info',
btn_dictionaries: 'Woordeboeke',
btn_disable: 'SCAYT af',
btn_enable: 'SCAYT aan',
btn_langs:'Tale',
btn_options: 'Opsies',
text_title: 'Speltoets terwyl u tik'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'ar', {
btn_about: 'عن SCAYT',
btn_dictionaries: 'قواميس',
btn_disable: 'تعطيل SCAYT',
btn_enable: 'تفعيل SCAYT',
btn_langs:'لغات',
btn_options: 'خيارات',
text_title: 'تدقيق إملائي أثناء الكتابة'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'bg', {
btn_about: 'About SCAYT',
btn_dictionaries: 'Речници',
btn_disable: 'Disable SCAYT',
btn_enable: 'Enable SCAYT',
btn_langs:'Languages',
btn_options: 'Options',
text_title: 'Spell Check As You Type'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'bn', {
btn_about: 'About SCAYT',
btn_dictionaries: 'Dictionaries',
btn_disable: 'Disable SCAYT',
btn_enable: 'Enable SCAYT',
btn_langs:'Languages',
btn_options: 'Options',
text_title: 'Spell Check As You Type'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'bs', {
btn_about: 'About SCAYT',
btn_dictionaries: 'Dictionaries',
btn_disable: 'Disable SCAYT',
btn_enable: 'Enable SCAYT',
btn_langs:'Languages',
btn_options: 'Options',
text_title: 'Spell Check As You Type'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'ca', {
btn_about: 'Quant a l\'SCAYT',
btn_dictionaries: 'Diccionaris',
btn_disable: 'Deshabilita SCAYT',
btn_enable: 'Habilitat l\'SCAYT',
btn_langs:'Idiomes',
btn_options: 'Opcions',
text_title: 'Spell Check As You Type'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'cs', {
btn_about: 'O aplikaci SCAYT',
btn_dictionaries: 'Slovníky',
btn_disable: 'Vypnout SCAYT',
btn_enable: 'Zapnout SCAYT',
btn_langs:'Jazyky',
btn_options: 'Nastavení',
text_title: 'Kontrola pravopisu během psaní (SCAYT)'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'cy', {
btn_about: 'Ynghylch SCAYT',
btn_dictionaries: 'Geiriaduron',
btn_disable: 'Analluogi SCAYT',
btn_enable: 'Galluogi SCAYT',
btn_langs:'Ieithoedd',
btn_options: 'Opsiynau',
text_title: 'Gwirio\'r Sillafu Wrth Deipio'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'da', {
btn_about: 'Om SCAYT',
btn_dictionaries: 'Ordbøger',
btn_disable: 'Deaktivér SCAYT',
btn_enable: 'Aktivér SCAYT',
btn_langs:'Sprog',
btn_options: 'Indstillinger',
text_title: 'Stavekontrol mens du skriver'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'de', {
btn_about: 'Über SCAYT',
btn_dictionaries: 'Wörterbücher',
btn_disable: 'SCAYT ausschalten',
btn_enable: 'SCAYT einschalten',
btn_langs:'Sprachen',
btn_options: 'Optionen',
text_title: 'Rechtschreibprüfung während der Texteingabe (SCAYT)'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'el', {
btn_about: 'About SCAYT',
btn_dictionaries: 'Λεξικά',
btn_disable: 'Disable SCAYT',
btn_enable: 'Enable SCAYT',
btn_langs:'Γλώσσες',
btn_options: 'Επιλογές',
text_title: 'Spell Check As You Type'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'en-au', {
btn_about: 'About SCAYT',
btn_dictionaries: 'Dictionaries',
btn_disable: 'Disable SCAYT',
btn_enable: 'Enable SCAYT',
btn_langs:'Languages',
btn_options: 'Options',
text_title: 'Spell Check As You Type'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'en-ca', {
btn_about: 'About SCAYT',
btn_dictionaries: 'Dictionaries',
btn_disable: 'Disable SCAYT',
btn_enable: 'Enable SCAYT',
btn_langs:'Languages',
btn_options: 'Options',
text_title: 'Spell Check As You Type'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'en-gb', {
btn_about: 'About SCAYT',
btn_dictionaries: 'Dictionaries',
btn_disable: 'Disable SCAYT',
btn_enable: 'Enable SCAYT',
btn_langs:'Languages',
btn_options: 'Options',
text_title: 'Spell Check As You Type'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'en', {
btn_about: 'About SCAYT',
btn_dictionaries: 'Dictionaries',
btn_disable: 'Disable SCAYT',
btn_enable: 'Enable SCAYT',
btn_langs:'Languages',
btn_options: 'Options',
text_title: 'Spell Check As You Type'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'eo', {
btn_about: 'Pri OKDVT',
btn_dictionaries: 'Vortaroj',
btn_disable: 'Malebligi OKDVT',
btn_enable: 'Ebligi OKDVT',
btn_langs:'Lingvoj',
btn_options: 'Opcioj',
text_title: 'OrtografiKontrolado Dum Vi Tajpas (OKDVT)'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'es', {
btn_about: 'Acerca de Corrector',
btn_dictionaries: 'Diccionarios',
btn_disable: 'Desactivar Corrector',
btn_enable: 'Activar Corrector',
btn_langs:'Idiomas',
btn_options: 'Opciones',
text_title: 'Comprobar Ortografía Mientras Escribe'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'et', {
btn_about: 'SCAYT-ist lähemalt',
btn_dictionaries: 'Sõnaraamatud',
btn_disable: 'SCAYT keelatud',
btn_enable: 'SCAYT lubatud',
btn_langs:'Keeled',
btn_options: 'Valikud',
text_title: 'Õigekirjakontroll kirjutamise ajal'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'eu', {
btn_about: 'SCAYTi buruz',
btn_dictionaries: 'Hiztegiak',
btn_disable: 'Desgaitu SCAYT',
btn_enable: 'Gaitu SCAYT',
btn_langs:'Hizkuntzak',
btn_options: 'Aukerak',
text_title: 'Ortografia Zuzenketa Idatzi Ahala (SCAYT)'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'fa', {
btn_about: 'درباره SCAYT',
btn_dictionaries: 'دیکشنریها',
btn_disable: 'غیرفعالسازی SCAYT',
btn_enable: 'فعالسازی SCAYT',
btn_langs:'زبانها',
btn_options: 'گزینهها',
text_title: 'بررسی املای تایپ شما'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'fi', {
btn_about: 'Tietoja oikoluvusta kirjoitetaessa',
btn_dictionaries: 'Sanakirjat',
btn_disable: 'Poista käytöstä oikoluku kirjoitetaessa',
btn_enable: 'Ota käyttöön oikoluku kirjoitettaessa',
btn_langs:'Kielet',
btn_options: 'Asetukset',
text_title: 'Oikolue kirjoitettaessa'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'fo', {
btn_about: 'Um SCAYT',
btn_dictionaries: 'Orðabøkur',
btn_disable: 'Nokta SCAYT',
btn_enable: 'Loyv SCAYT',
btn_langs:'Tungumál',
btn_options: 'Uppseting',
text_title: 'Kanna stavseting, meðan tú skrivar'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'fr-ca', {
btn_about: 'About SCAYT',
btn_dictionaries: 'Dictionaries',
btn_disable: 'Disable SCAYT',
btn_enable: 'Enable SCAYT',
btn_langs:'Languages',
btn_options: 'Options',
text_title: 'Spell Check As You Type'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'fr', {
btn_about: 'A propos de SCAYT',
btn_dictionaries: 'Dictionnaires',
btn_disable: 'Désactiver SCAYT',
btn_enable: 'Activer SCAYT',
btn_langs:'Langues',
btn_options: 'Options',
text_title: 'Vérification de l\'Orthographe en Cours de Frappe (SCAYT)'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'gl', {
btn_about: 'About SCAYT',
btn_dictionaries: 'Dictionaries',
btn_disable: 'Disable SCAYT',
btn_enable: 'Enable SCAYT',
btn_langs:'Languages',
btn_options: 'Options',
text_title: 'Spell Check As You Type'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'gu', {
btn_about: 'SCAYT વિ',
btn_dictionaries: 'શબદકશ',
btn_disable: 'SCAYT ડિબલ કરવ',
btn_enable: 'SCAYT એનબલ કરવ',
btn_langs:'ભઓ',
btn_options: 'વિકલ',
text_title: 'ટઈપ કરતલ તપ'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'he', {
btn_about: 'אודות SCAYT',
btn_dictionaries: 'מילון',
btn_disable: 'בטל SCAYT',
btn_enable: 'אפשר SCAYT',
btn_langs:'שפות',
btn_options: 'אפשרויות',
text_title: 'בדיקת איות בזמן כתיבה (SCAYT)'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'hi', {
btn_about: 'About SCAYT',
btn_dictionaries: 'Dictionaries',
btn_disable: 'Disable SCAYT',
btn_enable: 'Enable SCAYT',
btn_langs:'Languages',
btn_options: 'Options',
text_title: 'Spell Check As You Type'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'hr', {
btn_about: 'O SCAYT',
btn_dictionaries: 'Rječnici',
btn_disable: 'Onemogući SCAYT',
btn_enable: 'Omogući SCAYT',
btn_langs:'Jezici',
btn_options: 'Opcije',
text_title: 'Provjeri pravopis tijekom tipkanja (SCAYT)'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'hu', {
btn_about: 'SCAYT névjegy',
btn_dictionaries: 'Szótár',
btn_disable: 'SCAYT letiltása',
btn_enable: 'SCAYT engedélyezése',
btn_langs:'Nyelvek',
btn_options: 'Beállítások',
text_title: 'Helyesírás ellenőrzés gépelés közben'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'is', {
btn_about: 'About SCAYT',
btn_dictionaries: 'Dictionaries',
btn_disable: 'Disable SCAYT',
btn_enable: 'Enable SCAYT',
btn_langs:'Languages',
btn_options: 'Options',
text_title: 'Spell Check As You Type'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'it', {
btn_about: 'About COMS',
btn_dictionaries: 'Dizionari',
btn_disable: 'Disabilita COMS',
btn_enable: 'Abilita COMS',
btn_langs:'Lingue',
btn_options: 'Opzioni',
text_title: 'Controllo Ortografico Mentre Scrivi'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'ja', {
btn_about: 'SCAYTバージョン',
btn_dictionaries: '辞書',
btn_disable: 'SCAYT無効',
btn_enable: 'SCAYT有効',
btn_langs:'言語',
btn_options: 'オプション',
text_title: 'スペルチェック設定(SCAYT)'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'ka', {
btn_about: 'SCAYT-ის შესახებ',
btn_dictionaries: 'ლექსიკონები',
btn_disable: 'SCAYT-ის გამორთვა',
btn_enable: 'SCAYT-ის ჩართვა',
btn_langs:'ენები',
btn_options: 'პარამეტრები',
text_title: 'მართლწერის შემოწმება კრეფისას'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'km', {
btn_about: 'About SCAYT',
btn_dictionaries: 'Dictionaries',
btn_disable: 'Disable SCAYT',
btn_enable: 'Enable SCAYT',
btn_langs:'Languages',
btn_options: 'Options',
text_title: 'Spell Check As You Type'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'ko', {
btn_about: 'About SCAYT',
btn_dictionaries: 'Dictionaries',
btn_disable: 'Disable SCAYT',
btn_enable: 'Enable SCAYT',
btn_langs:'Languages',
btn_options: 'Options',
text_title: 'Spell Check As You Type'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'ku', {
btn_about: 'دهربارهی SCAYT',
btn_dictionaries: 'فهرههنگهکان',
btn_disable: 'ناچالاککردنی SCAYT',
btn_enable: 'چالاککردنی SCAYT',
btn_langs:'زمانهکان',
btn_options: 'ههڵبژارده',
text_title: 'پشکنینی نووسه لهکاتی نووسین'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'lt', {
btn_about: 'Apie SCAYT',
btn_dictionaries: 'Žodynai',
btn_disable: 'Išjungti SCAYT',
btn_enable: 'Įjungti SCAYT',
btn_langs:'Kalbos',
btn_options: 'Parametrai',
text_title: 'Tikrinti klaidas kai rašoma'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'lv', {
btn_about: 'Par SCAYT',
btn_dictionaries: 'Vārdnīcas',
btn_disable: 'Atslēgt SCAYT',
btn_enable: 'Ieslēgt SCAYT',
btn_langs:'Valodas',
btn_options: 'Uzstādījumi',
text_title: 'Pārbaudīt gramatiku rakstot'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'mk', {
btn_about: 'About SCAYT',
btn_dictionaries: 'Dictionaries',
btn_disable: 'Disable SCAYT',
btn_enable: 'Enable SCAYT',
btn_langs:'Languages',
btn_options: 'Options',
text_title: 'Spell Check As You Type'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'mn', {
btn_about: 'About SCAYT',
btn_dictionaries: 'Толь бичгүүд',
btn_disable: 'Disable SCAYT',
btn_enable: 'Enable SCAYT',
btn_langs:'Хэлүүд',
btn_options: 'Сонголт',
text_title: 'Spell Check As You Type'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'ms', {
btn_about: 'About SCAYT',
btn_dictionaries: 'Dictionaries',
btn_disable: 'Disable SCAYT',
btn_enable: 'Enable SCAYT',
btn_langs:'Languages',
btn_options: 'Options',
text_title: 'Spell Check As You Type' // MISSING
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'nb', {
btn_about: 'Om SCAYT',
btn_dictionaries: 'Ordbøker',
btn_disable: 'Slå av SCAYT',
btn_enable: 'Slå på SCAYT',
btn_langs:'Språk',
btn_options: 'Valg',
text_title: 'Stavekontroll mens du skriver'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'nl', {
btn_about: 'Over SCAYT',
btn_dictionaries: 'Woordenboeken',
btn_disable: 'SCAYT uitschakelen',
btn_enable: 'SCAYT inschakelen',
btn_langs:'Talen',
btn_options: 'Opties',
text_title: 'Controleer de spelling tijdens het typen'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'no', {
btn_about: 'Om SCAYT',
btn_dictionaries: 'Ordbøker',
btn_disable: 'Slå av SCAYT',
btn_enable: 'Slå på SCAYT',
btn_langs:'Språk',
btn_options: 'Valg',
text_title: 'Stavekontroll mens du skriver'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'pl', {
btn_about: 'Informacje o SCAYT',
btn_dictionaries: 'Słowniki',
btn_disable: 'Wyłącz SCAYT',
btn_enable: 'Włącz SCAYT',
btn_langs:'Języki',
btn_options: 'Opcje',
text_title: 'Sprawdź pisownię podczas pisania (SCAYT)'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'pt-br', {
btn_about: 'Sobre a correção ortográfica durante a digitação',
btn_dictionaries: 'Dicionários',
btn_disable: 'Desabilitar correção ortográfica durante a digitação',
btn_enable: 'Habilitar correção ortográfica durante a digitação',
btn_langs:'Idiomas',
btn_options: 'Opções',
text_title: 'Correção ortográfica durante a digitação'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'pt', {
btn_about: 'About SCAYT',
btn_dictionaries: 'Dictionaries',
btn_disable: 'Disable SCAYT',
btn_enable: 'Enable SCAYT',
btn_langs:'Languages',
btn_options: 'Options',
text_title: 'Spell Check As You Type' // MISSING
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'ro', {
btn_about: 'About SCAYT',
btn_dictionaries: 'Dictionaries',
btn_disable: 'Disable SCAYT',
btn_enable: 'Enable SCAYT',
btn_langs:'Languages',
btn_options: 'Options',
text_title: 'Spell Check As You Type' // MISSING
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'ru', {
btn_about: 'О SCAYT',
btn_dictionaries: 'Словари',
btn_disable: 'Отключить SCAYT',
btn_enable: 'Включить SCAYT',
btn_langs:'Языки',
btn_options: 'Настройки',
text_title: 'Проверка орфографии по мере ввода (SCAYT)'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'sk', {
btn_about: 'O KPPP (Kontrola pravopisu počas písania)',
btn_dictionaries: 'Slovníky',
btn_disable: 'Zakázať KPPP (Kontrola pravopisu počas písania)',
btn_enable: 'Povoliť KPPP (Kontrola pravopisu počas písania)',
btn_langs:'Jazyky',
btn_options: 'Možnosti',
text_title: 'Kontrola pravopisu počas písania'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'sl', {
btn_about: 'O storitvi SCAYT',
btn_dictionaries: 'Slovarji',
btn_disable: 'Onemogoči SCAYT',
btn_enable: 'Omogoči SCAYT',
btn_langs:'Jeziki',
btn_options: 'Možnosti',
text_title: 'Črkovanje med tipkanjem'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'sr-latn', {
btn_about: 'About SCAYT',
btn_dictionaries: 'Dictionaries',
btn_disable: 'Disable SCAYT',
btn_enable: 'Enable SCAYT',
btn_langs:'Languages',
btn_options: 'Options',
text_title: 'Spell Check As You Type' // MISSING
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'sr', {
btn_about: 'About SCAYT',
btn_dictionaries: 'Dictionaries',
btn_disable: 'Disable SCAYT',
btn_enable: 'Enable SCAYT',
btn_langs:'Languages',
btn_options: 'Options',
text_title: 'Spell Check As You Type' // MISSING
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'sv', {
btn_about: 'Om SCAYT',
btn_dictionaries: 'Ordlistor',
btn_disable: 'Inaktivera SCAYT',
btn_enable: 'Aktivera SCAYT',
btn_langs:'Språk',
btn_options: 'Inställningar',
text_title: 'Stavningskontroll medan du skriver'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'th', {
btn_about: 'About SCAYT',
btn_dictionaries: 'Dictionaries',
btn_disable: 'Disable SCAYT',
btn_enable: 'Enable SCAYT',
btn_langs:'Languages',
btn_options: 'Options',
text_title: 'Spell Check As You Type' // MISSING
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'tr', {
btn_about: 'SCAYT\'ı hakkında',
btn_dictionaries: 'Sözlükler',
btn_disable: 'SCAYT\'ı pasifleştir',
btn_enable: 'SCAYT\'ı etkinleştir',
btn_langs:'Diller',
btn_options: 'Seçenekler',
text_title: 'Girmiş olduğunuz kelime denetimi'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'ug', {
btn_about: 'شۇئان ئىملا تەكشۈرۈش ھەققىدە',
btn_dictionaries: 'لۇغەت',
btn_disable: 'شۇئان ئىملا تەكشۈرۈشنى چەكلە',
btn_enable: 'شۇئان ئىملا تەكشۈرۈشنى قوزغات',
btn_langs:'تىل',
btn_options: 'تاللانما',
text_title: 'شۇئان ئىملا تەكشۈر'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'uk', {
btn_about: 'Про SCAYT',
btn_dictionaries: 'Словники',
btn_disable: 'Вимкнути SCAYT',
btn_enable: 'Ввімкнути SCAYT',
btn_langs:'Мови',
btn_options: 'Опції',
text_title: 'Перефірка орфографії по мірі набору'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'vi', {
btn_about: 'Thông tin về SCAYT',
btn_dictionaries: 'Từ điển',
btn_disable: 'Tắt SCAYT',
btn_enable: 'Bật SCAYT',
btn_langs:'Ngôn ngữ',
btn_options: 'Tùy chọn',
text_title: 'Kiểm tra chính tả ngay khi gõ chữ (SCAYT)'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'zh-cn', {
btn_about: '关于即时拼写检查',
btn_dictionaries: '字典',
btn_disable: '禁用即时拼写检查',
btn_enable: '启用即时拼写检查',
btn_langs:'语言',
btn_options: '选项',
text_title: '即时拼写检查'
});

@ -0,0 +1,13 @@
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'scayt', 'zh', {
btn_about: '關於即時拼寫檢查',
btn_dictionaries: '字典',
btn_disable: '關閉即時拼寫檢查',
btn_enable: '啟用即時拼寫檢查',
btn_langs: '語言',
btn_options: '選項',
text_title: '即時拼寫檢查'
});

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save