|
|
eaead1 |
From 2646bb88746aa7b1abc715b40fa0a07a865d9576 Mon Sep 17 00:00:00 2001
|
|
|
eaead1 |
From: =?UTF-8?q?Mat=C4=9Bj=20T=C3=BD=C4=8D?= <matyc@redhat.com>
|
|
|
eaead1 |
Date: Wed, 17 Jun 2020 14:30:52 +0200
|
|
|
eaead1 |
Subject: [PATCH 1/3] Improve handling of languages.
|
|
|
eaead1 |
|
|
|
eaead1 |
- fix the Makefile so translations are copied to the right directory in the image
|
|
|
eaead1 |
- allow generation of update image with or without translations
|
|
|
eaead1 |
- regenerate the create_update_image script with latest argbash
|
|
|
eaead1 |
---
|
|
|
eaead1 |
Makefile | 6 ++-
|
|
|
eaead1 |
create_update_image.sh | 86 ++++++++++++++++++++++++++++--------------
|
|
|
eaead1 |
2 files changed, 63 insertions(+), 29 deletions(-)
|
|
|
eaead1 |
|
|
|
eaead1 |
diff --git a/Makefile b/Makefile
|
|
|
eaead1 |
index 2c2059c..dc8e9a0 100644
|
|
|
eaead1 |
--- a/Makefile
|
|
|
eaead1 |
+++ b/Makefile
|
|
|
eaead1 |
@@ -6,6 +6,8 @@ ADDON = org_fedora_oscap
|
|
|
eaead1 |
TESTS = tests \
|
|
|
eaead1 |
testing_files
|
|
|
eaead1 |
|
|
|
eaead1 |
+DEFAULT_INSTALL_OF_PO_FILES ?= yes
|
|
|
eaead1 |
+
|
|
|
eaead1 |
OSVERSION := $(shell grep -o " [0-9]\{1,\}" /etc/redhat-release | sed "s/ //g")
|
|
|
eaead1 |
ifeq ($(OSVERSION),7)
|
|
|
eaead1 |
PYVERSION = ""
|
|
|
eaead1 |
@@ -37,7 +39,9 @@ NUM_PROCS = $$(getconf _NPROCESSORS_ONLN)
|
|
|
eaead1 |
install:
|
|
|
eaead1 |
mkdir -p $(DESTDIR)$(ADDONDIR)
|
|
|
eaead1 |
cp -rv $(ADDON) $(DESTDIR)$(ADDONDIR)
|
|
|
eaead1 |
+ifeq ($(DEFAULT_INSTALL_OF_PO_FILES),yes)
|
|
|
eaead1 |
$(MAKE) install-po-files
|
|
|
eaead1 |
+endif
|
|
|
eaead1 |
|
|
|
eaead1 |
uninstall:
|
|
|
eaead1 |
rm -rfv $(DESTDIR)$(ADDONDIR)
|
|
|
eaead1 |
@@ -78,7 +82,7 @@ push-pot: potfile
|
|
|
eaead1 |
zanata push $(ZANATA_PUSH_ARGS)
|
|
|
eaead1 |
|
|
|
eaead1 |
install-po-files:
|
|
|
eaead1 |
- $(MAKE) -C po install
|
|
|
eaead1 |
+ $(MAKE) -C po install RPM_BUILD_ROOT=$(DESTDIR)
|
|
|
eaead1 |
|
|
|
eaead1 |
test:
|
|
|
eaead1 |
@echo "***Running pylint$(PYVERSION) checks***"
|
|
|
eaead1 |
From 7434500bcd94c2c53d61c84a7364493372f7e053 Mon Sep 17 00:00:00 2001
|
|
|
eaead1 |
From: =?UTF-8?q?Mat=C4=9Bj=20T=C3=BD=C4=8D?= <matyc@redhat.com>
|
|
|
eaead1 |
Date: Wed, 17 Jun 2020 14:32:25 +0200
|
|
|
eaead1 |
Subject: [PATCH 2/3] Dont use capital letters for the spoke title.
|
|
|
eaead1 |
|
|
|
eaead1 |
---
|
|
|
eaead1 |
org_fedora_oscap/gui/spokes/oscap.glade | 2 +-
|
|
|
eaead1 |
po/oscap-anaconda-addon.pot | 4 ++--
|
|
|
eaead1 |
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
eaead1 |
|
|
|
eaead1 |
diff --git a/org_fedora_oscap/gui/spokes/oscap.glade b/org_fedora_oscap/gui/spokes/oscap.glade
|
|
|
eaead1 |
index e9e2fc0..e8516c0 100644
|
|
|
eaead1 |
--- a/org_fedora_oscap/gui/spokes/oscap.glade
|
|
|
eaead1 |
+++ b/org_fedora_oscap/gui/spokes/oscap.glade
|
|
|
eaead1 |
@@ -37,7 +37,7 @@
|
|
|
eaead1 |
<property name="can_focus">False</property>
|
|
|
eaead1 |
<property name="hexpand">True</property>
|
|
|
eaead1 |
<property name="vexpand">True</property>
|
|
|
eaead1 |
- <property name="window_name" translatable="yes">SECURITY POLICY</property>
|
|
|
eaead1 |
+ <property name="window_name" translatable="yes">Security Policy</property>
|
|
|
eaead1 |
<signal name="button-clicked" handler="on_back_clicked" swapped="no"/>
|
|
|
eaead1 |
<child internal-child="main_box">
|
|
|
eaead1 |
<object class="GtkBox" id="AnacondaSpokeWindow-main_box1">
|
|
|
eaead1 |
|
|
|
eaead1 |
From 00c3dd557881def88c2898fa6ced17dddfef5213 Mon Sep 17 00:00:00 2001
|
|
|
eaead1 |
From: =?UTF-8?q?Mat=C4=9Bj=20T=C3=BD=C4=8D?= <matyc@redhat.com>
|
|
|
eaead1 |
Date: Thu, 18 Jun 2020 15:12:40 +0200
|
|
|
eaead1 |
Subject: [PATCH 3/3] Changed URI back to URL in order not to mess with
|
|
|
eaead1 |
translations.
|
|
|
eaead1 |
|
|
|
eaead1 |
The PR #112 marked this string as translatable, and changed it in the process.
|
|
|
eaead1 |
However, the string is already present elsewhere in the source code, so this move
|
|
|
eaead1 |
messed things up for translators.
|
|
|
eaead1 |
|
|
|
eaead1 |
This change reverts the URL->URI change, and leaves the GUI string "translatable",
|
|
|
eaead1 |
as there is no way how to record the reason for this decision, so the situation doesn't repeat again.
|
|
|
eaead1 |
As a result, it is now the job of the translation framework
|
|
|
eaead1 |
to deal with the duplication gracefully.
|
|
|
eaead1 |
---
|
|
|
eaead1 |
org_fedora_oscap/gui/spokes/oscap.glade | 2 +-
|
|
|
eaead1 |
po/oscap-anaconda-addon.pot | 9 ++-------
|
|
|
eaead1 |
2 files changed, 3 insertions(+), 8 deletions(-)
|
|
|
eaead1 |
|
|
|
eaead1 |
diff --git a/org_fedora_oscap/gui/spokes/oscap.glade b/org_fedora_oscap/gui/spokes/oscap.glade
|
|
|
eaead1 |
index e8516c0..1adcfcf 100644
|
|
|
eaead1 |
--- a/org_fedora_oscap/gui/spokes/oscap.glade
|
|
|
eaead1 |
+++ b/org_fedora_oscap/gui/spokes/oscap.glade
|
|
|
eaead1 |
@@ -446,7 +446,7 @@
|
|
|
eaead1 |
<object class="GtkLabel" id="noContentLabel">
|
|
|
eaead1 |
<property name="visible">True</property>
|
|
|
eaead1 |
<property name="can_focus">False</property>
|
|
|
eaead1 |
- <property name="label" translatable="yes">No content found. Please enter data stream content or archive URI below:</property>
|
|
|
eaead1 |
+ <property name="label" translatable="yes">No content found. Please enter data stream content or archive URL below:</property>
|
|
|
eaead1 |
<property name="wrap">True</property>
|
|
|
eaead1 |
<property name="xalign">0</property>
|
|
|
eaead1 |
</object>
|