X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fplugins.js;h=c9bba7b512a89d2e177ecf47bacde30aff4ffcd5;hb=48b1db88210b4160dce439c6e3e32e14af8c106b;hp=70d6cce1fcf3cb39760a968ac4b3ccfd15940feb;hpb=8761695d9b70afe75905deaac88f78c1f8aeb32d;p=ckeditor.git diff --git a/_source/core/plugins.js b/_source/core/plugins.js index 70d6cce..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 */ @@ -78,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; };