Add title to remove dialog of 'HBAC' 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:11:57 +03:00 committed by Serhii Tsymbaliuk
parent 2d9cdd924d
commit 460186806b
2 changed files with 16 additions and 4 deletions

View File

@ -98,7 +98,10 @@ var spec = {
],
adder_dialog: {
fields: [ 'cn' ]
}
},
deleter_dialog: {
title: '@i18n:objects.hbacrule.remove',
},
};
add_hbacrule_details_facet_widgets(spec.facets[1]);
@ -162,7 +165,10 @@ return {
name: 'description'
}
]
}
},
deleter_dialog: {
title: '@i18n:objects.hbacsvc.remove',
},
};};
var make_service_group_spec = function() {
@ -221,7 +227,10 @@ return {
name: 'description'
}
]
}
},
deleter_dialog: {
title: '@i18n:objects.hbacsvcgroup.remove',
},
};};
/**
@ -503,4 +512,4 @@ exp.register = function() {
phases.on('registration', exp.register);
return exp;
});
});

View File

@ -615,6 +615,7 @@ class i18n_messages(Command):
"anyone": _("Anyone"),
"host": _("Accessing"),
"ipaenabledflag": _("Rule status"),
"remove": _("Remove HBAC rules"),
"service": _("Via Service"),
"specified_hosts": _("Specified Hosts and Groups"),
"specified_services": _("Specified Services and Groups"),
@ -622,8 +623,10 @@ class i18n_messages(Command):
"user": _("Who"),
},
"hbacsvc": {
"remove": _("Remove HBAC services"),
},
"hbacsvcgroup": {
"remove": _("Remove HBAC service groups"),
"services": _("Services"),
},
"hbactest": {