Profile: Rename profile page from preferences to profile (#61777)

* Rename preferences to Profile

* Fixed tests and ran i18 extract
This commit is contained in:
Torkel Ödegaard 2023-01-24 09:32:49 +01:00 committed by GitHub
parent e5e8bb4dea
commit 38d3d1c02b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 11 additions and 18 deletions

View File

@ -279,7 +279,7 @@ func (s *ServiceImpl) getProfileNode(c *models.ReqContext) *navtree.NavLink {
children := []*navtree.NavLink{
{
Text: "Preferences", Id: "profile/settings", Url: s.cfg.AppSubURL + "/profile", Icon: "sliders-v-alt",
Text: "Profile", Id: "profile/settings", Url: s.cfg.AppSubURL + "/profile", Icon: "sliders-v-alt",
},
}

View File

@ -126,7 +126,7 @@ export function getNavTitle(navId: string | undefined) {
case 'help':
return t('nav.help.title', 'Help');
case 'profile/settings':
return t('nav.profile/settings.title', 'Preferences');
return t('nav.profile/settings.title', 'Profile');
case 'profile/notifications':
return t('nav.profile/notifications.title', 'Notification history');
case 'profile/password':

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">Profile</Trans>}>
<FieldSet>
<Field
label={t('user-profile.fields.name-label', 'Name') + lockMessage}
invalid={!!errors.name}

View File

@ -134,7 +134,6 @@ describe('UserProfileEditPage', () => {
await getTestContext();
const { name, email, username, saveProfile } = getSelectors();
expect(screen.getByText(/profile/i)).toBeInTheDocument();
expect(name()).toBeInTheDocument();
expect(name()).toHaveValue('Test User');
expect(email()).toBeInTheDocument();

View File

@ -555,8 +555,7 @@
"name-error": "Name ist erforderlich",
"name-label": "Name",
"username-label": "Benutzername"
},
"title": "Profil"
}
},
"user-session": {
"browser-column": "Browser & Betriebssystem",

View File

@ -285,7 +285,7 @@
"title": "Change password"
},
"profile/settings": {
"title": "Preferences"
"title": "Profile"
},
"profile/switch-org": "Switch organization",
"scenes": {
@ -555,8 +555,7 @@
"name-error": "Name is required",
"name-label": "Name",
"username-label": "Username"
},
"title": "Profile"
}
},
"user-session": {
"browser-column": "Browser & OS",

View File

@ -555,8 +555,7 @@
"name-error": "El nombre es obligatorio",
"name-label": "Nombre",
"username-label": "Nombre de usuario"
},
"title": "Perfil"
}
},
"user-session": {
"browser-column": "Navegador y sistema operativo",

View File

@ -555,8 +555,7 @@
"name-error": "Un nom est obligatoire",
"name-label": "Nom",
"username-label": "Nom dutilisateur"
},
"title": "Profil"
}
},
"user-session": {
"browser-column": "Navigateur et système d'exploitation",

View File

@ -285,7 +285,7 @@
"title": "Cĥäʼnģę päşşŵőřđ"
},
"profile/settings": {
"title": "Přęƒęřęʼnčęş"
"title": "Přőƒįľę"
},
"profile/switch-org": "Ŝŵįŧčĥ őřģäʼnįžäŧįőʼn",
"scenes": {
@ -555,8 +555,7 @@
"name-error": "Ńämę įş řęqūįřęđ",
"name-label": "Ńämę",
"username-label": "Ůşęřʼnämę"
},
"title": "Přőƒįľę"
}
},
"user-session": {
"browser-column": "ßřőŵşęř & ØŜ",

View File

@ -555,8 +555,7 @@
"name-error": "姓名是必填项",
"name-label": "姓名",
"username-label": "用户名"
},
"title": "用户资料"
}
},
"user-session": {
"browser-column": "浏览器和操作系统",