Ticket #7088: 7088.patch

File 7088.patch, 2.9 KB (added by Sa'ar Zac Elias, 13 years ago)
  • _source/core/editor.js

     
    272272                                                // is not available, get the first one (default one).
    273273                                                lang = ( CKEDITOR.tools.indexOf( pluginLangs, editor.langCode ) >= 0 ? editor.langCode : pluginLangs[ 0 ] );
    274274
    275                                                 if ( !plugin.lang[ lang ] )
     275                                                if ( !plugin.langEntries || !plugin.langEntries[ lang ] )
    276276                                                {
    277277                                                        // Put the language file URL into the list of files to
    278278                                                        // get downloaded.
     
    280280                                                }
    281281                                                else
    282282                                                {
    283                                                         CKEDITOR.tools.extend( editor.lang, plugin.lang[ lang ] );
     283                                                        CKEDITOR.tools.extend( editor.lang, plugin.langEntries[ lang ] );
    284284                                                        lang = null;
    285285                                                }
    286286                                        }
     
    305305
    306306                                                                // Uses the first loop to update the language entries also.
    307307                                                                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 ] ] );
    309309
    310310                                                                // Call the plugin method (beforeInit and init).
    311311                                                                if ( plugin[ methods[ m ] ] )
  • _source/core/plugins.js

     
    7979CKEDITOR.plugins.setLang = function( pluginName, languageCode, languageEntries )
    8080{
    8181        var plugin = this.get( pluginName ),
    82                 pluginLang = plugin.lang || ( plugin.lang = {} );
     82                pluginLang = plugin.langEntries || ( plugin.langEntries = {} );
    8383
    8484        pluginLang[ languageCode ] = languageEntries;
    8585};
  • _source/plugins/a11yhelp/plugin.js

     
    3232                                                                CKEDITOR.getUrl( plugin.path + 'lang/' + langCode + '.js' ),
    3333                                                                function()
    3434                                                                {
    35                                                                         CKEDITOR.tools.extend( editor.lang, plugin.lang[ langCode ] );
     35                                                                        CKEDITOR.tools.extend( editor.lang, plugin.langEntries[ langCode ] );
    3636                                                                        editor.openDialog( commandName );
    3737                                                                });
    3838                                        },
  • _source/plugins/specialchar/plugin.js

     
    3131                                                        CKEDITOR.getUrl( plugin.path + 'lang/' + langCode + '.js' ),
    3232                                                        function()
    3333                                                        {
    34                                                                 CKEDITOR.tools.extend( editor.lang.specialChar, plugin.lang[ langCode ] );
     34                                                                CKEDITOR.tools.extend( editor.lang.specialChar, plugin.langEntries[ langCode ] );
    3535                                                                editor.openDialog( pluginName );
    3636                                                        });
    3737                                },
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy