Add title to remove dialog of 'Sudo' 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 2018-09-14 09:23:49 +03:00 committed by Serhii Tsymbaliuk
parent 460186806b
commit b5073e9670
2 changed files with 15 additions and 3 deletions

View File

@ -98,7 +98,10 @@ var spec = {
],
adder_dialog: {
fields: [ 'cn' ]
}
},
deleter_dialog: {
title: '@i18n:objects.sudorule.remove',
},
};
add_sudorule_details_facet_widgets(spec.facets[1]);
@ -163,7 +166,10 @@ return {
name: 'description'
}
]
}
},
deleter_dialog: {
title: '@i18n:objects.sudocmd.remove',
},
};};
@ -223,7 +229,10 @@ return {
name: 'description'
}
]
}
},
deleter_dialog: {
title: '@i18n:objects.sudocmdgroup.remove',
},
};};
/**

View File

@ -855,9 +855,11 @@ class i18n_messages(Command):
},
"sudocmd": {
"groups": _("Groups"),
"remove": _("Remove sudo commands"),
},
"sudocmdgroup": {
"commands": _("Commands"),
"remove": _("Remove sudo command groups"),
},
"sudorule": {
"allow": _("Allow"),
@ -873,6 +875,7 @@ class i18n_messages(Command):
"option_added": _("Option added"),
"option_removed": _("${count} option(s) removed"),
"options": _("Options"),
"remove": _("Remove sudo rules"),
"runas": _("As Whom"),
"specified_commands": _("Specified Commands and Groups"),
"specified_groups": _("Specified Groups"),