Handle Asc.c_oAscError.ID.DirectUrl error

This commit is contained in:
Julia Radzhabova 2022-09-23 17:38:45 +03:00
parent 4dcd91e106
commit 71434d517d
10 changed files with 25 additions and 0 deletions

View file

@ -433,6 +433,7 @@
"errorUserDrop": "The file can't be accessed right now.",
"errorUsersExceed": "The number of users allowed by the pricing plan was exceeded",
"errorViewerDisconnect": "Connection is lost. You can still view the document,<br>but you won't be able to download or print it until the connection is restored and the page is reloaded.",
"errorDirectUrl": "Please verify the link to the document.<br>This link must be a direct link to the file for downloading.",
"notcriticalErrorTitle": "Warning",
"openErrorText": "An error has occurred while opening the file",
"saveErrorText": "An error has occurred while saving the file",

View file

@ -193,6 +193,10 @@ const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocu
config.msg = _t.errorTextFormWrongFormat;
break;
case Asc.c_oAscError.ID.DirectUrl:
config.msg = _t.errorDirectUrl;
break;
default:
config.msg = _t.errorDefaultMessage.replace('%1', id);
break;

View file

@ -1566,6 +1566,10 @@ define([
config.msg = this.errorLoadingFont;
break;
case Asc.c_oAscError.ID.DirectUrl:
config.msg = this.errorDirectUrl;
break;
default:
config.msg = (typeof id == 'string') ? id : this.errorDefaultMessage.replace('%1', id);
break;

View file

@ -679,6 +679,7 @@
"PE.Controllers.Main.errorUserDrop": "The file cannot be accessed right now.",
"PE.Controllers.Main.errorUsersExceed": "The number of users allowed by the pricing plan was exceeded",
"PE.Controllers.Main.errorViewerDisconnect": "Connection is lost. You can still view the document,<br>but will not be able to download or print it until the connection is restored and page is reloaded.",
"PE.Controllers.Main.errorDirectUrl": "Please verify the link to the document.<br>This link must be a direct link to the file for downloading.",
"PE.Controllers.Main.leavePageText": "You have unsaved changes in this presentation. Click \"Stay on This Page\", then \"Save\" to save them. Click \"Leave This Page\" to discard all the unsaved changes.",
"PE.Controllers.Main.leavePageTextOnClose": "All unsaved changes in this presentation will be lost.<br> Click \"Cancel\" then \"Save\" to save them. Click \"OK\" to discard all the unsaved changes.",
"PE.Controllers.Main.loadFontsTextText": "Loading data...",

View file

@ -163,6 +163,7 @@
"errorUserDrop": "The file cannot be accessed right now.",
"errorUsersExceed": "The number of users allowed by the pricing plan was exceeded",
"errorViewerDisconnect": "Connection is lost. You can still view the document,<br>but you won't be able to download or print it until the connection is restored and the page is reloaded.",
"errorDirectUrl": "Please verify the link to the document.<br>This link must be a direct link to the file for downloading.",
"notcriticalErrorTitle": "Warning",
"openErrorText": "An error has occurred while opening the file",
"saveErrorText": "An error has occurred while saving the file",

View file

@ -173,6 +173,10 @@ const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocu
config.msg = _t.errorLoadingFont;
break;
case Asc.c_oAscError.ID.DirectUrl:
config.msg = _t.errorDirectUrl;
break;
default:
config.msg = _t.errorDefaultMessage.replace('%1', id);
break;

View file

@ -1967,6 +1967,10 @@ define([
config.msg = this.errorCannotUseCommandProtectedSheet;
break;
case Asc.c_oAscError.ID.DirectUrl:
config.msg = this.errorDirectUrl;
break;
default:
config.msg = (typeof id == 'string') ? id : this.errorDefaultMessage.replace('%1', id);
break;

View file

@ -791,6 +791,7 @@
"SSE.Controllers.Main.errorWrongOperator": "An error in the entered formula. Wrong operator is used.<br>Please correct the error.",
"SSE.Controllers.Main.errorWrongPassword": "The password you supplied is not correct.",
"SSE.Controllers.Main.errRemDuplicates": "Duplicate values found and deleted: {0}, unique values left: {1}.",
"SSE.Controllers.Main.errorDirectUrl": "Please verify the link to the document.<br>This link must be a direct link to the file for downloading.",
"SSE.Controllers.Main.leavePageText": "You have unsaved changes in this spreadsheet. Click 'Stay on this Page' then 'Save' to save them. Click 'Leave this Page' to discard all the unsaved changes.",
"SSE.Controllers.Main.leavePageTextOnClose": "All unsaved changes in this spreadsheet will be lost.<br> Click \"Cancel\" then \"Save\" to save them. Click \"OK\" to discard all the unsaved changes.",
"SSE.Controllers.Main.loadFontsTextText": "Loading data...",

View file

@ -235,6 +235,7 @@
"errorViewerDisconnect": "Connection is lost. You can still view the document,<br>but you won't be able to download or print it until the connection is restored and the page is reloaded.",
"errorWrongBracketsCount": "An error in the formula.<br>Wrong number of brackets.",
"errorWrongOperator": "An error in the entered formula. Wrong operator is used.<br>Please correct the error.",
"errorDirectUrl": "Please verify the link to the document.<br>This link must be a direct link to the file for downloading.",
"notcriticalErrorTitle": "Warning",
"openErrorText": "An error has occurred while opening the file",
"pastInMergeAreaError": "Cannot change a part of a merged cell",

View file

@ -324,6 +324,10 @@ const ErrorController = inject('storeAppOptions')(({storeAppOptions, LoadingDocu
config.msg = t('Error.errorCannotUseCommandProtectedSheet');
break;
case Asc.c_oAscError.ID.DirectUrl:
config.msg = _t.errorDirectUrl;
break;
default:
config.msg = _t.errorDefaultMessage.replace('%1', id);
break;