[PATCH 10/10] Fix gettext_potfiles.py for rhel7-branch (dshea).
Chris Lumens
clumens at redhat.com
Fri Aug 15 15:27:24 UTC 2014
Related: rhbz#1121678
---
tests/gettext/gettext_potfiles.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/gettext/gettext_potfiles.py b/tests/gettext/gettext_potfiles.py
index f8c0158..1a77ec1 100755
--- a/tests/gettext/gettext_potfiles.py
+++ b/tests/gettext/gettext_potfiles.py
@@ -32,10 +32,10 @@ def check_potfile(checkfile, potlist):
# Check whether the file includes intl.h
if subprocess.call(["grep", "-q", "#include .intl\\.h.", checkfile]) == 0:
potcheckfile = checkfile
- elif checkfile.endswith(".glade.h"):
+ elif checkfile.endswith(".glade"):
# Look for a "translatable=yes" attribute
if ET.parse(checkfile).findall(".//*[@translatable='yes']"):
- potcheckfile = checkfile
+ potcheckfile = checkfile + ".h"
elif checkfile.endswith(".desktop.in"):
# These are handled by intltool, make sure the .h version is present
potcheckfile = checkfile + ".h"
@@ -59,6 +59,7 @@ with open(os.path.join(os.environ["top_srcdir"], "po", "POTFILES.in")) as f:
# Walk the source tree and look for files with translatable strings
for testfile in testfilelist():
+ sys.stderr.write(testfile + "\n")
check_potfile(testfile, POTFILES)
if not success:
--
1.9.3
More information about the anaconda-patches
mailing list