mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
Merge pull request 'refactor: link to help centr moved from translations' (#415) from fix/welcomeBanner into release/v9.1.0
This commit is contained in:
@ -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.<br/>Powerful tools for documents, spreadsheets, and slides PDF editing, forms, and conversion Real-time cloud collaboration',
|
||||
welNeedHelp: 'Need help? Visit our <a class="link" href="https://helpcenter.onlyoffice.com/" target="popup">Help Center</a>.',
|
||||
welNeedHelp: 'Need help? Visit our $1.',
|
||||
textHelpCenter: 'Help Center',
|
||||
btnConnect: 'Connect now',
|
||||
textHavePortal: 'Already use a cloud?',
|
||||
btnCreatePortal: 'Create an ONLYOFFICE cloud',
|
||||
|
||||
@ -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 <a class="link" href="https://helpcenter.onlyoffice.com/" target="popup">Help Center</a>.',
|
||||
welNeedHelp: 'Need help? Visit our $1.',
|
||||
textHelpCenter: 'Help Center',
|
||||
btnConnect: 'Connect now',
|
||||
textHavePortal: 'Already use a cloud?',
|
||||
btnCreatePortal: 'Create an ONLYOFFICE cloud',
|
||||
|
||||
@ -55,11 +55,12 @@
|
||||
// localStorage.removeItem('welcome');
|
||||
|
||||
//language=HTML
|
||||
const helpLink = `<a l10n class="link" href="https://helpcenter.onlyoffice.com/" target="popup">${_lang.textHelpCenter}</a>`;
|
||||
const welcomeBannerTemplate = !localStorage.getItem('welcome') ? `
|
||||
<div id="area-welcome">
|
||||
<h2 l10n>${_lang.welWelcome}</h2>
|
||||
<p l10n class="text-normal">${_lang.welDescr}</p>
|
||||
<p l10n class="text-normal">${_lang.welNeedHelp}</p>
|
||||
<p l10n class="text-normal">${_lang.welNeedHelp.replace('$1', helpLink)}</p>
|
||||
</div>` : '';
|
||||
|
||||
//language=HTML
|
||||
|
||||
Reference in New Issue
Block a user