metainfo.its: changed this from a build requirement to a warning
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sun, 6 Sep 2020 10:43:59 +0000 (12:43 +0200)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Sun, 6 Sep 2020 10:43:59 +0000 (12:43 +0200)
When the build system is not capable to extract the strings from
org.fsf.pspp.metainfo.xml.in file, then this will not be translated.

INSTALL
configure.ac

diff --git a/INSTALL b/INSTALL
index 6f970f4706728d137fbedfcd1d55898242d9bcb9..d565ed4c02023f6e0f14a36a03e072c473e10310 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -77,9 +77,9 @@ The following packages are required to install PSPP:
     * libxml2 (http://xmlsoft.org/).
 
     * metainfo.its, provided by the appstream package. This is required
-      by xgettext to extract the translation strings from the
-      org.fsf.pspp.metainfo.xml.in file. This is only required for
-      building. It is not a runtime requirement.
+      by xgettext version lower then 0.20 to extract the translation
+      strings from the org.fsf.pspp.metainfo.xml.in file. This is only
+      required for building. It is not a runtime requirement.
 
 The following packages are required to enable PSPP's graphing
 features.  If you cannot arrange to install them, you must run
index 9acc451d100154ebcd5df9e6923cea8302388b11..5df5bc76862f450d3990c84f32a5b1f2fb6fd0e7 100644 (file)
@@ -75,7 +75,7 @@ $as_echo '<name>Hallo</name>' >> test.metainfo.xml.in
 $as_echo '</component>' >> test.metainfo.xml.in
 xgettext -o mifc.po test.metainfo.xml.in
 if ! test -f ./mifc.po  ; then
-  PSPP_REQUIRED_PREREQ([appstream 0.12 or later for metainfo.its])
+  AC_MSG_WARN([org.fsf.metainfo.xml will not be translated. Install gettext >=0.20 or appstream.])
 fi
 rm -f mifc.po test.metainfo.xml.in