People.Client: ProfileActions: updateUserForm: added translations

This commit is contained in:
Daniil Senkiv 2020-02-03 17:58:29 +03:00
parent ea3ab6c723
commit 8c5b825e17
4 changed files with 25 additions and 13 deletions

View File

@ -370,6 +370,7 @@ class UpdateUserForm extends React.Component {
const pattern = getUserContactsPattern(); const pattern = getUserContactsPattern();
const contacts = getUserContacts(profile.contacts); const contacts = getUserContacts(profile.contacts);
//TODO: inject guestsCaption in 'ProfileTypePopupHelper' key instead of hardcoded 'Guests'
const tooltipTypeContent = const tooltipTypeContent =
<> <>
<Text <Text
@ -400,38 +401,38 @@ class UpdateUserForm extends React.Component {
</tr> </tr>
<tr> <tr>
<Td>{t("Mail")}</Td> <Td>{t("Mail")}</Td>
<Td>review</Td> <Td>{t('ReviewingCustomMode')}</Td>
<Td>-</Td> <Td>-</Td>
</tr> </tr>
<tr> <tr>
<Td>{t("DocumentsProduct")}</Td> <Td>{t("DocumentsProduct")}</Td>
<Td>full access</Td> <Td>{t('AccessRightsFullAccess')}</Td>
<Td>view</Td> <Td>{t('ViewAccess')}</Td>
</tr> </tr>
<tr> <tr>
<Td>{t("ProjectsProduct")}</Td> <Td>{t("ProjectsProduct")}</Td>
<Td>review</Td> <Td>{t('ReviewingCustomMode')}</Td>
<Td>-</Td> <Td>-</Td>
</tr> </tr>
<tr> <tr>
<Td>{t("CommunityProduct")}</Td> <Td>{t("CommunityProduct")}</Td>
<Td>full access</Td> <Td>{t('AccessRightsFullAccess')}</Td>
<Td>view</Td> <Td>{t('ViewAccess')}</Td>
</tr> </tr>
<tr> <tr>
<Td>{t("People")}</Td> <Td>{t("People")}</Td>
<Td>review</Td> <Td>{t('ReviewingCustomMode')}</Td>
<Td>-</Td> <Td>-</Td>
</tr> </tr>
<tr> <tr>
<Td>{t("Message")}</Td> <Td>{t("Message")}</Td>
<Td>review</Td> <Td>{t('ReviewingCustomMode')}</Td>
<Td>review</Td> <Td>{t('ReviewingCustomMode')}</Td>
</tr> </tr>
<tr> <tr>
<Td>{t("Calendar")}</Td> <Td>{t("Calendar")}</Td>
<Td>review</Td> <Td>{t('ReviewingCustomMode')}</Td>
<Td>review</Td> <Td>{t('ReviewingCustomMode')}</Td>
</tr> </tr>
</tbody> </tbody>
</Table> </Table>

View File

@ -34,6 +34,8 @@
"EditUserDialogTitle": "Edit profile", "EditUserDialogTitle": "Edit profile",
"ErrorUnknownFileImageType": "Unknown image file type", "ErrorUnknownFileImageType": "Unknown image file type",
"Error": "Error", "Error": "Error",
"ReviewingCustomMode": "Review",
"AccessRightsFullAccess": "Full access",
"CustomCreation": "{{user}} (creation)", "CustomCreation": "{{user}} (creation)",
@ -50,5 +52,6 @@
"maxSizeFileError": "Maximum file size exceeded", "maxSizeFileError": "Maximum file size exceeded",
"editAvatar": "Edit", "editAvatar": "Edit",
"CalendarSelectDate": "Select date", "CalendarSelectDate": "Select date",
"Calendar": "Calendar" "Calendar": "Calendar",
"ViewAccess": "View"
} }

View File

@ -33,6 +33,8 @@
"EditUserDialogTitle": "Редактирование профиля", "EditUserDialogTitle": "Редактирование профиля",
"ErrorUnknownFileImageType": "Неизвестный тип файла изображения", "ErrorUnknownFileImageType": "Неизвестный тип файла изображения",
"Error": "Ошибка", "Error": "Ошибка",
"ReviewingCustomMode": "Рецензирование",
"AccessRightsFullAccess": "Полный доступ",
"CustomCreation": "{{user}} (создание)", "CustomCreation": "{{user}} (создание)",
@ -49,5 +51,6 @@
"maxSizeFileError": "Превышен максимальный размер файла", "maxSizeFileError": "Превышен максимальный размер файла",
"editAvatar": "Изменить", "editAvatar": "Изменить",
"CalendarSelectDate": "Выберите дату", "CalendarSelectDate": "Выберите дату",
"Calendar": "Календарь" "Calendar": "Календарь",
"ViewAccess": "Просмотр"
} }

View File

@ -128,6 +128,7 @@
"FemaleSexStatus", "FemaleSexStatus",
"EditUserDialogTitle", "EditUserDialogTitle",
"ErrorUnknownFileImageType", "ErrorUnknownFileImageType",
"AccessRightsFullAccess",
"Error" "Error"
], ],
"FeedResource": [ "FeedResource": [
@ -136,6 +137,10 @@
"CommunityProduct", "CommunityProduct",
"Message", "Message",
"WriteComment" "WriteComment"
],
"CustomModeResource": [
"ReviewingCustomMode"
] ]
}, },
"Home": { "Home": {