|
|
b4bb48 |
From 943b2570c3196aec12a46d5b0e261f026ace0e86 Mon Sep 17 00:00:00 2001
|
|
|
b4bb48 |
From: =?UTF-8?q?Mat=C4=9Bj=20T=C3=BD=C4=8D?= <matyc@redhat.com>
|
|
|
b4bb48 |
Date: Thu, 9 Jul 2020 17:15:11 +0200
|
|
|
b4bb48 |
Subject: [PATCH] Changed the spoke label back to uppercase.
|
|
|
b4bb48 |
|
|
|
b4bb48 |
The spoke title which is defined in the Python code and visible in the hub
|
|
|
b4bb48 |
should have capitalization that respects the local language convention.
|
|
|
b4bb48 |
However, the much less visible spoke label that is defined in the glade file
|
|
|
b4bb48 |
should be uppercase, and so should be translations.
|
|
|
b4bb48 |
---
|
|
|
b4bb48 |
org_fedora_oscap/gui/spokes/oscap.glade | 2 +-
|
|
|
b4bb48 |
org_fedora_oscap/gui/spokes/oscap.py | 3 +++
|
|
|
b4bb48 |
2 files changed, 4 insertions(+), 1 deletion(-)
|
|
|
b4bb48 |
|
|
|
b4bb48 |
diff --git a/org_fedora_oscap/gui/spokes/oscap.glade b/org_fedora_oscap/gui/spokes/oscap.glade
|
|
|
b4bb48 |
index 1adcfcf..1fd2664 100644
|
|
|
b4bb48 |
--- a/org_fedora_oscap/gui/spokes/oscap.glade
|
|
|
b4bb48 |
+++ b/org_fedora_oscap/gui/spokes/oscap.glade
|
|
|
b4bb48 |
@@ -37,7 +37,7 @@
|
|
|
b4bb48 |
<property name="can_focus">False</property>
|
|
|
b4bb48 |
<property name="hexpand">True</property>
|
|
|
b4bb48 |
<property name="vexpand">True</property>
|
|
|
b4bb48 |
- <property name="window_name" translatable="yes">Security Policy</property>
|
|
|
b4bb48 |
+ <property name="window_name" translatable="yes">SECURITY POLICY</property>
|
|
|
b4bb48 |
<signal name="button-clicked" handler="on_back_clicked" swapped="no"/>
|
|
|
b4bb48 |
<child internal-child="main_box">
|
|
|
b4bb48 |
<object class="GtkBox" id="AnacondaSpokeWindow-main_box1">
|
|
|
b4bb48 |
diff --git a/org_fedora_oscap/gui/spokes/oscap.py b/org_fedora_oscap/gui/spokes/oscap.py
|
|
|
b4bb48 |
index f21f7d3..b9fcd31 100644
|
|
|
b4bb48 |
--- a/org_fedora_oscap/gui/spokes/oscap.py
|
|
|
b4bb48 |
+++ b/org_fedora_oscap/gui/spokes/oscap.py
|
|
|
b4bb48 |
@@ -196,6 +196,9 @@ class OSCAPSpoke(NormalSpoke):
|
|
|
b4bb48 |
|
|
|
b4bb48 |
# title of the spoke (will be displayed on the hub)
|
|
|
b4bb48 |
title = N_("_Security Policy")
|
|
|
b4bb48 |
+ # The string "SECURITY POLICY" in oscap.glade is meant to be uppercase,
|
|
|
b4bb48 |
+ # as it is displayed inside the spoke as the spoke label,
|
|
|
b4bb48 |
+ # and spoke labels are all uppercase by a convention.
|
|
|
b4bb48 |
|
|
|
b4bb48 |
# methods defined by API and helper methods #
|
|
|
b4bb48 |
def __init__(self, data, storage, payload):
|