From 1fea85b4b1c9d69dff822eb53ba02e40cdf204d4 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 27 Apr 2018 16:05:38 +0300 Subject: [PATCH] [Mobile] Add warning when open file protected with password --- apps/documenteditor/mobile/app/controller/Main.js | 5 +++-- apps/documenteditor/mobile/locale/en.json | 1 + apps/presentationeditor/mobile/app/controller/Main.js | 5 +++-- apps/presentationeditor/mobile/locale/en.json | 1 + apps/spreadsheeteditor/mobile/app/controller/Main.js | 5 +++-- apps/spreadsheeteditor/mobile/locale/en.json | 1 + 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/apps/documenteditor/mobile/app/controller/Main.js b/apps/documenteditor/mobile/app/controller/Main.js index 88df8a02e..bf1613b60 100644 --- a/apps/documenteditor/mobile/app/controller/Main.js +++ b/apps/documenteditor/mobile/app/controller/Main.js @@ -1093,7 +1093,7 @@ define([ me._state.openDlg = uiApp.modal({ title: me.advDRMOptions, - text: me.advDRMEnterPassword, + text: me.txtProtected, afterText: '
', buttons: [ { @@ -1292,7 +1292,8 @@ define([ txtStyle_footnote_text: 'Footnote Text', txtHeader: "Header", txtFooter: "Footer", - warnNoLicenseUsers: 'This version of ONLYOFFICE Editors has certain limitations for concurrent users.
If you need more please consider upgrading your current license or purchasing a commercial one.' + warnNoLicenseUsers: 'This version of ONLYOFFICE Editors has certain limitations for concurrent users.
If you need more please consider upgrading your current license or purchasing a commercial one.', + txtProtected: 'Once you enter the password and open the file, the current password to the file will be reset' } })(), DE.Controllers.Main || {})) }); \ No newline at end of file diff --git a/apps/documenteditor/mobile/locale/en.json b/apps/documenteditor/mobile/locale/en.json index 875b88b8d..425357bbb 100644 --- a/apps/documenteditor/mobile/locale/en.json +++ b/apps/documenteditor/mobile/locale/en.json @@ -37,6 +37,7 @@ "DE.Controllers.EditText.textAuto": "Auto", "DE.Controllers.EditText.textFonts": "Fonts", "DE.Controllers.EditText.textPt": "pt", + "DE.Controllers.Main.txtProtected": "Once you enter the password and open the file, the current password to the file will be reset", "DE.Controllers.Main.advDRMEnterPassword": "Enter your password:", "DE.Controllers.Main.advDRMOptions": "Protected File", "DE.Controllers.Main.advDRMPassword": "Password", diff --git a/apps/presentationeditor/mobile/app/controller/Main.js b/apps/presentationeditor/mobile/app/controller/Main.js index 97b0e445e..fd1ac443b 100644 --- a/apps/presentationeditor/mobile/app/controller/Main.js +++ b/apps/presentationeditor/mobile/app/controller/Main.js @@ -1037,7 +1037,7 @@ define([ me._state.openDlg = uiApp.modal({ title: me.advDRMOptions, - text: me.advDRMEnterPassword, + text: me.txtProtected, afterText: '
', buttons: [ { @@ -1285,7 +1285,8 @@ define([ txtSlideNumber: 'Slide number', txtSlideSubtitle: 'Slide subtitle', txtSlideTitle: 'Slide title', - warnNoLicenseUsers: 'This version of ONLYOFFICE Editors has certain limitations for concurrent users.
If you need more please consider upgrading your current license or purchasing a commercial one.' + warnNoLicenseUsers: 'This version of ONLYOFFICE Editors has certain limitations for concurrent users.
If you need more please consider upgrading your current license or purchasing a commercial one.', + txtProtected: 'Once you enter the password and open the file, the current password to the file will be reset' } })(), PE.Controllers.Main || {})) }); \ No newline at end of file diff --git a/apps/presentationeditor/mobile/locale/en.json b/apps/presentationeditor/mobile/locale/en.json index 4eb5d77e4..239e5061a 100644 --- a/apps/presentationeditor/mobile/locale/en.json +++ b/apps/presentationeditor/mobile/locale/en.json @@ -55,6 +55,7 @@ "PE.Controllers.EditText.textAuto": "Auto", "PE.Controllers.EditText.textFonts": "Fonts", "PE.Controllers.EditText.textPt": "pt", + "PE.Controllers.Main.txtProtected": "Once you enter the password and open the file, the current password to the file will be reset", "PE.Controllers.Main.advDRMEnterPassword": "Enter your password:", "PE.Controllers.Main.advDRMOptions": "Protected File", "PE.Controllers.Main.advDRMPassword": "Password", diff --git a/apps/spreadsheeteditor/mobile/app/controller/Main.js b/apps/spreadsheeteditor/mobile/app/controller/Main.js index 3961f28cf..9ff1c3a98 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Main.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Main.js @@ -1220,7 +1220,7 @@ define([ me._state.openDlg = uiApp.modal({ title: me.advDRMOptions, - text: me.advDRMEnterPassword, + text: me.txtProtected, afterText: '
', buttons: [ { @@ -1450,7 +1450,8 @@ define([ txtStyle_Percent: 'Percent', txtStyle_Comma: 'Comma', warnNoLicenseUsers: 'This version of ONLYOFFICE Editors has certain limitations for concurrent users.
If you need more please consider upgrading your current license or purchasing a commercial one.', - errorMaxPoints: 'The maximum number of points in series per chart is 4096.' + errorMaxPoints: 'The maximum number of points in series per chart is 4096.', + txtProtected: 'Once you enter the password and open the file, the current password to the file will be reset' } })(), SSE.Controllers.Main || {})) }); \ No newline at end of file diff --git a/apps/spreadsheeteditor/mobile/locale/en.json b/apps/spreadsheeteditor/mobile/locale/en.json index 56c6838fa..f624c36c0 100644 --- a/apps/spreadsheeteditor/mobile/locale/en.json +++ b/apps/spreadsheeteditor/mobile/locale/en.json @@ -93,6 +93,7 @@ "SSE.Controllers.EditHyperlink.textInvalidRange": "Invalid cells range", "SSE.Controllers.EditHyperlink.txtNotUrl": "This field should be a URL in the format \"http://www.example.com\"", "SSE.Controllers.Main.advCSVOptions": "Choose CSV Options", + "SSE.Controllers.Main.txtProtected": "Once you enter the password and open the file, the current password to the file will be reset", "SSE.Controllers.Main.advDRMEnterPassword": "Enter your password:", "SSE.Controllers.Main.advDRMOptions": "Protected File", "SSE.Controllers.Main.advDRMPassword": "Password",