Add title to remove dialog of 'RBAC' 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 12:23:45 +03:00 committed by Serhii Tsymbaliuk
parent d5979fb24f
commit 855e138a66
2 changed files with 35 additions and 5 deletions

View File

@ -298,7 +298,10 @@ return {
widget_name: 'target'
}
]
}
},
deleter_dialog: {
title: '@i18n:objects.acipermission.remove',
},
};};
/**
@ -369,7 +372,10 @@ return {
name: 'description'
}
]
}
},
deleter_dialog: {
title: '@i18n:objects.aciprivilege.remove',
},
};};
var make_role_spec = function() {
@ -417,7 +423,10 @@ return {
name: 'description'
}
]
}
},
deleter_dialog: {
title: '@i18n:objects.acirole.remove',
},
};};
var make_selfservice_spec = function() {
@ -457,7 +466,10 @@ return {
name: 'attrs'
}
]
}
},
deleter_dialog: {
title: '@i18n:objects.aciselfservice.remove',
},
};};
@ -534,7 +546,10 @@ return {
object_type: 'user'
}
]
}
},
deleter_dialog: {
title: '@i18n:objects.acidelegation.remove',
},
};};
aci.attributes_widget = function(spec) {

View File

@ -407,6 +407,21 @@ class i18n_messages(Command):
"aci": {
"attribute": _("Attribute"),
},
"acidelegation": {
"remove": _("Remove delegations"),
},
"acipermission": {
"remove": _("Remove permissions"),
},
"aciprivilege": {
"remove": _("Remove privileges"),
},
"acirole": {
"remove": _("Remove roles"),
},
"aciselfservice": {
"remove": _("Remove self service permissions"),
},
"automember": {
"add_condition": _("Add Condition into ${pkey}"),
"add_rule": _("Add Rule"),