Web:Studio:Added common-tooltips file and LanguageTimeSettingsTooltip component. Added translations of "DescriptionTimeLanguage" and "LanguageTimeSettingsTooltip" for locales en, ru.

This commit is contained in:
Vlada Gazizova 2022-02-08 17:43:32 +03:00
parent b4622b581e
commit 51176cae7d
3 changed files with 67 additions and 2 deletions

View File

@ -26,6 +26,7 @@
"CustomTitles": "Custom titles",
"CustomTitlesSettingsDescription": "Will be displayed on your welcome page and used for email notifications (From field). The custom domain name is a way to set an alternative URL for your portal. The custom portal name will appear next to the onlyoffice.com/onlyoffice.eu address.",
"DeactivateOrDeletePortal": "Deactivate or delete portal.",
"DescriptionTimeLanguage": "To make the parameters you set take effect click the",
"Disabled": "Disabled",
"DocumentsAdministratorsCan": "Documents administrators can link Dropbox, Box, and other accounts to Common Documents and set up access rights in this section",
"Employees": "users",
@ -36,6 +37,7 @@
"Guests": "Guests",
"Job/Title": "Job/Title",
"LanguageAndTimeZoneSettingsDescription": "Change language for all portal users and configure time zone so that all portal events are shown with the correct date and time.",
"LanguageTimeSettingsTooltip": "<0>{{text}}</0> is a way to change the language of the whole portal for all portal users and to configure the time zone so that all the events of the ONLYOFFICE portal will be shown with the correct date and time. <2>{{description}}</2> <0>{{save}}</0> button at the bottom of the section.<5>{{learnMore}}</5>",
"LogoDark": "Logo for the About/Login page",
"LogoDocsEditor": "Logo for the editors header",
"LogoFavicon": "Favicon",
@ -79,4 +81,4 @@
"Users": "Users",
"WelcomePageTitle": "Welcome page title",
"YouHaveUnsavedChanges": "You have unsaved changes"
}
}

View File

@ -26,6 +26,7 @@
"CustomTitles": "Пользовательские заголовки",
"CustomTitlesSettingsDescription": "Пользовательский заголовок страницы приветствия будет отображаться на странице приветствия вашего портала. Это же имя используется для поля 'От' вашего электронного уведомления портала. Пользовательское доменное имя - это способ установить альтернативный URL-адрес для вашего портала. Пользовательское имя портала будет отображаться рядом с адресом портала onlyoffice.com/onlyoffice.eu.",
"DeactivateOrDeletePortal": "Деактивировать или удалить портал.",
"DescriptionTimeLanguage": "Чтобы применить их, используйте кнопку",
"Disabled": "Отключено",
"DocumentsAdministratorsCan": "Администраторы модуля Документы могут подключать Dropbox, Box и другие аккаунты в Общих документах и настраивать права доступа в этом разделе",
"Employees": "Пользователи",
@ -36,6 +37,7 @@
"Guests": "Гости",
"Job/Title": "Должность/Позиция",
"LanguageAndTimeZoneSettingsDescription": "Настройки языка и часового пояса - это способ изменить язык всего портала для всех пользователей портала и настроить часовой пояс, чтобы все события портала отображались с правильной датой и временем.",
"LanguageTimeSettingsTooltip": "<0>{{text}}</0> позволяют изменить язык всего портала для всех пользователей и настроить часовой пояс, чтобы все события на портале ONLYOFFICE отображались с корректной датой и временем. <2>{{description}}</2> <0>{{save}}</0> внизу раздела.<5>{{learnMore}}</5> ",
"LogoDark": "Логотип для страницы \"О программе\" и страницы входа ",
"LogoDocsEditor": "Логотип для шапки редакторов",
"LogoFavicon": "Иконка сайта",
@ -79,4 +81,4 @@
"Users": "Пользователи",
"WelcomePageTitle": "Заголовок страницы приветствия",
"YouHaveUnsavedChanges": "Имеются несохраненные изменения"
}
}

View File

@ -0,0 +1,61 @@
import React from "react";
import styled from "styled-components";
import { Trans } from "react-i18next";
import Link from "@appserver/components/link";
import Text from "@appserver/components/text";
const StyledLanguageTimeSettingsTooltip = styled.div`
.font-size {
font-size: 12px;
}
.bold {
font-weight: 600;
}
.display {
display: inline;
}
.display-link {
display: block;
}
`;
const LanguageTimeSettingsTooltip = ({ t }) => {
const learnMore = t("Common:LearnMore");
const text = t("Settings:StudioTimeLanguageSettings");
const save = t("Common:SaveButton");
const description = t("Settings:DescriptionTimeLanguage");
return (
<StyledLanguageTimeSettingsTooltip>
<Text className="font-size">
<Trans
ns="Settings"
i18nKey="LanguageTimeSettingsTooltip"
learnMore={t("Common:LearnMore")}
text={text}
save={save}
description={description}
>
<Text className="bold display font-size"> {{ text }}</Text>
<Text className="display font-size">
is a way to change the language of the whole portal for all portal
users and to configure the time zone so that all the events of the
ONLYOFFICE portal will be shown with the correct date and time.
</Text>
<Text className="font-size">{{ description }}</Text>
<Text className="bold display font-size"> {{ save }}</Text> button at
the bottom of the section.
<Link
className="display-link font-size"
isHovered={true}
href="https://helpcenter.onlyoffice.com/administration/configuration.aspx#CustomizingPortal_block"
>
{{ learnMore }}
</Link>
</Trans>
</Text>
</StyledLanguageTimeSettingsTooltip>
);
};
export default LanguageTimeSettingsTooltip;