[DE forms] Handle errors. Fix Bug 53651

This commit is contained in:
Julia Radzhabova 2021-11-11 14:07:18 +03:00
parent 33cb981ce6
commit 26f8f43011
2 changed files with 19 additions and 1 deletions

View file

@ -186,6 +186,14 @@ define([
config.msg = this.downloadErrorText; config.msg = this.downloadErrorText;
break; break;
case Asc.c_oAscError.ID.UplImageSize:
config.msg = this.uploadImageSizeMessage;
break;
case Asc.c_oAscError.ID.UplImageExt:
config.msg = this.uploadImageExtMessage;
break;
case Asc.c_oAscError.ID.ConvertationPassword: case Asc.c_oAscError.ID.ConvertationPassword:
config.msg = this.errorFilePassProtect; config.msg = this.errorFilePassProtect;
break; break;
@ -234,6 +242,10 @@ define([
config.msg = this.errorTokenExpire; config.msg = this.errorTokenExpire;
break; break;
case Asc.c_oAscError.ID.CoAuthoringDisconnect:
config.msg = this.errorViewerDisconnect;
break;
default: default:
config.msg = (typeof id == 'string') ? id : this.errorDefaultMessage.replace('%1', id); config.msg = (typeof id == 'string') ? id : this.errorDefaultMessage.replace('%1', id);
break; break;
@ -1489,7 +1501,10 @@ define([
textContactUs: 'Contact sales', textContactUs: 'Contact sales',
errorLoadingFont: 'Fonts are not loaded.<br>Please contact your Document Server administrator.', errorLoadingFont: 'Fonts are not loaded.<br>Please contact your Document Server administrator.',
errorConnectToServer: 'The document could not be saved. Please check connection settings or contact your administrator.<br>When you click the \'OK\' button, you will be prompted to download the document.', errorConnectToServer: 'The document could not be saved. Please check connection settings or contact your administrator.<br>When you click the \'OK\' button, you will be prompted to download the document.',
errorTokenExpire: 'The document security token has expired.<br>Please contact your Document Server administrator.' errorTokenExpire: 'The document security token has expired.<br>Please contact your Document Server administrator.',
errorViewerDisconnect: 'Connection is lost. You can still view the document,<br>but will not be able to download or print until the connection is restored and page is reloaded.',
uploadImageSizeMessage: 'Maximum image size limit exceeded.',
uploadImageExtMessage: 'Unknown image format.'
}, DE.Controllers.ApplicationController)); }, DE.Controllers.ApplicationController));
}); });

View file

@ -110,6 +110,9 @@
"DE.Controllers.ApplicationController.warnLicenseUsersExceeded": "You've reached the user limit for %1 editors. Contact your administrator to learn more.", "DE.Controllers.ApplicationController.warnLicenseUsersExceeded": "You've reached the user limit for %1 editors. Contact your administrator to learn more.",
"DE.Controllers.ApplicationController.warnNoLicense": "You've reached the limit for simultaneous connections to %1 editors. This document will be opened for viewing only.<br>Contact %1 sales team for personal upgrade terms.", "DE.Controllers.ApplicationController.warnNoLicense": "You've reached the limit for simultaneous connections to %1 editors. This document will be opened for viewing only.<br>Contact %1 sales team for personal upgrade terms.",
"DE.Controllers.ApplicationController.warnNoLicenseUsers": "You've reached the user limit for %1 editors. Contact %1 sales team for personal upgrade terms.", "DE.Controllers.ApplicationController.warnNoLicenseUsers": "You've reached the user limit for %1 editors. Contact %1 sales team for personal upgrade terms.",
"DE.Controllers.ApplicationController.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.",
"DE.Controllers.ApplicationController.uploadImageSizeMessage": "The image is too big. The maximum size is 25 MB.",
"DE.Controllers.ApplicationController.uploadImageExtMessage": "Unknown image format.",
"DE.Views.ApplicationView.textClear": "Clear All Fields", "DE.Views.ApplicationView.textClear": "Clear All Fields",
"DE.Views.ApplicationView.textNext": "Next Field", "DE.Views.ApplicationView.textNext": "Next Field",
"DE.Views.ApplicationView.textSubmit": "Submit", "DE.Views.ApplicationView.textSubmit": "Submit",