mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 09:22:26 +08:00
[DE] Add error for protected range
This commit is contained in:
@ -2300,6 +2300,11 @@ define([
|
||||
config.msg = this.errorSaveWatermark;
|
||||
break;
|
||||
|
||||
case Asc.c_oAscError.ID.EditProtectedRange:
|
||||
config.maxwidth = 600;
|
||||
config.msg = this.errorEditProtectedRange;
|
||||
break;
|
||||
|
||||
case Asc.c_oAscError.ID.ConvertationOpenFormat:
|
||||
config.maxwidth = 600;
|
||||
if (errData === 'pdf')
|
||||
|
||||
@ -939,6 +939,7 @@
|
||||
"DE.Controllers.Main.errorUserDrop": "The file cannot be accessed right now.",
|
||||
"DE.Controllers.Main.errorUsersExceed": "The number of users allowed by the pricing plan was exceeded",
|
||||
"DE.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.",
|
||||
"DE.Controllers.Main.errorEditProtectedRange": "You are not allowed to edit this selection because it is protected.",
|
||||
"DE.Controllers.Main.leavePageText": "You have unsaved changes in this document. Click \"Stay on This Page\", then \"Save\" to save them. Click \"Leave This Page\" to discard all the unsaved changes.",
|
||||
"DE.Controllers.Main.leavePageTextOnClose": "All unsaved changes in this document will be lost.<br> Click \"Cancel\" then \"Save\" to save them. Click \"OK\" to discard all the unsaved changes.",
|
||||
"DE.Controllers.Main.loadFontsTextText": "Loading data...",
|
||||
|
||||
@ -464,6 +464,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.",
|
||||
"errorEditProtectedRange": "You are not allowed to edit this selection because it is protected.",
|
||||
"notcriticalErrorTitle": "Warning",
|
||||
"openErrorText": "An error has occurred while opening the file",
|
||||
"saveErrorText": "An error has occurred while saving the file",
|
||||
|
||||
@ -259,6 +259,10 @@ const ErrorController = inject('storeAppOptions','storeDocumentInfo')(({storeApp
|
||||
config.msg = t('Error.errorPDFFormsLocked');
|
||||
break;
|
||||
|
||||
case Asc.c_oAscError.ID.EditProtectedRange:
|
||||
config.msg = t('Error.errorEditProtectedRange');
|
||||
break;
|
||||
|
||||
default:
|
||||
config.msg = _t.errorDefaultMessage.replace('%1', id);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user