URL: https://github.com/freeipa/freeipa/pull/146
Author: pvomacka
 Title: #146: WebUI: fix API Browser menu label
Action: opened

PR body:
"""
The label of API Browser is now in translatable strings and it has
uppercase B at the beginnig of second word.

https://fedorahosted.org/freeipa/ticket/6384
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/146/head:pr146
git checkout pr146
From bdbd92358bc9ad3025b8adad8993f69d584f96e1 Mon Sep 17 00:00:00 2001
From: Pavel Vomacka <pvoma...@redhat.com>
Date: Mon, 10 Oct 2016 09:19:32 +0200
Subject: [PATCH] WebUI: fix API Browser menu label

The label of API Browser is now in translatable strings and it has
uppercase B at the beginnig of second word.

https://fedorahosted.org/freeipa/ticket/6384
---
 install/ui/src/freeipa/navigation/menu_spec.js | 2 +-
 install/ui/test/data/ipa_init.json             | 1 +
 ipaserver/plugins/internal.py                  | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/install/ui/src/freeipa/navigation/menu_spec.js b/install/ui/src/freeipa/navigation/menu_spec.js
index 1abd720..7d121d9 100644
--- a/install/ui/src/freeipa/navigation/menu_spec.js
+++ b/install/ui/src/freeipa/navigation/menu_spec.js
@@ -249,7 +249,7 @@ var nav = {};
                 },
                 {
                     name: 'apibrowser',
-                    label: 'API browser',
+                    label: '@i18n:widget.api_browser',
                     facet: 'apibrowser',
                     args: { 'type': 'command' }
                 },
diff --git a/install/ui/test/data/ipa_init.json b/install/ui/test/data/ipa_init.json
index 99851ab..514206a 100644
--- a/install/ui/test/data/ipa_init.json
+++ b/install/ui/test/data/ipa_init.json
@@ -734,6 +734,7 @@
                     },
                     "true": "True",
                     "widget": {
+                        "api_browser": "API Browser",
                         "first": "First",
                         "last": "Last",
                         "next": "Next",
diff --git a/ipaserver/plugins/internal.py b/ipaserver/plugins/internal.py
index 530458d..6107a14 100644
--- a/ipaserver/plugins/internal.py
+++ b/ipaserver/plugins/internal.py
@@ -887,6 +887,7 @@ class i18n_messages(Command):
         },
         "true": _("True"),
         "widget": {
+            "api_browser": _("API Browser"),
             "first": _("First"),
             "last": _("Last"),
             "next": _("Next"),
-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to