mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix translation of profile menu
To be translatable label field should be marked with @i18n. Also these messages should be provided by i18n_messages. Fixes: https://pagure.io/freeipa/issue/7559 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com> Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
committed by
Rob Crittenden
parent
6bc3715045
commit
7f9f59bae2
@@ -259,12 +259,14 @@ define(['dojo/_base/declare',
|
||||
items: [
|
||||
{
|
||||
name: 'profile',
|
||||
label: 'Profile',
|
||||
label: text.get('@i18n:profile-menu.profile',
|
||||
'Profile'),
|
||||
icon: 'fa-user'
|
||||
},
|
||||
{
|
||||
name: 'password_reset',
|
||||
label: 'Change password',
|
||||
label: text.get('@i18n:profile-menu.password_reset',
|
||||
'Change password'),
|
||||
icon: 'fa-key'
|
||||
},
|
||||
{
|
||||
@@ -272,12 +274,13 @@ define(['dojo/_base/declare',
|
||||
},
|
||||
{
|
||||
name: 'configuration',
|
||||
label: 'Customization',
|
||||
label: text.get('@i18n:profile-menu.configuration',
|
||||
'Customization'),
|
||||
icon: 'fa-gear'
|
||||
},
|
||||
{
|
||||
name: 'about',
|
||||
label: 'About',
|
||||
label: text.get('@i18n:profile-menu.about', 'About'),
|
||||
icon: 'fa-question'
|
||||
},
|
||||
{
|
||||
@@ -285,7 +288,8 @@ define(['dojo/_base/declare',
|
||||
},
|
||||
{
|
||||
name: 'logout',
|
||||
label: 'Log out',
|
||||
label: text.get('@i18n:profile-menu.logout',
|
||||
'Log out'),
|
||||
icon: 'fa-sign-out'
|
||||
}
|
||||
]
|
||||
|
||||
@@ -930,6 +930,13 @@ class i18n_messages(Command):
|
||||
"token_id": _("Token ID"),
|
||||
"verify_password": _("Verify Password"),
|
||||
},
|
||||
"profile-menu": {
|
||||
"about": _("About"),
|
||||
"configuration": _("Customization"),
|
||||
"logout": _("Log out"),
|
||||
"password_reset": _("Change password"),
|
||||
"profile": _("Profile"),
|
||||
},
|
||||
"search": {
|
||||
"delete_confirm": _("Are you sure you want to delete selected entries?"),
|
||||
"deleted": _("${count} item(s) deleted"),
|
||||
|
||||
Reference in New Issue
Block a user