X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fplugindefinition.js;h=d9dc526d6e2b0ca6296ae5baf4cf6927630e5e93;hb=1056598c95187351dc58f4991d331e2258d038b5;hp=2a78d286bff6dda8ad5eff2030c772ce25bf2dbc;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_source/core/plugindefinition.js b/_source/core/plugindefinition.js index 2a78d28..d9dc526 100644 --- a/_source/core/plugindefinition.js +++ b/_source/core/plugindefinition.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -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