X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fcore%2Fplugindefinition.js;h=d9dc526d6e2b0ca6296ae5baf4cf6927630e5e93;hp=e75bc4aaa1acbb48185234377122c7821082ef28;hb=1056598c95187351dc58f4991d331e2258d038b5;hpb=4e90e78dc97789709ee7404359a5517540c27553 diff --git a/_source/core/plugindefinition.js b/_source/core/plugindefinition.js index e75bc4a..d9dc526 100644 --- a/_source/core/plugindefinition.js +++ b/_source/core/plugindefinition.js @@ -30,6 +30,23 @@ For licensing, see LICENSE.html or http://ckeditor.com/license * }); */ +/** + * A list of language files available for this plugin. These files are stored inside + * the "lang" directory, which is inside the plugin directory, follow the name + * pattern of "langCode.js", and contain a language definition created with {@link CKEDITOR.pluginDefinition#setLang}. + * While the plugin is being loaded, the editor checks this list to see if + * a language file of the current editor language ({@link CKEDITOR.editor#langCode}) + * is available, and if so, loads it. Otherwise, the file represented by the first list item + * in the list is loaded. + * @name CKEDITOR.pluginDefinition.prototype.lang + * @type Array + * @example + * CKEDITOR.plugins.add( 'sample', + * { + * lang : [ 'en', 'fr' ] + * }); + */ + /** * Function called on initialization of every editor instance created in the * page before the init() call task. The beforeInit function will be called for