From ad7793fdd11a7208817277fa59f1b521c47da862 Mon Sep 17 00:00:00 2001 From: maxkadushkin Date: Tue, 21 Jan 2025 12:10:13 +0300 Subject: [PATCH] [mobile] change 'Switch to Desktop' dialog content --- apps/documenteditor/mobile/locale/en.json | 4 +++- apps/documenteditor/mobile/src/controller/Toolbar.jsx | 4 ++-- apps/presentationeditor/mobile/locale/en.json | 4 +++- apps/presentationeditor/mobile/src/controller/Toolbar.jsx | 4 ++-- apps/spreadsheeteditor/mobile/locale/en.json | 4 +++- apps/spreadsheeteditor/mobile/src/controller/Toolbar.jsx | 4 ++-- apps/visioeditor/mobile/locale/en.json | 4 +++- apps/visioeditor/mobile/src/controller/Toolbar.jsx | 4 ++-- 8 files changed, 20 insertions(+), 12 deletions(-) diff --git a/apps/documenteditor/mobile/locale/en.json b/apps/documenteditor/mobile/locale/en.json index 22ee58e9f2..efb10a1102 100644 --- a/apps/documenteditor/mobile/locale/en.json +++ b/apps/documenteditor/mobile/locale/en.json @@ -810,7 +810,9 @@ }, "Toolbar": { "btnSend": "Send", - "btnSwitchToDesktop": "Switch to Desktop", + "del_btnSwitchToDesktop": "Switch to Desktop", + "textSwitchToDesktop": "Switch to Desktop", + "btnRestartNow": "Restart now", "dlgLeaveMsgText": "You have unsaved changes. Click 'Stay on this Page' to wait for autosave. Click 'Leave this Page' to discard all the unsaved changes.", "dlgLeaveTitleText": "You leave the application", "leaveButtonText": "Leave this Page", diff --git a/apps/documenteditor/mobile/src/controller/Toolbar.jsx b/apps/documenteditor/mobile/src/controller/Toolbar.jsx index 0857e160dd..c014b502f7 100644 --- a/apps/documenteditor/mobile/src/controller/Toolbar.jsx +++ b/apps/documenteditor/mobile/src/controller/Toolbar.jsx @@ -222,13 +222,13 @@ const ToolbarController = inject('storeAppOptions', 'users', 'storeReview', 'sto const forceDesktopMode = () => { f7.dialog.create({ text: t('Settings.textRestartApplication'), - title: t('Settings.notcriticalErrorTitle'), + title: t('Toolbar.textSwitchToDesktop'), buttons: [ { text: t('Edit.textCancel') }, { - text: t('Toolbar.btnSwitchToDesktop'), + text: t('Toolbar.btnRestartNow'), onClick: () => Common.Gateway.switchEditorType('desktop', true), } ]} diff --git a/apps/presentationeditor/mobile/locale/en.json b/apps/presentationeditor/mobile/locale/en.json index 6aec92efa0..997c3a2f62 100644 --- a/apps/presentationeditor/mobile/locale/en.json +++ b/apps/presentationeditor/mobile/locale/en.json @@ -276,7 +276,9 @@ "waitText": "Please, wait..." }, "Toolbar": { - "btnSwitchToDesktop": "Switch to Desktop", + "del_btnSwitchToDesktop": "Switch to Desktop", + "textSwitchToDesktop": "Switch to Desktop", + "btnRestartNow": "Restart now", "dlgLeaveMsgText": "You have unsaved changes in this document. Click 'Stay on this Page' to wait for autosave. Click 'Leave this Page' to discard all the unsaved changes.", "dlgLeaveTitleText": "You leave the application", "leaveButtonText": "Leave this page", diff --git a/apps/presentationeditor/mobile/src/controller/Toolbar.jsx b/apps/presentationeditor/mobile/src/controller/Toolbar.jsx index 2957bf5180..6cf2a7e470 100644 --- a/apps/presentationeditor/mobile/src/controller/Toolbar.jsx +++ b/apps/presentationeditor/mobile/src/controller/Toolbar.jsx @@ -258,13 +258,13 @@ const ToolbarController = inject('storeAppOptions', 'users', 'storeFocusObjects' const forceDesktopMode = () => { f7.dialog.create({ text: t('View.Settings.textRestartApplication'), - title: t('View.Settings.notcriticalErrorTitle'), + title: t('Toolbar.textSwitchToDesktop'), buttons: [ { text: t('View.Add.textCancel') }, { - text: t('Toolbar.btnSwitchToDesktop'), + text: t('Toolbar.btnRestartNow'), onClick: () => Common.Gateway.switchEditorType('desktop', true), } ]} diff --git a/apps/spreadsheeteditor/mobile/locale/en.json b/apps/spreadsheeteditor/mobile/locale/en.json index 2bceada403..47a0097415 100644 --- a/apps/spreadsheeteditor/mobile/locale/en.json +++ b/apps/spreadsheeteditor/mobile/locale/en.json @@ -449,7 +449,9 @@ "textWarnDeleteSheet": "The sheet maybe has data. Proceed operation?" }, "Toolbar": { - "btnSwitchToDesktop": "Switch to Desktop", + "del_btnSwitchToDesktop": "Switch to Desktop", + "textSwitchToDesktop": "Switch to Desktop", + "btnRestartNow": "Restart now", "dlgLeaveMsgText": "You have unsaved changes in this document. Click 'Stay on this Page' to wait for autosave. Click 'Leave this Page' to discard all the unsaved changes.", "dlgLeaveTitleText": "You leave the application", "leaveButtonText": "Leave this Page", diff --git a/apps/spreadsheeteditor/mobile/src/controller/Toolbar.jsx b/apps/spreadsheeteditor/mobile/src/controller/Toolbar.jsx index e96bc6ca06..332ffe2b19 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/Toolbar.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/Toolbar.jsx @@ -276,13 +276,13 @@ const ToolbarController = inject('storeAppOptions', 'users', 'storeSpreadsheetIn const forceDesktopMode = () => { f7.dialog.create({ text: t('View.Settings.textRestartApplication'), - title: t('View.Settings.notcriticalErrorTitle'), + title: t('Toolbar.textSwitchToDesktop'), buttons: [ { text: t('View.Settings.textCancel') }, { - text: t('Toolbar.btnSwitchToDesktop'), + text: t('Toolbar.btnRestartNow'), onClick: () => Common.Gateway.switchEditorType('desktop', true), } ]} diff --git a/apps/visioeditor/mobile/locale/en.json b/apps/visioeditor/mobile/locale/en.json index 3b613af261..e7f3d14b10 100644 --- a/apps/visioeditor/mobile/locale/en.json +++ b/apps/visioeditor/mobile/locale/en.json @@ -153,7 +153,9 @@ "waitText": "Please, wait..." }, "Toolbar": { - "btnSwitchToDesktop": "Switch to Desktop", + "del_btnSwitchToDesktop": "Switch to Desktop", + "textSwitchToDesktop": "Switch to Desktop", + "btnRestartNow": "Restart now", "dlgLeaveMsgText": "You have unsaved changes in this document. Click 'Stay on this Page' to wait for autosave. Click 'Leave this Page' to discard all the unsaved changes.", "dlgLeaveTitleText": "You leave the application", "leaveButtonText": "Leave this page", diff --git a/apps/visioeditor/mobile/src/controller/Toolbar.jsx b/apps/visioeditor/mobile/src/controller/Toolbar.jsx index 8fcf099c99..347a7d8c16 100644 --- a/apps/visioeditor/mobile/src/controller/Toolbar.jsx +++ b/apps/visioeditor/mobile/src/controller/Toolbar.jsx @@ -214,13 +214,13 @@ const ToolbarController = inject('storeAppOptions', 'users', 'storeToolbarSettin const forceDesktopMode = () => { f7.dialog.create({ text: t('View.Settings.textRestartApplication'), - title: t('View.Settings.notcriticalErrorTitle'), + title: t('Toolbar.textSwitchToDesktop'), buttons: [ { text: t('View.Edit.textCancel') }, { - text: t('Toolbar.btnSwitchToDesktop'), + text: t('Toolbar.btnRestartNow'), onClick: () => Common.Gateway.switchEditorType('desktop', true), } ]}