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 authored and Serhii Tsymbaliuk committed 2018-09-18 13:51:51 +02:00
1 parent 460186806b
commit b5073e9670
2 files changed
+15 -3

No files matched your search

+12 -3
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',
},
};};
/**
+3
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"),