Ticket #7118: 7118.patch

File 7118.patch, 2.4 KB (added by WebSpellChecker.net, 14 years ago)
  • _source/plugins/scayt/dialogs/options.js

     
    111111                                                        html :  '<form name="dictionarybar_' + editorName + '"><div class="inner_dictionary" style="text-align:left; white-space:normal; width:320px; overflow: hidden;">' +
    112112                                                                        '       <div style="margin:5px auto; width:80%;white-space:normal; overflow:hidden;" id="dic_message_' + editorName + '"> </div>' +
    113113                                                                        '       <div style="margin:5px auto; width:80%;white-space:normal;"> ' +
    114                                                                         '       <span class="cke_dialog_ui_labeled_label" >Dictionary name</span><br>'+
     114                                                                        '       <span class="cke_dialog_ui_labeled_label" >'+lang.dic_field_name+'</span><br>'+
    115115                                                                        '               <span class="cke_dialog_ui_labeled_content" >'+
    116116                                                                        '                       <div class="cke_dialog_ui_input_text">'+
    117117                                                                        '                               <input id="dic_name_' + editorName + '" type="text" class="cke_dialog_ui_input_text"/>'+
     
    233232                        for ( i = 0; i < buttonCaptions.length; i++ )
    234233                        {
    235234                                buttonIds[ i ] = buttonCaptions[ i ] + "_" + editorName;
    236                                 doc.getById( buttonIds[ i ] ).setHtml( '<span class="cke_dialog_ui_button">' + captions[ 'button_' + buttonCaptions[ i ]]  +'</span>' );
     235                                doc.getById( buttonIds[ i ] ).setHtml( '<span class="cke_dialog_ui_button">' + lang[buttonCaptions[ i ]]  +'</span>' );
    237236                        }
    238                         doc.getById( 'dic_info_' + editorName ).setHtml( captions[ 'dic_info' ] );
     237                        doc.getById( 'dic_info_' + editorName ).setHtml(lang.dic_info);  //get captions from ckeditor lang file to dictionary tab caption ticket #7118
    239238                }
    240 
    241239                // Fill options and dictionary labels.
    242240                if ( tags[0] == 1 )
    243241                {
     
    246244                                var labelCaption = 'label_' + labels[ i ],
    247245                                        labelId = labelCaption + '_' + editorName,
    248246                                        labelElement = doc.getById( labelId );
    249                                
    250247                                if (  'undefined' != typeof labelElement
    251248                                   && 'undefined' != typeof captions[ labelCaption ]
    252249                                   && 'undefined' != typeof dialog.options[labels[ i ]] )
    253250                                {
    254                                         labelElement.setHtml( captions[ labelCaption ] );
     251                                        labelElement.setHtml(lang[labels[ i ]]); //get captions from ckeditor lang file to options tab caption #7118
    255252                                        var labelParent = labelElement.getParent();
    256253                                        labelParent.$.style.display = "block";
    257254                                }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy