From 80e42f1c3895a10bef3044beb3c2dfd5a17f1e1c Mon Sep 17 00:00:00 2001 From: Dmitry-Ilyushechkin Date: Tue, 19 Aug 2025 12:51:48 +0300 Subject: [PATCH 1/2] refactor: link to help centr moved from translations --- common/loginpage/locale/en-GB.js | 3 ++- common/loginpage/src/locale.js | 3 ++- common/loginpage/src/panelrecent.js | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/common/loginpage/locale/en-GB.js b/common/loginpage/locale/en-GB.js index 6126febac..7445b861f 100644 --- a/common/loginpage/locale/en-GB.js +++ b/common/loginpage/locale/en-GB.js @@ -1,7 +1,8 @@ l10n.en_GB = { welWelcome: 'Welcome to ONLYOFFICE!', welDescr: 'Create, edit, and collaborate on documents, spreadsheets, presentations, and PDFs — all in one place.
Powerful tools for documents, spreadsheets, and slides PDF editing, forms, and conversion Real-time cloud collaboration', - welNeedHelp: 'Need help? Visit our Help Center.', + welNeedHelp: 'Need help? Visit our $1.', + helpText: 'Help Center', btnConnect: 'Connect now', textHavePortal: 'Already use a cloud?', btnCreatePortal: 'Create an ONLYOFFICE cloud', diff --git a/common/loginpage/src/locale.js b/common/loginpage/src/locale.js index c8acd5528..e47e0ac34 100644 --- a/common/loginpage/src/locale.js +++ b/common/loginpage/src/locale.js @@ -34,7 +34,8 @@ var l10n = l10n || {}; l10n.en = { welWelcome: 'Welcome to ONLYOFFICE Desktop Editors!', welDescr: 'Work on documents offline or connect the suite to your cloud: ONLYOFFICE, ownCloud, Nextcloud.', - welNeedHelp: 'Need help? Visit our Help Center.', + welNeedHelp: 'Need help? Visit our $1.', + helpText: 'Help Center', btnConnect: 'Connect now', textHavePortal: 'Already use a cloud?', btnCreatePortal: 'Create an ONLYOFFICE cloud', diff --git a/common/loginpage/src/panelrecent.js b/common/loginpage/src/panelrecent.js index e453a0e33..435dab183 100644 --- a/common/loginpage/src/panelrecent.js +++ b/common/loginpage/src/panelrecent.js @@ -55,11 +55,12 @@ // localStorage.removeItem('welcome'); //language=HTML + const helpLink = `${_lang.helpText}`; const welcomeBannerTemplate = !localStorage.getItem('welcome') ? `

${_lang.welWelcome}

${_lang.welDescr}

-

${_lang.welNeedHelp}

+

${_lang.welNeedHelp.replace('$1', helpLink)}

` : ''; //language=HTML From c0d46e074110e19769516c81294542e77123bea4 Mon Sep 17 00:00:00 2001 From: Dmitry-Ilyushechkin Date: Wed, 20 Aug 2025 15:22:59 +0300 Subject: [PATCH 2/2] refactoring --- common/loginpage/locale/en-GB.js | 2 +- common/loginpage/src/locale.js | 2 +- common/loginpage/src/panelrecent.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/loginpage/locale/en-GB.js b/common/loginpage/locale/en-GB.js index 7445b861f..f95adb9b0 100644 --- a/common/loginpage/locale/en-GB.js +++ b/common/loginpage/locale/en-GB.js @@ -2,7 +2,7 @@ l10n.en_GB = { welWelcome: 'Welcome to ONLYOFFICE!', welDescr: 'Create, edit, and collaborate on documents, spreadsheets, presentations, and PDFs — all in one place.
Powerful tools for documents, spreadsheets, and slides PDF editing, forms, and conversion Real-time cloud collaboration', welNeedHelp: 'Need help? Visit our $1.', - helpText: 'Help Center', + textHelpCenter: 'Help Center', btnConnect: 'Connect now', textHavePortal: 'Already use a cloud?', btnCreatePortal: 'Create an ONLYOFFICE cloud', diff --git a/common/loginpage/src/locale.js b/common/loginpage/src/locale.js index e47e0ac34..709a54091 100644 --- a/common/loginpage/src/locale.js +++ b/common/loginpage/src/locale.js @@ -35,7 +35,7 @@ l10n.en = { welWelcome: 'Welcome to ONLYOFFICE Desktop Editors!', welDescr: 'Work on documents offline or connect the suite to your cloud: ONLYOFFICE, ownCloud, Nextcloud.', welNeedHelp: 'Need help? Visit our $1.', - helpText: 'Help Center', + textHelpCenter: 'Help Center', btnConnect: 'Connect now', textHavePortal: 'Already use a cloud?', btnCreatePortal: 'Create an ONLYOFFICE cloud', diff --git a/common/loginpage/src/panelrecent.js b/common/loginpage/src/panelrecent.js index 435dab183..df2d9ac06 100644 --- a/common/loginpage/src/panelrecent.js +++ b/common/loginpage/src/panelrecent.js @@ -55,7 +55,7 @@ // localStorage.removeItem('welcome'); //language=HTML - const helpLink = `${_lang.helpText}`; + const helpLink = `${_lang.textHelpCenter}`; const welcomeBannerTemplate = !localStorage.getItem('welcome') ? `

${_lang.welWelcome}