added translate

This commit is contained in:
Elyor Djalilov 2023-08-04 16:31:18 +05:00
parent b3826eedff
commit 1c0fbb6932
5 changed files with 48 additions and 51 deletions

View File

@ -37,6 +37,7 @@
"AutoSavePeriodHelp": "The time shown below corresponds to the time zone set in the DocSpace.",
"Backup": "Backup",
"BackupFile": "Backup file",
"BackupFileUploading": "Backup file is being uploaded to the server. Please wait.",
"BackupCreatedError": "An error has been encountered. Please contact your administrator.",
"BackupCreatedSuccess": "The backup copy has been successfully created.",
"BackupList": "Backup List",
@ -120,6 +121,8 @@
"LanguageTimeSettingsTooltip": "<0>{{text}}</0> is a way to change the language of the space for all users and to configure the time zone so that all the actions of the {{ organizationName }} space will be shown with the correct date and time.",
"LanguageTimeSettingsTooltipDescription": "To make the parameters you set take effect click the <1>{{save}}</1> button at the bottom of the section.<3>{{learnMore}}</3>",
"Lifetime": "Lifetime (min)",
"LicenseLimitCounter": "License limit Admins/Power: {{licencelimit}}/{{totalLicenceLimit}}",
"LicenseLimitDescription": "The license limit counter consists of: already existing accounts in DocSapce and new users that you want to import. If you import users who already have an DocSpace account, they will not be counted again in the counter. Your DocSpace license allows you to have a maximum of 100 users.",
"LimitThemesTooltip": "You can only create 3 custom themes. To create a new one, you must delete one of the previous themes.",
"LocalFile": "Local file",
"LoginHistoryTitle": "Login History",
@ -177,6 +180,7 @@
"SelectFileDescription": "Select the Google Workspace backup files to start the data import. Multiple files can be selected. Once the data upload and analysis are complete, the next step will be initiated automatically.",
"SelectSectionsDescription": "Select sections for import. They will appear in the corresponding sections of DocSpace.",
"SelectFileInGZFormat": "Select the file in .GZ format",
"SelectedUsersCounter": "Selected: {{selectedUsers}}/{{totalUsers}} users",
"SelectUsers": "Select users",
"SelectUserTypes": "Select user types",
"SelectUsersDescription": "Check users from the list to import into ONLYOFFICE DocSpace. Users from Google Workspace will be imported without First Name / Last Name, and their email name will be used instead. Names of the users can be changed after the import. Users already existing in ONLYOFFICE DocSpace are highlighted with a green color and are not checked by default.",
@ -226,6 +230,7 @@
"UseDigits": "Use digits",
"UseHttp": "Use Http",
"UserAgreement": "I confirm and want to proceed",
"UserLimitExceeded": "User limit exceeded. To proceed to the next step, please adjust the number of users or increase the DocSpace user limit.",
"UseSpecialChar": "Use special characters",
"UseUpperCase": "Use capital letters",
"WhiteLabel": "Logo settings",

View File

@ -37,6 +37,7 @@
"AutoSavePeriodHelp": "Указанное ниже время соответствует часовому поясу, выставленному в DocSpace.",
"Backup": "Резервное копирование",
"BackupFile": "Резервный файл",
"BackupFileUploading": "Резервный файл загружается на сервер. Пожалуйста, подождите.",
"BackupCreatedError": "Произошла ошибка. Пожалуйста, обратитесь к администратору.",
"BackupCreatedSuccess": "Резервная копия успешно создана.",
"BackupList": "Список резервных копий",
@ -119,6 +120,7 @@
"LanguageAndTimeZoneSettingsDescription": "Настройки языка и часового пояса позволяют изменить язык всего портала для всех пользователей и настроить часовой пояс, чтобы все события на портале отображались с корректной датой и временем.",
"LanguageTimeSettingsTooltip": "<0>{{text}}</0> позволяют изменить язык всего портала для всех пользователей и настроить часовой пояс, чтобы все события на портале {{ organizationName }} отображались с корректной датой и временем.",
"LanguageTimeSettingsTooltipDescription": "Чтобы применить их, используйте кнопку <1>{{save}}</1> внизу раздела.<3>{{learnMore}}</3>",
"LicenseLimitDescription": "Счетчик лимита лицензии состоит из: уже существующих учетных записей в DocSapce и новых пользователей, которых вы хотите импортировать. Если вы импортируете пользователей, у которых уже есть учетная запись DocSpace, они больше не будут учитываться в счетчике. Ваша лицензия DocSpace позволяет вам иметь максимум 100 пользователей.",
"Lifetime": "Срок службы (мин)",
"LimitThemesTooltip": "Вы можете создать только 3 пользовательские темы. Чтобы создать новую, необходимо удалить одну из предыдущих тем.",
"LocalFile": "Локальный файл",
@ -177,6 +179,7 @@
"SelectFileDescription": "Выберите файлы резервных копий Google Workspace, чтобы начать импорт данных. Можно выбрать несколько файлов. После завершения загрузки и анализа данных следующий шаг будет инициирован автоматически.",
"SelectSectionsDescription": "Выберите разделы для импорта. Они появятся в соответствующих разделах DocSpace.",
"SelectFileInGZFormat": "Выбрать файл в формате .GZ",
"SelectedUsersCounter": "Выбрано: {{selectedUsers}}/{{totalUsers}} пользователей",
"SelectUsers": "Выберите пользователей",
"SelectUserTypes": "Выберите типы пользователей",
"SelectUsersDescription": "Отметьте пользователей из списка для импорта в ONLYOFFICE DocSpace. Пользователи из Google Workspace будут импортированы без имени/фамилии, вместо них будет использоваться их имя электронной почты. Имена пользователей могут быть изменены после импорта. Пользователи, уже существующие в ONLYOFFICE DocSpace, выделяются зеленым цветом и по умолчанию не проверяются.",
@ -226,6 +229,7 @@
"UseDigits": "Использовать цифры",
"UseHttp": "Использовать Http",
"UserAgreement": "Я подтверждаю и хочу продолжить",
"UserLimitExceeded": "Превышен лимит пользователя. Чтобы перейти к следующему шагу, измените количество пользователей или увеличьте лимит пользователей DocSpace.",
"UseSpecialChar": "Использовать специальные символы",
"UseUpperCase": "Использовать заглавные буквы",
"WhiteLabel": "Настройки логотипа",

View File

@ -18,7 +18,12 @@ const Wrapper = styled.div`
.upload-backup-input {
height: 32px;
margin-bottom: 16px;
margin-bottom: 12px;
}
.upload-backup-text {
font-size: 12px;
margin-bottom: 12px;
}
`;
@ -59,11 +64,16 @@ const FirstStep = ({
/>
</Wrapper>
{isLoading ? (
<Button
size="small"
label={t("Common:CancelButton")}
onClick={onClickButton}
/>
<Wrapper>
<Text className="upload-backup-text">
{t("Settings:BackupFileUploading")}
</Text>
<Button
size="small"
label={t("Common:CancelButton")}
onClick={onClickButton}
/>
</Wrapper>
) : (
<SaveCancelButtons
className="save-cancel-buttons"

View File

@ -1,5 +1,6 @@
import { Consumer } from "@docspace/components/utils/context";
import { useState } from "react";
import { inject, observer } from "mobx-react";
import { Consumer } from "@docspace/components/utils/context";
import styled from "styled-components";
import SaveCancelButtons from "@docspace/components/save-cancel-buttons";
@ -9,6 +10,13 @@ import HelpButton from "@docspace/components/help-button";
import TableView from "./TableView";
import RowView from "./RowView";
const StyledText = styled(Text)`
color: #f21c0e;
margin-top: 16px;
font-size: 12px;
font-weight: 600;
`;
const Wrapper = styled.div`
display: flex;
align-items: center;
@ -33,6 +41,11 @@ const Wrapper = styled.div`
const SecondStep = (props) => {
const { t, onNextStepClick, onPrevStepClick, viewAs, showReminder } = props;
const [isExceeded, setIsExceeded] = useState(false);
const selectedUsers = 0;
const totalUsers = 10;
const licencelimit = 0;
const totalLicenceLimit = 100;
return (
<>
@ -45,17 +58,21 @@ const SecondStep = (props) => {
cancelButtonLabel={t("Common:Back")}
displaySettings={true}
/>
{isExceeded && <StyledText>{t("Settings:UserLimitExceeded")}</StyledText>}
<Wrapper>
<Text className="selected-users-count">Selected: 0/10 users</Text>
<Text className="selected-users-count">
{t("Settings:SelectedUsersCounter", { selectedUsers, totalUsers })}
</Text>
<Text className="selected-admins-count">
License limit Admins/Power: 0/100
{t("Settings:LicenseLimitCounter", {
licencelimit,
totalLicenceLimit,
})}
</Text>
<HelpButton
place="right"
offsetRight={0}
tooltipContent={
<Text fontSize="13px">Paste you tooltip content here</Text>
}
tooltipContent={<Text>{t("Settings:LicenseLimitDescription")}</Text>}
/>
</Wrapper>

View File

@ -1,36 +1,10 @@
import { Consumer } from "@docspace/components/utils/context";
import { inject, observer } from "mobx-react";
import styled from "styled-components";
import SaveCancelButtons from "@docspace/components/save-cancel-buttons";
import Text from "@docspace/components/text";
import HelpButton from "@docspace/components/help-button";
import TableView from "./TableView";
import RowView from "./RowView";
const Wrapper = styled.div`
display: flex;
align-items: center;
max-width: 660px;
background: #f8f9f9;
padding: 12px 16px;
border-radius: 6px;
margin: 16px 0;
.selected-users-count {
margin-right: 24px;
color: #555f65;
font-weight: 700;
}
.selected-admins-count {
margin-right: 8px;
color: #555f65;
font-weight: 700;
}
`;
const ThirdStep = (props) => {
const { t, onNextStepClick, onPrevStepClick, viewAs, showReminder } = props;
@ -45,19 +19,6 @@ const ThirdStep = (props) => {
cancelButtonLabel={t("Common:Back")}
displaySettings={true}
/>
<Wrapper>
<Text className="selected-users-count">Selected: 0/10 users</Text>
<Text className="selected-admins-count">
License limit Admins/Power: 0/100
</Text>
<HelpButton
place="right"
offsetRight={0}
tooltipContent={
<Text fontSize="13px">Paste you tooltip content here</Text>
}
/>
</Wrapper>
<Consumer>
{(context) =>