Skip to content

Commit

Permalink
CB-5833 adds description for the username in User Creation Form
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyteleshev committed Oct 22, 2024
1 parent b4db34e commit 06d8055
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,16 @@ export const UserFormInfoCredentials = observer<Props>(function UserFormInfoCred
return (
<Container gap vertical>
<GroupTitle keepSize>{translate('authentication_user_credentials')}</GroupTitle>
<InputField type="text" name="userId" state={tabState.state} readOnly={editing || disabled} keepSize tiny required>
<InputField
description={!editing ? translate('authentication_user_name_description') : undefined}
type="text"
name="userId"
state={tabState.state}
readOnly={editing || disabled}
keepSize
tiny
required
>
{translate('authentication_user_name')}
</InputField>
{local && (
Expand Down
1 change: 1 addition & 0 deletions webapp/packages/plugin-authentication/src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default [
['authentication_identity_provider_dialog_subtitle', 'Choose configuration you want to sign in with'],

['authentication_user_name', 'Username'],
['authentication_user_name_description', 'Will be saved in lowercase'],
['authentication_user_role', 'Role'],
['authentication_user_credentials', 'Credentials'],
['authentication_user_meta_parameters', 'Parameters'],
Expand Down
34 changes: 22 additions & 12 deletions webapp/packages/plugin-authentication/src/locales/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,36 @@ export default [
['authentication_login', 'Connexion'],
['authentication_logout', 'Déconnexion'],
['authentication_logout_error', 'Impossible de se déconnecter'],
['authentication_authenticate', 'S\'authentifier'],
['authentication_authenticate', "S'authentifier"],
['authentication_authorizing', 'Autorisation...'],
['authentication_auth_federated', 'Fédéré'],
['authentication_auth_force_session_logout', 'Forcer la déconnexion de toutes les autres sessions'],
['authentication_auth_force_session_logout_popup_title', 'Déconnecter les autres sessions'],
['authentication_auth_force_session_logout_popup_message', 'Tous les utilisateurs seront déconnectés de tous les appareils. Voulez-vous continuer ?'],
[
'authentication_auth_force_session_logout_popup_message',
'Tous les utilisateurs seront déconnectés de tous les appareils. Voulez-vous continuer ?',
],
['authentication_auth_force_session_logout_checkbox_tooltip', 'Pour appliquer cette option, vous devez vous reconnecter'],
['authentication_auth_additional', 'Supplémentaire'],
['authentication_select_provider', 'Sélectionner un fournisseur disponible'],
['authentication_configure', 'Veuillez configurer les méthodes d\'authentification'],
['authentication_provider_disabled', 'La méthode d\'authentification est désactivée'],
['authentication_configure', "Veuillez configurer les méthodes d'authentification"],
['authentication_provider_disabled', "La méthode d'authentification est désactivée"],
['authentication_request_token', 'Une authentification supplémentaire est requise'],
['authentication_identity_provider_search_placeholder', 'Rechercher le nom ou la description de la configuration...'],
['authentication_identity_provider_dialog_subtitle', 'Choisissez la configuration avec laquelle vous souhaitez vous connecter'],

['authentication_user_name', 'Nom d\'utilisateur'],
['authentication_user_name', "Nom d'utilisateur"],
['authentication_user_name_description', 'Will be saved in lowercase'],
['authentication_user_role', 'Rôle'],
['authentication_user_credentials', 'Identifiants'],
['authentication_user_meta_parameters', 'Paramètres'],
['authentication_team_meta_parameters', 'Paramètres'],
['authentication_user_password', 'Mot de passe de l\'utilisateur'],
['authentication_user_password', "Mot de passe de l'utilisateur"],
['authentication_user_password_repeat', 'Répéter le mot de passe'],
['authentication_user_team', 'Équipe de l\'utilisateur'],
['authentication_user_status', 'Statut de l\'utilisateur'],
['authentication_user_team', "Équipe de l'utilisateur"],
['authentication_user_status', "Statut de l'utilisateur"],
['authentication_user_enabled', 'Activé'],
['authentication_user_login_not_set', 'Le nom d\'utilisateur ne peut pas être vide'],
['authentication_user_login_not_set', "Le nom d'utilisateur ne peut pas être vide"],
['authentication_user_team_not_set', 'Au moins une équipe doit être sélectionnée'],
['authentication_user_role_not_set', '{alias:authentication_user_role} est requis'],
['authentication_user_password_not_set', '{alias:authentication_user_password} est requis'],
Expand All @@ -46,8 +50,14 @@ export default [
['authentication_team_icon_tooltip', 'Équipe'],

['plugin_authentication_user_loading_error', 'Impossible de charger les données utilisateur'],
['plugin_authentication_loading_error_dialog_title', 'Erreur d\'authentification'],
['plugin_authentication_loading_error_dialog_message', 'Une erreur est survenue lors du chargement des données utilisateur. Voulez-vous vous déconnecter ?'],
['plugin_authentication_loading_error_dialog_title', "Erreur d'authentification"],
[
'plugin_authentication_loading_error_dialog_message',
'Une erreur est survenue lors du chargement des données utilisateur. Voulez-vous vous déconnecter ?',
],

['plugin_authentication_authentication_method_disabled', 'La méthode d\'authentification est désactivée, veuillez configurer les méthodes d\'authentification dans les paramètres'],
[
'plugin_authentication_authentication_method_disabled',
"La méthode d'authentification est désactivée, veuillez configurer les méthodes d'authentification dans les paramètres",
],
];
1 change: 1 addition & 0 deletions webapp/packages/plugin-authentication/src/locales/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default [
['authentication_auth_additional', 'Additional'],
['authentication_request_token', 'Autenticazione addizionale richiesta'],
['authentication_user_name', 'Nome utente'],
['authentication_user_name_description', 'Will be saved in lowercase'],
['authentication_user_role', 'Role'],
['authentication_user_credentials', 'Credenziali'],
['authentication_user_meta_parameters', 'Parameters'],
Expand Down
1 change: 1 addition & 0 deletions webapp/packages/plugin-authentication/src/locales/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default [
['authentication_identity_provider_dialog_subtitle', 'Выберите конфигурацию с помощью которой вы хотите войти'],

['authentication_user_name', 'Имя'],
['authentication_user_name_description', 'Будет сохранено в нижнем регистре'],
['authentication_user_role', 'Роль'],
['authentication_user_credentials', 'Учетные данные'],
['authentication_user_meta_parameters', 'Параметры'],
Expand Down
5 changes: 3 additions & 2 deletions webapp/packages/plugin-authentication/src/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default [
['authentication_login_dialog_title', '认证'],
['authentication_login', '登录'],
['authentication_logout', '注销'],
['authentication_logout_error', "无法注销"],
['authentication_logout_error', '无法注销'],
['authentication_authenticate', '认证'],
['authentication_authorizing', '认证中...'],
['authentication_auth_federated', '联合认证'],
Expand All @@ -26,6 +26,7 @@ export default [
['authentication_identity_provider_dialog_subtitle', '选择您要用于登录的配置'],

['authentication_user_name', '用户名称'],
['authentication_user_name_description', 'Will be saved in lowercase'],
['authentication_user_role', 'Role'],
['authentication_user_credentials', '凭据'],
['authentication_user_meta_parameters', '参数'],
Expand All @@ -42,7 +43,7 @@ export default [
['authentication_user_login_cant_be_used', '抱歉,不能使用该名称'],
['authentication_user_icon_tooltip', '用户'],

['plugin_authentication_user_loading_error', "无法加载用户数据"],
['plugin_authentication_user_loading_error', '无法加载用户数据'],
['plugin_authentication_loading_error_dialog_title', '认证错误'],
['plugin_authentication_loading_error_dialog_message', '加载用户数据出错,是否注销?'],

Expand Down

0 comments on commit 06d8055

Please sign in to comment.