Web:Client: move 'Room admin' and 'DocSpace admin' translation keys to common

This commit is contained in:
TimofeyBoyko 2022-10-13 15:35:58 +05:00
parent c05a18eff8
commit e56b10d1e5
13 changed files with 33 additions and 35 deletions

View File

@ -2,7 +2,6 @@
"AddedManagers": "Managers added",
"ActivateBusinessPlan": "Activate Business plan?",
"AccessingProblem": "If you are an existing user and have problems accessing this portal please contact the portal administrator.",
"Administrator": "DocSpace admin",
"AdministratorDescription": "DocSpace configuration, room creation and administration, ability to invite and manage users in DocSpace and in virtual rooms, ability to manage access rights.",
"Benefits": "Benefits",
"BusinessTitle": "You are using {{planName}} plan",
@ -28,7 +27,6 @@
"Pay": "Pay",
"PayBeforeTheEndGracePeriod": "Make sure to make payment before the grace period is due",
"Room": "Room",
"RoomManager": "Room admin",
"RoomManagerDescription": "Room administration and archiving, user invitation and management. Several admins can be assigned to the room.",
"RenewSubscription": "Renew subscription to {{planName}} plan",
"StorageSpace": "Storage space used",

View File

@ -2,7 +2,6 @@
"Administrator": "Administrator",
"ChangeToGuest": "Change to {{guestCaption}}",
"ChangeToUser": "Change to {{userCaption}}",
"DocSpaceAdmin": "DocSpace admin",
"EmptyGroupDescription": "You can add new team members manually or invite them via link.",
"EmptyGroupTitle": "No teammates here yet",
"LblInviteAgain": "Invite again",
@ -18,7 +17,6 @@
"NotFoundUsers": "No users found",
"NotFoundUsersDescription": "No people matching you filter can be displayed. Please select other filter options or clear filter to view all the people in this section",
"ReassignmentData": "Data reassignment",
"RoomAdmin": "Room admin",
"SuccessfullyRemovedGroup": "Group has been removed successfully",
"UserStatus": "Status"
}

View File

@ -1,7 +1,6 @@
{
"AddedManagers": "Добавлено менеджеров",
"ActivateBusinessPlan": "Активировать {{planName}} план?",
"Administrator": "DocSpace администратор",
"AdministratorDescription": "Настройка DocSpace, создание и администрирование комнат, возможность приглашать пользователей и управлять ими в DocSpace и в виртуальных комнатах, возможность управлять правами доступа.",
"Benefits": "Преимущества",
"PlanTitle": "Вы используете {{planName}} план",
@ -27,7 +26,6 @@
"PayerDescription": "Данный пользователь осуществляет оплату за тарифный план. Никто кроме него не может настраивать и оплачивать квоту. Сменить плательщика может владелец портала, а также сам плательщик через клиентский портал Stripe.",
"PayBeforeTheEndGracePeriod": "Обязательно произведите оплату до истечения льготного периода",
"Room": "Комната",
"RoomManager": "Администратор комнаты",
"RoomManagerDescription": "Администрирование и архивирование комнат, приглашение пользователей и управление ими. В комнату могут быть назначены несколько администраторов.",
"RenewSubscription": "Продлить подписку на {{planName}} тариф",
"StorageSpace": "Используемое дисковое пространство",

View File

@ -263,7 +263,7 @@ const ArticleMainButtonContent = (props) => {
id: "main-button_administrator",
className: "main-button_drop-down",
icon: "/static/images/person.admin.react.svg",
label: t("People:DocSpaceAdmin"),
label: t("Common:DocSpaceAdmin"),
onClick: onInvite,
action: "administrator",
key: "administrator",
@ -272,7 +272,7 @@ const ArticleMainButtonContent = (props) => {
id: "main-button_manager",
className: "main-button_drop-down",
icon: "/static/images/person.manager.react.svg",
label: t("People:RoomAdmin"),
label: t("Common:RoomAdmin"),
onClick: onInvite,
action: "manager",
key: "manager",

View File

@ -51,10 +51,10 @@ class ChangeUserTypeDialogComponent extends React.Component {
switch (type) {
case "admin":
return t("People:DocSpaceAdmin");
return t("Common:DocSpaceAdmin");
case "manager":
return t("People:RoomAdmin");
return t("Common:RoomAdmin");
case "user":
default:

View File

@ -170,14 +170,14 @@ const PeopleTableRow = (props) => {
const adminOption = {
key: "admin",
title: t("DocSpaceAdmin"),
label: t("DocSpaceAdmin"),
title: t("Common:DocSpaceAdmin"),
label: t("Common:DocSpaceAdmin"),
action: "admin",
};
const managerOption = {
key: "manager",
title: t("RoomAdmin"),
label: t("RoomAdmin"),
title: t("Common:RoomAdmin"),
label: t("Common:RoomAdmin"),
action: "manager",
};
const userOption = {
@ -225,9 +225,9 @@ const PeopleTableRow = (props) => {
case "owner":
return t("Common:Owner");
case "admin":
return t("DocSpaceAdmin");
return t("Common:DocSpaceAdmin");
case "manager":
return t("RoomAdmin");
return t("Common:RoomAdmin");
case "user":
return t("Common:User");
}

View File

@ -219,7 +219,7 @@ const SectionHeaderContent = (props) => {
id: "main-button_administrator",
className: "main-button_drop-down",
icon: "/static/images/person.admin.react.svg",
label: t("DocSpaceAdmin"),
label: t("Common:DocSpaceAdmin"),
onClick: onInvite,
"data-action": "administrator",
key: "administrator",
@ -228,7 +228,7 @@ const SectionHeaderContent = (props) => {
id: "main-button_manager",
className: "main-button_drop-down",
icon: "/static/images/person.manager.react.svg",
label: t("RoomAdmin"),
label: t("Common:RoomAdmin"),
onClick: onInvite,
"data-action": "manager",
key: "manager",

View File

@ -45,9 +45,9 @@ const Accounts = ({
case "owner":
return t("Common:Owner");
case "admin":
return t("People:DocSpaceAdmin");
return t("Common:DocSpaceAdmin");
case "manager":
return t("People:RoomAdmin");
return t("Common:RoomAdmin");
case "user":
return t("Common:User");
}
@ -58,14 +58,14 @@ const Accounts = ({
const adminOption = {
key: "admin",
title: t("People:DocSpaceAdmin"),
label: t("People:DocSpaceAdmin"),
title: t("Common:DocSpaceAdmin"),
label: t("Common:DocSpaceAdmin"),
action: "admin",
};
const managerOption = {
key: "manager",
title: t("People:RoomAdmin"),
label: t("People:RoomAdmin"),
title: t("Common:RoomAdmin"),
label: t("Common:RoomAdmin"),
action: "manager",
};
const userOption = {

View File

@ -79,7 +79,7 @@ const PaymentsPage = ({
currentTariffPlanTitle,
tariffPlanTitle,
}) => {
const { t, ready } = useTranslation(["Payments", "Settings"]);
const { t, ready } = useTranslation(["Payments", "Common", "Settings"]);
const [isInitialLoading, setIsInitialLoading] = useState(true);
@ -155,10 +155,10 @@ const PaymentsPage = ({
<>
<Text isBold>{t("ManagerTypesDescription")}</Text>
<br />
<Text isBold>{t("Administrator")}</Text>
<Text isBold>{t("Common:DocSpaceAdmin")}</Text>
<Text>{t("AdministratorDescription")}</Text>
<br />
<Text isBold>{t("RoomManager")}</Text>
<Text isBold>{t("Common:RoomAdmin")}</Text>
<Text>{t("RoomManagerDescription")}</Text>
</>
}

View File

@ -170,8 +170,8 @@ class AccountsContextOptionsStore {
const adminOption = {
id: "context-menu_administrator",
className: "context-menu_drop-down",
label: t("DocSpaceAdmin"),
title: t("DocSpaceAdmin"),
label: t("Common:DocSpaceAdmin"),
title: t("Common:DocSpaceAdmin"),
onClick: (e) => onChangeType(e, t),
action: "admin",
key: "cm-administrator",
@ -179,8 +179,8 @@ class AccountsContextOptionsStore {
const managerOption = {
id: "context-menu_manager",
className: "context-menu_drop-down",
label: t("RoomAdmin"),
title: t("RoomAdmin"),
label: t("Common:RoomAdmin"),
title: t("Common:RoomAdmin"),
onClick: (e) => onChangeType(e, t),
action: "manager",
key: "cm-manager",

View File

@ -163,8 +163,8 @@ class PeopleStore {
const adminOption = {
id: "group-menu_administrator",
className: "group-menu_drop-down",
label: t("DocSpaceAdmin"),
title: t("DocSpaceAdmin"),
label: t("Common:DocSpaceAdmin"),
title: t("Common:DocSpaceAdmin"),
onClick: (e) => this.onChangeType(e, t),
"data-action": "admin",
key: "administrator",
@ -172,8 +172,8 @@ class PeopleStore {
const managerOption = {
id: "group-menu_manager",
className: "group-menu_drop-down",
label: t("RoomAdmin"),
title: t("RoomAdmin"),
label: t("Common:RoomAdmin"),
title: t("Common:RoomAdmin"),
onClick: (e) => this.onChangeType(e, t),
"data-action": "manager",
key: "manager",

View File

@ -72,6 +72,7 @@
"Department": "Department",
"Disconnect": "Disconnect",
"Documents": "Documents",
"DocSpaceAdmin": "DocSpace admin",
"Rooms": "Rooms",
"DomainIpAddress": "Domains as IP address are not supported",
"Done": "Done",
@ -160,6 +161,7 @@
"RegistrationEmail": "Your registration email",
"Role": "Role",
"Room": "Room",
"RoomAdmin": "Room admin",
"SameEmail": "You can't use the same email",
"SaveButton": "Save",
"SaveHereButton": "Save here",

View File

@ -65,6 +65,7 @@
"Department": "Отдел",
"Disconnect": "Отключить",
"Documents": "Документы",
"DocSpaceAdmin": "DocSpace администратор",
"Rooms": "Комнаты",
"DomainIpAddress": "IP адрес в качестве домена не поддерживается",
"Done": "Успешно",
@ -147,6 +148,7 @@
"Review": "Рецензирование",
"RegistrationEmail": "Ваш регистрационный email",
"Role": "Позиция",
"RoomAdmin": "Администратор комнаты",
"SameEmail": "Email совпадает с текущим",
"SaveButton": "Сохранить",
"SaveHereButton": "Сохранить сюда",