Web: Moved translationKeys "AddButton" to "/static/locales/{lng}/Common.json"

This commit is contained in:
Alexey Safronov 2021-05-21 17:53:12 +03:00
parent c242a8ca3f
commit e52f868dd4
12 changed files with 10 additions and 13 deletions

View File

@ -1,5 +1,4 @@
{
"AddButton": "Hinzufügen",
"AddMembers": "Mitglieder hinzufügen",
"CustomNewDepartment": "{{groupCaption}} (Erstellung)",
"EmptyFieldError": "Leeres Feld",

View File

@ -1,6 +1,5 @@
{
"ActivationLink": "Aktivierungslink",
"AddButton": "Hinzufügen",
"AddContact": "Kontakt hinzufügen",
"AddPhoto": "Foto hinzufügen",
"Birthdate": "Geburtsdatum",

View File

@ -1,5 +1,4 @@
{
"AddButton": "Add",
"AddMembers": "Add members",
"CustomNewDepartment": "{{groupCaption}} (creation)",
"EmptyFieldError": "Empty field",

View File

@ -1,6 +1,5 @@
{
"ActivationLink": "Activation link",
"AddButton": "Add",
"AddContact": "Add contact",
"AddPhoto": "Add photo",
"Birthdate": "Date of Birth",

View File

@ -1,5 +1,4 @@
{
"AddButton": "Добавить",
"AddMembers": "Добавить участников",
"CustomNewDepartment": "{{groupCaption}} (создание)",
"EmptyFieldError": "Пустое поле",

View File

@ -1,6 +1,5 @@
{
"ActivationLink": "Ссылка для активации",
"AddButton": "Добавить",
"AddContact": "Добавить новый контакт",
"AddPhoto": "Добавить фотографию",
"Birthdate": "Дата рождения",

View File

@ -229,7 +229,7 @@ const SectionBodyContent = ({
if (nameError) setNameError(null);
};
const buttonLabel = id ? t("Common:SaveButton") : t("AddButton");
const buttonLabel = id ? t("Common:SaveButton") : t("Common:AddButton");
return (
<MainContainer>

View File

@ -445,7 +445,7 @@ class CreateUserForm extends React.Component {
role={getUserRole(profile)}
editing={true}
source={croppedAvatar}
editLabel={t("AddButton")}
editLabel={t("Common:AddButton")}
editAction={
isMobile ? this.openAvatarEditorPage : this.openAvatarEditor
}
@ -592,7 +592,7 @@ class CreateUserForm extends React.Component {
<DepartmentField
labelText={`${groupCaption}:`}
isDisabled={isLoading}
showGroupSelectorButtonTitle={t("AddButton")}
showGroupSelectorButtonTitle={t("Common:AddButton")}
onShowGroupSelector={this.onShowGroupSelector}
onCloseGroupSelector={this.onCloseGroupSelector}
onRemoveGroup={this.onRemoveGroup}

View File

@ -823,7 +823,7 @@ class UpdateUserForm extends React.Component {
<DepartmentField
labelText={`${groupCaption}:`}
isDisabled={isLoading || !isAdmin}
showGroupSelectorButtonTitle={t("AddButton")}
showGroupSelectorButtonTitle={t("Common:AddButton")}
onShowGroupSelector={this.onShowGroupSelector}
onCloseGroupSelector={this.onCloseGroupSelector}
onRemoveGroup={this.onRemoveGroup}

View File

@ -32,5 +32,6 @@
"SignInWithTwitter": "Login über Twitter",
"Pin": "Anheften",
"Unpin": "Lösen",
"ShowUsersList": "Liste der Benutzer anzeigen"
"ShowUsersList": "Liste der Benutzer anzeigen",
"AddButton": "Hinzufügen"
}

View File

@ -32,5 +32,6 @@
"SignInWithTwitter": "Sign in with Twitter",
"Pin": "Pin",
"Unpin": "Unpin",
"ShowUsersList": "View users list"
"ShowUsersList": "View users list",
"AddButton": "Add"
}

View File

@ -32,5 +32,6 @@
"SignInWithTwitter": "Вход через Twitter",
"Pin": "Закрепить",
"Unpin": "Открепить",
"ShowUsersList": "Показать список пользователей"
"ShowUsersList": "Показать список пользователей",
"AddButton": "Добавить"
}