From 73352a23c1150ad530aa8946b7aa89e179787726 Mon Sep 17 00:00:00 2001 From: Alexey Safronov Date: Wed, 18 Dec 2019 13:48:04 +0300 Subject: [PATCH] web: Common: Add translation for Group label --- .../src/components/GroupSelector/GroupSelector.js | 1 - .../src/components/PeopleSelector/PeopleSelector.js | 2 +- .../src/components/PeopleSelector/locales/en/translation.json | 4 ++-- .../src/components/PeopleSelector/locales/ru/translation.json | 3 ++- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web/ASC.Web.Common/src/components/GroupSelector/GroupSelector.js b/web/ASC.Web.Common/src/components/GroupSelector/GroupSelector.js index abd4b1ba9e..4d883c8c18 100644 --- a/web/ASC.Web.Common/src/components/GroupSelector/GroupSelector.js +++ b/web/ASC.Web.Common/src/components/GroupSelector/GroupSelector.js @@ -108,7 +108,6 @@ class GroupSelector extends React.Component { searchPlaceHolderLabel={t("SearchPlaceholder")} selectButtonLabel={t("AddDepartmentsButtonLabel")} selectAllLabel={t("SelectAllLabel")} - groupsHeaderLabel={"Groups"} emptySearchOptionsLabel={t("EmptySearchOptionsLabel")} emptyOptionsLabel={t("EmptyOptionsLabel")} loadingLabel={t("LoadingLabel")} diff --git a/web/ASC.Web.Common/src/components/PeopleSelector/PeopleSelector.js b/web/ASC.Web.Common/src/components/PeopleSelector/PeopleSelector.js index b28a2992d9..dfc3075150 100644 --- a/web/ASC.Web.Common/src/components/PeopleSelector/PeopleSelector.js +++ b/web/ASC.Web.Common/src/components/PeopleSelector/PeopleSelector.js @@ -193,7 +193,7 @@ class PeopleSelector extends React.Component { searchPlaceHolderLabel={t("SearchUsersPlaceholder")} selectButtonLabel={t("AddMembersButtonLabel")} selectAllLabel={t("SelectAllLabel")} - groupsHeaderLabel={"Groups"} + groupsHeaderLabel={t("CustomDepartments", { departments: "Groups" })} //TODO: Replace to variable from settings emptySearchOptionsLabel={t("EmptySearchUsersResult")} emptyOptionsLabel={t("EmptyUsers")} loadingLabel={t("LoadingLabel")} diff --git a/web/ASC.Web.Common/src/components/PeopleSelector/locales/en/translation.json b/web/ASC.Web.Common/src/components/PeopleSelector/locales/en/translation.json index fc822ac0ee..79f6e88aa9 100644 --- a/web/ASC.Web.Common/src/components/PeopleSelector/locales/en/translation.json +++ b/web/ASC.Web.Common/src/components/PeopleSelector/locales/en/translation.json @@ -4,6 +4,6 @@ "SelectAllLabel": "Select all", "EmptySearchUsersResult": "There are no users with such name", "EmptyUsers": "There are no users", - "LoadingLabel": "Loading... Please wait..." - + "LoadingLabel": "Loading... Please wait...", + "CustomDepartments": "{{departments}}" } \ No newline at end of file diff --git a/web/ASC.Web.Common/src/components/PeopleSelector/locales/ru/translation.json b/web/ASC.Web.Common/src/components/PeopleSelector/locales/ru/translation.json index e5e046123f..98e29381c9 100644 --- a/web/ASC.Web.Common/src/components/PeopleSelector/locales/ru/translation.json +++ b/web/ASC.Web.Common/src/components/PeopleSelector/locales/ru/translation.json @@ -4,5 +4,6 @@ "SelectAllLabel": "Выбрать все", "EmptySearchUsersResult": "Нет такого пользователя", "EmptyUsers": "Нет пользователей", - "LoadingLabel": "Загрузка... Пожалуйста подождите..." + "LoadingLabel": "Загрузка... Пожалуйста подождите...", + "CustomDepartments": "{{departments}}" } \ No newline at end of file