Blame SOURCES/oaa-1.2_spoke-window_PR122.patch

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