[DE forms] Handle errors. Fix Bug 53651
This commit is contained in:
parent
33cb981ce6
commit
26f8f43011
|
@ -186,6 +186,14 @@ define([
|
|||
config.msg = this.downloadErrorText;
|
||||
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:
|
||||
config.msg = this.errorFilePassProtect;
|
||||
break;
|
||||
|
@ -234,6 +242,10 @@ define([
|
|||
config.msg = this.errorTokenExpire;
|
||||
break;
|
||||
|
||||
case Asc.c_oAscError.ID.CoAuthoringDisconnect:
|
||||
config.msg = this.errorViewerDisconnect;
|
||||
break;
|
||||
|
||||
default:
|
||||
config.msg = (typeof id == 'string') ? id : this.errorDefaultMessage.replace('%1', id);
|
||||
break;
|
||||
|
@ -1489,7 +1501,10 @@ define([
|
|||
textContactUs: 'Contact sales',
|
||||
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.',
|
||||
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));
|
||||
});
|
||||
|
|
|
@ -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.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.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.textNext": "Next Field",
|
||||
"DE.Views.ApplicationView.textSubmit": "Submit",
|
||||
|
|
Loading…
Reference in a new issue