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

View File

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