Preferences: Changed 'Edit profile' to 'Profile' (#61376)

* Changed 'Edit profile' to 'Profile'

The profile is not always editable, e.g. when it is synec via OAuth,
and all the other sections of the preferences are titled without a
verb.

* Fix frontend test
This commit is contained in:
Armand Grillet 2023-01-13 09:59:11 +01:00 committed by GitHub
parent 490a787d9d
commit 331fa686e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 9 additions and 9 deletions

View File

@ -31,7 +31,7 @@ export const UserProfileEditForm: FC<Props> = ({ user, isSavingUser, updateProfi
<Form onSubmit={onSubmitProfileUpdate} validateOn="onBlur">
{({ register, errors }) => {
return (
<FieldSet label={<Trans i18nKey="user-profile.title">Edit profile</Trans>}>
<FieldSet label={<Trans i18nKey="user-profile.title">Profile</Trans>}>
<Field
label={t('user-profile.fields.name-label', 'Name') + lockMessage}
invalid={!!errors.name}

View File

@ -130,11 +130,11 @@ describe('UserProfileEditPage', () => {
});
describe('when user has loaded', () => {
it('should show edit profile form', async () => {
it('should show profile form', async () => {
await getTestContext();
const { name, email, username, saveProfile } = getSelectors();
expect(screen.getByText(/edit profile/i)).toBeInTheDocument();
expect(screen.getByText(/profile/i)).toBeInTheDocument();
expect(name()).toBeInTheDocument();
expect(name()).toHaveValue('Test User');
expect(email()).toBeInTheDocument();

View File

@ -533,7 +533,7 @@
"name-label": "Name",
"username-label": "Benutzername"
},
"title": "Profil bearbeiten"
"title": "Profil"
},
"user-session": {
"browser-column": "Browser & Betriebssystem",

View File

@ -533,7 +533,7 @@
"name-label": "Name",
"username-label": "Username"
},
"title": "Edit profile"
"title": "Profile"
},
"user-session": {
"browser-column": "Browser & OS",

View File

@ -533,7 +533,7 @@
"name-label": "Nombre",
"username-label": "Nombre de usuario"
},
"title": "Editar perfil"
"title": "Perfil"
},
"user-session": {
"browser-column": "Navegador y sistema operativo",

View File

@ -533,7 +533,7 @@
"name-label": "Nom",
"username-label": "Nom dutilisateur"
},
"title": "Modifier le profil"
"title": "Profil"
},
"user-session": {
"browser-column": "Navigateur et système d'exploitation",

View File

@ -533,7 +533,7 @@
"name-label": "Ńämę",
"username-label": "Ůşęřʼnämę"
},
"title": "Ēđįŧ přőƒįľę"
"title": "Přőƒįľę"
},
"user-session": {
"browser-column": "ßřőŵşęř & ØŜ",

View File

@ -533,7 +533,7 @@
"name-label": "姓名",
"username-label": "用户名"
},
"title": "编辑简介"
"title": "用户资料"
},
"user-session": {
"browser-column": "浏览器和操作系统",