Add title to remove dialog of 'Users' entity

To improve translation quality the title of Remove dialog
should be specified explicitly in the spec and should be an
entire sentence.

Fixes: https://pagure.io/freeipa/issue/7699
Reviewed-By: Serhii Tsymbaliuk <stsymbal@redhat.com>
This commit is contained in:
Stanislav Levin authored and Serhii Tsymbaliuk committed 2018-09-18 13:51:51 +02:00
1 parent 09750589f5
commit 5eea5354ca
3 files changed
+14 -2

No files matched your search

+10 -2
View File
@@ -87,7 +87,11 @@ return {
],
policies: [
mod_user.stageuser_sidebar_policy
]
],
deleter_dialog: {
title: '@i18n:objects.stageuser.remove',
$factory: IPA.search_deleter_dialog,
},
},
{
$type: 'details',
@@ -329,7 +333,11 @@ stageuser.search_preserved_facet_spec = {
],
policies: [
mod_user.stageuser_sidebar_policy
]
],
deleter_dialog: {
title: '@i18n:objects.stageuser.preserved_remove',
$factory: IPA.search_deleter_dialog,
},
};
mod_user.entity_spec.policies = mod_user.entity_spec.policies || {};
+1
View File
@@ -146,6 +146,7 @@ return {
IPA.user.stageuser_sidebar_policy
],
deleter_dialog: {
title: '@i18n:objects.user.remove',
$factory: IPA.user.deleter_dialog
}
},
+3
View File
@@ -831,6 +831,8 @@ class i18n_messages(Command):
"activate_success": _("${count} user(s) activated"),
"label": _("Stage users"),
"preserved_label": _("Preserved users"),
"preserved_remove": _("Remove preserved users"),
"remove": _("Remove stage users"),
"stage_confirm": _("Are you sure you want to stage selected users?"),
"stage_success": _("${count} users(s) staged"),
"stage_one_confirm": _("Are you sure you want to stage ${object}?"),
@@ -908,6 +910,7 @@ class i18n_messages(Command):
"mode_delete": _("delete"),
"mode_preserve": _("preserve"),
"noprivate": _("No private group"),
"remove": _("Remove users"),
"status_confirmation": _("Are you sure you want to ${action} the user?<br/>The change will take effect immediately."),
"status_link": _("Click to ${action}"),
"unlock": _("Unlock"),