Refactoring

This commit is contained in:
Julia Radzhabova 2021-11-10 18:12:38 +03:00
parent b05d1922d2
commit e20688f998
6 changed files with 8 additions and 36 deletions

View file

@ -1005,11 +1005,6 @@ define([
text = this.applyChangesTextText; text = this.applyChangesTextText;
break; break;
case Asc.c_oAscAsyncAction['PrepareToSave']:
title = this.savePreparingText;
text = this.savePreparingTitle;
break;
case Asc.c_oAscAsyncAction['MailMergeLoadFile']: case Asc.c_oAscAsyncAction['MailMergeLoadFile']:
title = this.mailMergeLoadFileText; title = this.mailMergeLoadFileText;
text = this.mailMergeLoadFileTitle; text = this.mailMergeLoadFileTitle;
@ -2694,8 +2689,6 @@ define([
printTextText: 'Printing document...', printTextText: 'Printing document...',
uploadImageTitleText: 'Uploading Image', uploadImageTitleText: 'Uploading Image',
uploadImageTextText: 'Uploading image...', uploadImageTextText: 'Uploading image...',
savePreparingText: 'Preparing to save',
savePreparingTitle: 'Preparing to save. Please wait...',
uploadImageSizeMessage: 'Maximum image size limit exceeded.', uploadImageSizeMessage: 'Maximum image size limit exceeded.',
uploadImageExtMessage: 'Unknown image format.', uploadImageExtMessage: 'Unknown image format.',
uploadImageFileCountMessage: 'No images uploaded.', uploadImageFileCountMessage: 'No images uploaded.',

View file

@ -577,8 +577,8 @@
"DE.Controllers.Main.requestEditFailedTitleText": "Access denied", "DE.Controllers.Main.requestEditFailedTitleText": "Access denied",
"DE.Controllers.Main.saveErrorText": "An error has occurred while saving the file.", "DE.Controllers.Main.saveErrorText": "An error has occurred while saving the file.",
"DE.Controllers.Main.saveErrorTextDesktop": "This file cannot be saved or created.<br>Possible reasons are: <br>1. The file is read-only. <br>2. The file is being edited by other users. <br>3. The disk is full or corrupted.", "DE.Controllers.Main.saveErrorTextDesktop": "This file cannot be saved or created.<br>Possible reasons are: <br>1. The file is read-only. <br>2. The file is being edited by other users. <br>3. The disk is full or corrupted.",
"DE.Controllers.Main.savePreparingText": "Preparing to save", "del_DE.Controllers.Main.savePreparingText": "Preparing to save",
"DE.Controllers.Main.savePreparingTitle": "Preparing to save. Please wait...", "del_DE.Controllers.Main.savePreparingTitle": "Preparing to save. Please wait...",
"DE.Controllers.Main.saveTextText": "Saving document...", "DE.Controllers.Main.saveTextText": "Saving document...",
"DE.Controllers.Main.saveTitleText": "Saving Document", "DE.Controllers.Main.saveTitleText": "Saving Document",
"DE.Controllers.Main.scriptLoadError": "The connection is too slow, some of the components could not be loaded. Please reload the page.", "DE.Controllers.Main.scriptLoadError": "The connection is too slow, some of the components could not be loaded. Please reload the page.",

View file

@ -690,11 +690,6 @@ define([
text = this.applyChangesTextText; text = this.applyChangesTextText;
break; break;
case Asc.c_oAscAsyncAction['PrepareToSave']:
title = this.savePreparingText;
text = this.savePreparingTitle;
break;
case Asc.c_oAscAsyncAction['Waiting']: case Asc.c_oAscAsyncAction['Waiting']:
title = this.waitText; title = this.waitText;
text = this.waitText; text = this.waitText;
@ -2555,8 +2550,6 @@ define([
txtNeedSynchronize: 'You have an updates', txtNeedSynchronize: 'You have an updates',
applyChangesTitleText: 'Loading Data', applyChangesTitleText: 'Loading Data',
applyChangesTextText: 'Loading data...', applyChangesTextText: 'Loading data...',
savePreparingText: 'Preparing to save',
savePreparingTitle: 'Preparing to save. Please wait...',
loadingDocumentTitleText: 'Loading presentation', loadingDocumentTitleText: 'Loading presentation',
loadingDocumentTextText: 'Loading presentation...', loadingDocumentTextText: 'Loading presentation...',
warnProcessRightsChange: 'You have been denied the right to edit the file.', warnProcessRightsChange: 'You have been denied the right to edit the file.',

View file

@ -446,8 +446,8 @@
"PE.Controllers.Main.requestEditFailedTitleText": "Access denied", "PE.Controllers.Main.requestEditFailedTitleText": "Access denied",
"PE.Controllers.Main.saveErrorText": "An error has occurred while saving the file.", "PE.Controllers.Main.saveErrorText": "An error has occurred while saving the file.",
"PE.Controllers.Main.saveErrorTextDesktop": "This file cannot be saved or created.<br>Possible reasons are: <br>1. The file is read-only. <br>2. The file is being edited by other users. <br>3. The disk is full or corrupted.", "PE.Controllers.Main.saveErrorTextDesktop": "This file cannot be saved or created.<br>Possible reasons are: <br>1. The file is read-only. <br>2. The file is being edited by other users. <br>3. The disk is full or corrupted.",
"PE.Controllers.Main.savePreparingText": "Preparing to save", "del_PE.Controllers.Main.savePreparingText": "Preparing to save",
"PE.Controllers.Main.savePreparingTitle": "Preparing to save. Please wait...", "del_PE.Controllers.Main.savePreparingTitle": "Preparing to save. Please wait...",
"PE.Controllers.Main.saveTextText": "Saving presentation...", "PE.Controllers.Main.saveTextText": "Saving presentation...",
"PE.Controllers.Main.saveTitleText": "Saving Presentation", "PE.Controllers.Main.saveTitleText": "Saving Presentation",
"PE.Controllers.Main.scriptLoadError": "The connection is too slow, some of the components could not be loaded. Please reload the page.", "PE.Controllers.Main.scriptLoadError": "The connection is too slow, some of the components could not be loaded. Please reload the page.",

View file

@ -754,21 +754,11 @@ define([
text = this.uploadImageTextText; text = this.uploadImageTextText;
break; break;
case Asc.c_oAscAsyncAction.Recalc:
title = this.titleRecalcFormulas;
text = this.textRecalcFormulas;
break;
case Asc.c_oAscAsyncAction.SlowOperation: case Asc.c_oAscAsyncAction.SlowOperation:
title = this.textPleaseWait; title = this.textPleaseWait;
text = this.textPleaseWait; text = this.textPleaseWait;
break; break;
case Asc.c_oAscAsyncAction['PrepareToSave']:
title = this.savePreparingText;
text = this.savePreparingTitle;
break;
case Asc.c_oAscAsyncAction['Waiting']: case Asc.c_oAscAsyncAction['Waiting']:
title = this.waitText; title = this.waitText;
text = this.waitText; text = this.waitText;
@ -3000,8 +2990,6 @@ define([
printTextText: 'Printing document...', printTextText: 'Printing document...',
uploadImageTitleText: 'Uploading Image', uploadImageTitleText: 'Uploading Image',
uploadImageTextText: 'Uploading image...', uploadImageTextText: 'Uploading image...',
savePreparingText: 'Preparing to save',
savePreparingTitle: 'Preparing to save. Please wait...',
loadingDocumentTitleText: 'Loading spreadsheet', loadingDocumentTitleText: 'Loading spreadsheet',
uploadImageSizeMessage: 'Maximium image size limit exceeded.', uploadImageSizeMessage: 'Maximium image size limit exceeded.',
uploadImageExtMessage: 'Unknown image format.', uploadImageExtMessage: 'Unknown image format.',
@ -3016,8 +3004,6 @@ define([
warnBrowserZoom: 'Your browser\'s current zoom setting is not fully supported. Please reset to the default zoom by pressing Ctrl+0.', warnBrowserZoom: 'Your browser\'s current zoom setting is not fully supported. Please reset to the default zoom by pressing Ctrl+0.',
warnBrowserIE9: 'The application has low capabilities on IE9. Use IE10 or higher', warnBrowserIE9: 'The application has low capabilities on IE9. Use IE10 or higher',
pastInMergeAreaError: 'Cannot change part of a merged cell', pastInMergeAreaError: 'Cannot change part of a merged cell',
titleRecalcFormulas: 'Calculating formulas...',
textRecalcFormulas: 'Calculating formulas...',
textPleaseWait: 'It\'s working hard. Please wait...', textPleaseWait: 'It\'s working hard. Please wait...',
errorWrongBracketsCount: 'Found an error in the formula entered.<br>Wrong cout of brackets.', errorWrongBracketsCount: 'Found an error in the formula entered.<br>Wrong cout of brackets.',
errorWrongOperator: 'An error in the entered formula. Wrong operator is used.<br>Please correct the error or use the Esc button to cancel the formula editing.', errorWrongOperator: 'An error in the entered formula. Wrong operator is used.<br>Please correct the error or use the Esc button to cancel the formula editing.',

View file

@ -740,8 +740,8 @@
"SSE.Controllers.Main.requestEditFailedTitleText": "Access denied", "SSE.Controllers.Main.requestEditFailedTitleText": "Access denied",
"SSE.Controllers.Main.saveErrorText": "An error has occurred while saving the file.", "SSE.Controllers.Main.saveErrorText": "An error has occurred while saving the file.",
"SSE.Controllers.Main.saveErrorTextDesktop": "This file cannot be saved or created.<br>Possible reasons are: <br>1. The file is read-only. <br>2. The file is being edited by other users. <br>3. The disk is full or corrupted.", "SSE.Controllers.Main.saveErrorTextDesktop": "This file cannot be saved or created.<br>Possible reasons are: <br>1. The file is read-only. <br>2. The file is being edited by other users. <br>3. The disk is full or corrupted.",
"SSE.Controllers.Main.savePreparingText": "Preparing to save", "del_SSE.Controllers.Main.savePreparingText": "Preparing to save",
"SSE.Controllers.Main.savePreparingTitle": "Preparing to save. Please wait...", "del_SSE.Controllers.Main.savePreparingTitle": "Preparing to save. Please wait...",
"SSE.Controllers.Main.saveTextText": "Saving spreadsheet...", "SSE.Controllers.Main.saveTextText": "Saving spreadsheet...",
"SSE.Controllers.Main.saveTitleText": "Saving Spreadsheet", "SSE.Controllers.Main.saveTitleText": "Saving Spreadsheet",
"SSE.Controllers.Main.scriptLoadError": "The connection is too slow, some of the components could not be loaded. Please reload the page.", "SSE.Controllers.Main.scriptLoadError": "The connection is too slow, some of the components could not be loaded. Please reload the page.",
@ -766,7 +766,7 @@
"SSE.Controllers.Main.textNoLicenseTitle": "License limit reached", "SSE.Controllers.Main.textNoLicenseTitle": "License limit reached",
"SSE.Controllers.Main.textPaidFeature": "Paid feature", "SSE.Controllers.Main.textPaidFeature": "Paid feature",
"SSE.Controllers.Main.textPleaseWait": "The operation might take more time than expected. Please wait...", "SSE.Controllers.Main.textPleaseWait": "The operation might take more time than expected. Please wait...",
"SSE.Controllers.Main.textRecalcFormulas": "Calculating formulas...", "del_SSE.Controllers.Main.textRecalcFormulas": "Calculating formulas...",
"SSE.Controllers.Main.textRemember": "Remember my choice for all files", "SSE.Controllers.Main.textRemember": "Remember my choice for all files",
"SSE.Controllers.Main.textRenameError": "User name must not be empty.", "SSE.Controllers.Main.textRenameError": "User name must not be empty.",
"SSE.Controllers.Main.textRenameLabel": "Enter a name to be used for collaboration", "SSE.Controllers.Main.textRenameLabel": "Enter a name to be used for collaboration",
@ -776,7 +776,7 @@
"SSE.Controllers.Main.textTryUndoRedoWarn": "The Undo/Redo functions are disabled for the Fast co-editing mode.", "SSE.Controllers.Main.textTryUndoRedoWarn": "The Undo/Redo functions are disabled for the Fast co-editing mode.",
"SSE.Controllers.Main.textYes": "Yes", "SSE.Controllers.Main.textYes": "Yes",
"SSE.Controllers.Main.titleLicenseExp": "License expired", "SSE.Controllers.Main.titleLicenseExp": "License expired",
"SSE.Controllers.Main.titleRecalcFormulas": "Calculating...", "del_SSE.Controllers.Main.titleRecalcFormulas": "Calculating...",
"SSE.Controllers.Main.titleServerVersion": "Editor updated", "SSE.Controllers.Main.titleServerVersion": "Editor updated",
"SSE.Controllers.Main.txtAccent": "Accent", "SSE.Controllers.Main.txtAccent": "Accent",
"SSE.Controllers.Main.txtAll": "(All)", "SSE.Controllers.Main.txtAll": "(All)",