Add title to 'remove' dialog for 'association_table' widget of 'Hosts' entity

To improve translation quality the title of 'Remove' dialog,
which is initialized within details table of the entity, 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:
Stanislav Levin 2018-09-16 23:14:45 +03:00 committed by Serhii Tsymbaliuk
parent 43d9eda919
commit 4b8509f9cd
2 changed files with 32 additions and 10 deletions

View File

@ -202,7 +202,7 @@ return {
add_method: 'allow_retrieve_keytab', add_method: 'allow_retrieve_keytab',
remove_method: 'disallow_retrieve_keytab', remove_method: 'disallow_retrieve_keytab',
add_title: '@i18n:keytab.add_retrive', add_title: '@i18n:keytab.add_retrive',
remove_title: '@i18n:keytab.remove_retrieve', remove_title: '@i18n:keytab.remove_users_retrieve',
columns: [ columns: [
{ {
name: 'ipaallowedtoperform_read_keys_user', name: 'ipaallowedtoperform_read_keys_user',
@ -219,7 +219,7 @@ return {
add_method: 'allow_retrieve_keytab', add_method: 'allow_retrieve_keytab',
remove_method: 'disallow_retrieve_keytab', remove_method: 'disallow_retrieve_keytab',
add_title: '@i18n:keytab.add_retrive', add_title: '@i18n:keytab.add_retrive',
remove_title: '@i18n:keytab.remove_retrieve', remove_title: '@i18n:keytab.remove_groups_retrieve',
columns: [ columns: [
{ {
name: 'ipaallowedtoperform_read_keys_group', name: 'ipaallowedtoperform_read_keys_group',
@ -236,7 +236,7 @@ return {
add_method: 'allow_retrieve_keytab', add_method: 'allow_retrieve_keytab',
remove_method: 'disallow_retrieve_keytab', remove_method: 'disallow_retrieve_keytab',
add_title: '@i18n:keytab.add_retrive', add_title: '@i18n:keytab.add_retrive',
remove_title: '@i18n:keytab.remove_retrieve', remove_title: '@i18n:keytab.remove_hosts_retrieve',
columns: [ columns: [
{ {
name: 'ipaallowedtoperform_read_keys_host', name: 'ipaallowedtoperform_read_keys_host',
@ -253,7 +253,7 @@ return {
add_method: 'allow_retrieve_keytab', add_method: 'allow_retrieve_keytab',
remove_method: 'disallow_retrieve_keytab', remove_method: 'disallow_retrieve_keytab',
add_title: '@i18n:keytab.add_retrive', add_title: '@i18n:keytab.add_retrive',
remove_title: '@i18n:keytab.remove_retrieve', remove_title: '@i18n:keytab.remove_hostgroups_retrieve',
columns: [ columns: [
{ {
name: 'ipaallowedtoperform_read_keys_hostgroup', name: 'ipaallowedtoperform_read_keys_hostgroup',
@ -277,7 +277,7 @@ return {
add_method: 'allow_create_keytab', add_method: 'allow_create_keytab',
remove_method: 'disallow_create_keytab', remove_method: 'disallow_create_keytab',
add_title: '@i18n:keytab.add_create', add_title: '@i18n:keytab.add_create',
remove_title: '@i18n:keytab.remove_create', remove_title: '@i18n:keytab.remove_users_create',
columns: [ columns: [
{ {
name: 'ipaallowedtoperform_write_keys_user', name: 'ipaallowedtoperform_write_keys_user',
@ -294,7 +294,7 @@ return {
add_method: 'allow_create_keytab', add_method: 'allow_create_keytab',
remove_method: 'disallow_create_keytab', remove_method: 'disallow_create_keytab',
add_title: '@i18n:keytab.add_create', add_title: '@i18n:keytab.add_create',
remove_title: '@i18n:keytab.remove_create', remove_title: '@i18n:keytab.remove_groups_create',
columns: [ columns: [
{ {
name: 'ipaallowedtoperform_write_keys_group', name: 'ipaallowedtoperform_write_keys_group',
@ -311,7 +311,7 @@ return {
add_method: 'allow_create_keytab', add_method: 'allow_create_keytab',
remove_method: 'disallow_create_keytab', remove_method: 'disallow_create_keytab',
add_title: '@i18n:keytab.add_create', add_title: '@i18n:keytab.add_create',
remove_title: '@i18n:keytab.remove_create', remove_title: '@i18n:keytab.remove_hosts_create',
columns: [ columns: [
{ {
name: 'ipaallowedtoperform_write_keys_host', name: 'ipaallowedtoperform_write_keys_host',
@ -328,7 +328,7 @@ return {
add_method: 'allow_create_keytab', add_method: 'allow_create_keytab',
remove_method: 'disallow_create_keytab', remove_method: 'disallow_create_keytab',
add_title: '@i18n:keytab.add_create', add_title: '@i18n:keytab.add_create',
remove_title: '@i18n:keytab.remove_create', remove_title: '@i18n:keytab.remove_hostgroups_create',
columns: [ columns: [
{ {
name: 'ipaallowedtoperform_write_keys_hostgroup', name: 'ipaallowedtoperform_write_keys_hostgroup',

View File

@ -318,8 +318,30 @@ class i18n_messages(Command):
"add_retrive": _("Allow ${other_entity} to retrieve keytab of ${primary_key}"), "add_retrive": _("Allow ${other_entity} to retrieve keytab of ${primary_key}"),
"allowed_to_create": _("Allowed to create keytab"), "allowed_to_create": _("Allowed to create keytab"),
"allowed_to_retrieve": _("Allowed to retrieve keytab"), "allowed_to_retrieve": _("Allowed to retrieve keytab"),
"remove_create": _("Disallow ${other_entity} to create keytab of ${primary_key}"), "remove_groups_create": _(
"remove_retrieve": _("Disallow ${other_entity} to retrieve keytab of ${primary_key}"), "Disallow user groups to create keytab of '${primary_key}'"
),
"remove_groups_retrieve": _(
"Disallow user groups to retrieve keytab of '${primary_key}'"
),
"remove_hostgroups_create": _(
"Disallow host groups to create keytab of '${primary_key}'"
),
"remove_hostgroups_retrieve": _(
"Disallow host groups to retrieve keytab of '${primary_key}'"
),
"remove_hosts_create": _(
"Disallow hosts to create keytab of '${primary_key}'"
),
"remove_hosts_retrieve": _(
"Disallow hosts to retrieve keytab of '${primary_key}'"
),
"remove_users_create": _(
"Disallow users to create keytab of '${primary_key}'"
),
"remove_users_retrieve": _(
"Disallow users to retrieve keytab of '${primary_key}'"
),
}, },
"krbaliases": { "krbaliases": {
"adder_title": _("Add Kerberos Principal Alias"), "adder_title": _("Add Kerberos Principal Alias"),