Ticket #7004: 7004_2.patch

File 7004_2.patch, 754 bytes (added by Alfonso Martínez de Lizarrondo, 12 years ago)

Updated patch

  • _source/core/plugins.js

     
    7979CKEDITOR.plugins.setLang = function( pluginName, languageCode, languageEntries )
    8080{
    8181        var plugin = this.get( pluginName ),
    82                 pluginLang = plugin.langEntries || ( plugin.langEntries = {} );
     82                pluginLangEntries = plugin.langEntries || ( plugin.langEntries = {} );
     83                pluginLang = plugin.lang || ( plugin.lang = [] );
    8384
    84         pluginLang[ languageCode ] = languageEntries;
     85        if ( CKEDITOR.tools.indexOf( pluginLang, languageCode ) == -1 )
     86                pluginLang.push( languageCode );
     87
     88        pluginLangEntries[ languageCode ] = languageEntries;
    8589};
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy