mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add title to 'unprovision' dialog
To improve translation quality the title of 'unprovision' dialog should be specified explicitly in the spec and should be an entire sentence. Fixes: https://pagure.io/freeipa/issue/7704 Reviewed-By: Serhii Tsymbaliuk <stsymbal@redhat.com>
This commit is contained in:
parent
57e65a5c9f
commit
6b27c20326
@ -927,8 +927,6 @@ IPA.host_unprovision_dialog = function(spec) {
|
||||
var that = IPA.dialog(spec);
|
||||
that.facet = spec.facet;
|
||||
|
||||
that.title = that.title.replace('${entity}', that.entity.metadata.label_singular);
|
||||
|
||||
that.create_content = function() {
|
||||
that.container.append(text.get('@i18n:objects.host.unprovision_confirmation'));
|
||||
};
|
||||
|
@ -654,9 +654,6 @@ IPA.service.unprovision_dialog = function(spec) {
|
||||
var that = IPA.dialog(spec);
|
||||
that.facet = spec.facet;
|
||||
|
||||
var entity_singular = that.entity.metadata.label_singular;
|
||||
that.title = that.title.replace('${entity}', entity_singular);
|
||||
|
||||
that.create_content = function() {
|
||||
that.container.append(text.get('@i18n:objects.service.unprovision_confirmation'));
|
||||
};
|
||||
|
@ -837,7 +837,7 @@ class i18n_messages(Command):
|
||||
"status": _("Status"),
|
||||
"unprovision": _("Unprovision"),
|
||||
"unprovision_confirmation": _("Are you sure you want to unprovision this host?"),
|
||||
"unprovision_title": _("Unprovisioning ${entity}"),
|
||||
"unprovision_title": _("Unprovisioning host"),
|
||||
"unprovisioned": _("Host unprovisioned"),
|
||||
},
|
||||
"hostgroup": {
|
||||
@ -1051,7 +1051,7 @@ class i18n_messages(Command):
|
||||
"status": _("Status"),
|
||||
"unprovision": _("Unprovision"),
|
||||
"unprovision_confirmation": _("Are you sure you want to unprovision this service?"),
|
||||
"unprovision_title": _("Unprovisioning ${entity}"),
|
||||
"unprovision_title": _("Unprovisioning service"),
|
||||
"unprovisioned": _("Service unprovisioned"),
|
||||
"valid": _("Kerberos Key Present, Service Provisioned"),
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user