X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fplugins.js;h=c9bba7b512a89d2e177ecf47bacde30aff4ffcd5;hb=48b1db88210b4160dce439c6e3e32e14af8c106b;hp=5137e3f6159f194295be52d65697b4f4da4a758e;hpb=ea7e3453c7b0f023b050aca6d9f83ab372860d91;p=ckeditor.git diff --git a/_source/core/plugins.js b/_source/core/plugins.js index 5137e3f..c9bba7b 100644 --- a/_source/core/plugins.js +++ b/_source/core/plugins.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2009, 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 */ @@ -15,6 +15,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license * @example */ CKEDITOR.plugins = new CKEDITOR.resourceManager( + '_source/' + // @Packager.RemoveLine 'plugins/', 'plugin' ); // PACKAGER_RENAME( CKEDITOR.plugins ) @@ -77,6 +78,8 @@ CKEDITOR.plugins.load = CKEDITOR.tools.override( CKEDITOR.plugins.load, function CKEDITOR.plugins.setLang = function( pluginName, languageCode, languageEntries ) { - var plugin = this.get( pluginName ); - plugin.lang[ languageCode ] = languageEntries; + var plugin = this.get( pluginName ), + pluginLang = plugin.lang || ( plugin.lang = {} ); + + pluginLang[ languageCode ] = languageEntries; };