// is not available, get the first one (default one).\r
lang = ( CKEDITOR.tools.indexOf( pluginLangs, editor.langCode ) >= 0 ? editor.langCode : pluginLangs[ 0 ] );\r
\r
- if ( !plugin.lang[ lang ] )\r
+ if ( !plugin.langEntries || !plugin.langEntries[ lang ] )\r
{\r
// Put the language file URL into the list of files to\r
// get downloaded.\r
}\r
else\r
{\r
- CKEDITOR.tools.extend( editor.lang, plugin.lang[ lang ] );\r
+ CKEDITOR.tools.extend( editor.lang, plugin.langEntries[ lang ] );\r
lang = null;\r
}\r
}\r
\r
// Uses the first loop to update the language entries also.\r
if ( m === 0 && languageCodes[ i ] && plugin.lang )\r
- CKEDITOR.tools.extend( editor.lang, plugin.lang[ languageCodes[ i ] ] );\r
+ CKEDITOR.tools.extend( editor.lang, plugin.langEntries[ languageCodes[ i ] ] );\r
\r
// Call the plugin method (beforeInit and init).\r
if ( plugin[ methods[ m ] ] )\r
* @returns {Boolean} "true" if the command has been successfuly\r
* executed, otherwise "false".\r
* @example\r
- * editorInstance.execCommand( 'Bold' );\r
+ * editorInstance.execCommand( 'bold' );\r
*/\r
execCommand : function( commandName, data )\r
{\r