Ticket #7118: 7118.patch
File 7118.patch, 2.4 KB (added by , 13 years ago) |
---|
-
_source/plugins/scayt/dialogs/options.js
111 111 html : '<form name="dictionarybar_' + editorName + '"><div class="inner_dictionary" style="text-align:left; white-space:normal; width:320px; overflow: hidden;">' + 112 112 ' <div style="margin:5px auto; width:80%;white-space:normal; overflow:hidden;" id="dic_message_' + editorName + '"> </div>' + 113 113 ' <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>'+ 115 115 ' <span class="cke_dialog_ui_labeled_content" >'+ 116 116 ' <div class="cke_dialog_ui_input_text">'+ 117 117 ' <input id="dic_name_' + editorName + '" type="text" class="cke_dialog_ui_input_text"/>'+ … … 233 232 for ( i = 0; i < buttonCaptions.length; i++ ) 234 233 { 235 234 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>' ); 237 236 } 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 239 238 } 240 241 239 // Fill options and dictionary labels. 242 240 if ( tags[0] == 1 ) 243 241 { … … 246 244 var labelCaption = 'label_' + labels[ i ], 247 245 labelId = labelCaption + '_' + editorName, 248 246 labelElement = doc.getById( labelId ); 249 250 247 if ( 'undefined' != typeof labelElement 251 248 && 'undefined' != typeof captions[ labelCaption ] 252 249 && 'undefined' != typeof dialog.options[labels[ i ]] ) 253 250 { 254 labelElement.setHtml( captions[ labelCaption ] );251 labelElement.setHtml(lang[labels[ i ]]); //get captions from ckeditor lang file to options tab caption #7118 255 252 var labelParent = labelElement.getParent(); 256 253 labelParent.$.style.display = "block"; 257 254 }