Ticket #7088: 7088.patch
File 7088.patch, 2.9 KB (added by , 13 years ago) |
---|
-
_source/core/editor.js
272 272 // is not available, get the first one (default one). 273 273 lang = ( CKEDITOR.tools.indexOf( pluginLangs, editor.langCode ) >= 0 ? editor.langCode : pluginLangs[ 0 ] ); 274 274 275 if ( !plugin.lang [ lang ] )275 if ( !plugin.langEntries || !plugin.langEntries[ lang ] ) 276 276 { 277 277 // Put the language file URL into the list of files to 278 278 // get downloaded. … … 280 280 } 281 281 else 282 282 { 283 CKEDITOR.tools.extend( editor.lang, plugin.lang [ lang ] );283 CKEDITOR.tools.extend( editor.lang, plugin.langEntries[ lang ] ); 284 284 lang = null; 285 285 } 286 286 } … … 305 305 306 306 // Uses the first loop to update the language entries also. 307 307 if ( m === 0 && languageCodes[ i ] && plugin.lang ) 308 CKEDITOR.tools.extend( editor.lang, plugin.lang [ languageCodes[ i ] ] );308 CKEDITOR.tools.extend( editor.lang, plugin.langEntries[ languageCodes[ i ] ] ); 309 309 310 310 // Call the plugin method (beforeInit and init). 311 311 if ( plugin[ methods[ m ] ] ) -
_source/core/plugins.js
79 79 CKEDITOR.plugins.setLang = function( pluginName, languageCode, languageEntries ) 80 80 { 81 81 var plugin = this.get( pluginName ), 82 pluginLang = plugin.lang || ( plugin.lang= {} );82 pluginLang = plugin.langEntries || ( plugin.langEntries = {} ); 83 83 84 84 pluginLang[ languageCode ] = languageEntries; 85 85 }; -
_source/plugins/a11yhelp/plugin.js
32 32 CKEDITOR.getUrl( plugin.path + 'lang/' + langCode + '.js' ), 33 33 function() 34 34 { 35 CKEDITOR.tools.extend( editor.lang, plugin.lang [ langCode ] );35 CKEDITOR.tools.extend( editor.lang, plugin.langEntries[ langCode ] ); 36 36 editor.openDialog( commandName ); 37 37 }); 38 38 }, -
_source/plugins/specialchar/plugin.js
31 31 CKEDITOR.getUrl( plugin.path + 'lang/' + langCode + '.js' ), 32 32 function() 33 33 { 34 CKEDITOR.tools.extend( editor.lang.specialChar, plugin.lang [ langCode ] );34 CKEDITOR.tools.extend( editor.lang.specialChar, plugin.langEntries[ langCode ] ); 35 35 editor.openDialog( pluginName ); 36 36 }); 37 37 },