Ticket #3225: 3225.patch
File 3225.patch, 2.1 KB (added by , 15 years ago) |
---|
-
_source/core/config.js
77 77 contentsLangDirection : 'ltr', 78 78 79 79 /** 80 * Instructs the editor to automatically localize the editor to the user81 * language, if possible. If set to false, the [@link #defaultLanguage]82 * language is used.80 * The user interface language localization to use. If empty, the editor 81 * automatically localize the editor to the user language, if supported, 82 * otherwise the [@link #defaultLanguage] language is used. 83 83 * @default true 84 84 * @type Boolean 85 85 * @example 86 * // Forces the editor to always load the German interface. 87 * config.autoLanguage = false; 88 * config.defaultLanguage = 'de'; 86 * // Load the German interface. 87 * config.language = 'de'; 89 88 */ 90 autoLanguage : true,89 language : '', 91 90 92 91 /** 93 92 * The language to be used if [@link #autoLanguage] is set to false, or -
_source/core/editor.js
130 130 131 131 var loadLang = function( editor ) 132 132 { 133 CKEDITOR.lang.load( editor.config. defaultLanguage, editor.config.autoLanguage, function( languageCode, lang )133 CKEDITOR.lang.load( editor.config.language, editor.config.defaultLanguage, function( languageCode, lang ) 134 134 { 135 135 editor.langCode = languageCode; 136 136 -
_source/core/lang.js
90 90 * function: the language code and the loaded language entries. 91 91 * @example 92 92 */ 93 load : function( languageCode, autoDetect, callback )93 load : function( languageCode, defaultLanguage, callback ) 94 94 { 95 if ( autoDetect)96 languageCode = this.detect( languageCode );95 if ( !languageCode ) 96 languageCode = this.detect( defaultLanguage ); 97 97 98 98 if ( !this[ languageCode ] ) 99 99 {