Add title to 'add' dialog for 'Automount' entity

To improve translation quality the title of 'Add' dialog should be
specified explicitly in the spec and should be an entire sentence.

Fixes: https://pagure.io/freeipa/issue/7707
Reviewed-By: Serhii Tsymbaliuk <stsymbal@redhat.com>
This commit is contained in:
Stanislav Levin 2018-09-21 11:45:28 +03:00 committed by Serhii Tsymbaliuk
parent 98c290e403
commit bafa0d5f4a
2 changed files with 6 additions and 0 deletions

View File

@ -63,6 +63,7 @@ return {
}
],
adder_dialog: {
title: '@i18n:objects.automountlocation.add',
fields: [ 'cn' ]
},
deleter_dialog: {
@ -112,6 +113,7 @@ return {
}
],
adder_dialog: {
title: '@i18n:objects.automountmap.add',
$factory: IPA.automountmap_adder_dialog,
sections: [
{
@ -193,6 +195,7 @@ return {
}
],
adder_dialog: {
title: '@i18n:objects.automountkey.add',
show_edit_page : function(entity, result){
var key = result.automountkey[0];
var info = result.automountinformation[0];

View File

@ -491,13 +491,16 @@ class i18n_messages(Command):
"usergrouprules": _("User group rules"),
},
"automountkey": {
"add": _("Add automount key"),
"remove": _("Remove automount keys"),
},
"automountlocation": {
"add": _("Add automount location"),
"identity": _("Automount Location Settings"),
"remove": _("Remove automount locations"),
},
"automountmap": {
"add": _("Add automount map"),
"map_type": _("Map Type"),
"direct": _("Direct"),
"indirect": _("Indirect"),