Ticket #3225: 3225.patch

File 3225.patch, 2.1 KB (added by Frederico Caldeira Knabben, 12 years ago)
  • _source/core/config.js

     
    7777        contentsLangDirection : 'ltr',
    7878
    7979        /**
    80          * Instructs the editor to automatically localize the editor to the user
    81          * 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.
    8383         * @default true
    8484         * @type Boolean
    8585         * @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';
    8988         */
    90         autoLanguage : true,
     89        language : '',
    9190
    9291        /**
    9392         * The language to be used if [@link #autoLanguage] is set to false, or
  • _source/core/editor.js

     
    130130
    131131        var loadLang = function( editor )
    132132        {
    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 )
    134134                        {
    135135                                editor.langCode = languageCode;
    136136
  • _source/core/lang.js

     
    9090                 *              function: the language code and the loaded language entries.
    9191                 * @example
    9292                 */
    93                 load : function( languageCode, autoDetect, callback )
     93                load : function( languageCode, defaultLanguage, callback )
    9494                {
    95                         if ( autoDetect )
    96                                 languageCode = this.detect( languageCode );
     95                        if ( !languageCode )
     96                                languageCode = this.detect( defaultLanguage );
    9797
    9898                        if ( !this[ languageCode ] )
    9999                        {
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy