From bafa0d5f4aaa4934ae7bbad5378a18e986977cc4 Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Fri, 21 Sep 2018 11:45:28 +0300 Subject: [PATCH] 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 --- install/ui/src/freeipa/automount.js | 3 +++ ipaserver/plugins/internal.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/install/ui/src/freeipa/automount.js b/install/ui/src/freeipa/automount.js index afb80a2f1..bcfaf4b26 100644 --- a/install/ui/src/freeipa/automount.js +++ b/install/ui/src/freeipa/automount.js @@ -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]; diff --git a/ipaserver/plugins/internal.py b/ipaserver/plugins/internal.py index c4f8a5d3d..dad2b9b6f 100644 --- a/ipaserver/plugins/internal.py +++ b/ipaserver/plugins/internal.py @@ -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"),