Add title to 'Remove' dialog for 'association_table' widget of 'Automember' 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 c2e6e010b9
commit 8657b57a04
2 changed files with 14 additions and 2 deletions

View File

@@ -295,7 +295,10 @@ IPA.automember.rule_details_facet = function(spec) {
required: true required: true
} }
] ]
} },
deleter_dialog: {
title: '@i18n:objects.automember.remove_inc_conditions',
},
} }
] ]
}, },
@@ -325,7 +328,10 @@ IPA.automember.rule_details_facet = function(spec) {
required: true required: true
} }
] ]
} },
deleter_dialog: {
title: '@i18n:objects.automember.remove_exc_conditions',
},
} }
] ]
} }

View File

@@ -476,6 +476,12 @@ class i18n_messages(Command):
"hostgrouprules": _("Host group rules"), "hostgrouprules": _("Host group rules"),
"inclusive": _("Inclusive"), "inclusive": _("Inclusive"),
"remove": _("Remove auto membership rules"), "remove": _("Remove auto membership rules"),
"remove_exc_conditions": _(
"Remove exclusive conditions from rule '${primary_key}'"
),
"remove_inc_conditions": _(
"Remove inclusive conditions from rule '${primary_key}'"
),
"usergrouprule": _("User group rule"), "usergrouprule": _("User group rule"),
"usergrouprules": _("User group rules"), "usergrouprules": _("User group rules"),
}, },