Blob Blame History Raw
From 84fbbe4a72073ec9077ee6c5a389f637c8f7e634 Mon Sep 17 00:00:00 2001
From: Watson Sato <wsato@redhat.com>
Date: Thu, 1 Feb 2018 20:32:05 +0100
Subject: [PATCH] Define translation domain in OSCAPSpoke

UI doesn't show translations if translation domain is not defined.
---
 org_fedora_oscap/gui/spokes/oscap.glade | 2 +-
 org_fedora_oscap/gui/spokes/oscap.py    | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/org_fedora_oscap/gui/spokes/oscap.glade b/org_fedora_oscap/gui/spokes/oscap.glade
index 45c8f07..3d61733 100644
--- a/org_fedora_oscap/gui/spokes/oscap.glade
+++ b/org_fedora_oscap/gui/spokes/oscap.glade
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Generated with glade 3.18.3 -->
-<interface>
+<interface domain="oscap-anaconda-addon">
   <requires lib="gtk+" version="3.0"/>
   <requires lib="AnacondaWidgets" version="1.0"/>
   <object class="GtkListStore" id="changesStore">
diff --git a/org_fedora_oscap/gui/spokes/oscap.py b/org_fedora_oscap/gui/spokes/oscap.py
index be42ca2..72c1501 100644
--- a/org_fedora_oscap/gui/spokes/oscap.py
+++ b/org_fedora_oscap/gui/spokes/oscap.py
@@ -158,6 +158,9 @@ class OSCAPSpoke(NormalSpoke):
     # name of the file providing help content for this spoke
     helpFile = "SecurityPolicySpoke.xml"
 
+    # domain of oscap-anaconda-addon translations
+    translationDomain = "oscap-anaconda-addon"
+
     # category this spoke belongs to
     category = SystemCategory