]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Hide xgettext warnings.
authorBruno Haible <bruno@clisp.org>
Tue, 14 Mar 2006 14:13:34 +0000 (14:13 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:13:02 +0000 (12:13 +0200)
gettext-tools/tests/ChangeLog
gettext-tools/tests/format-python-1

index 429afb77d1f8d9977eec80937b6d299ef66e5c9e..c4d90d2fbe15225e581b00b22608586c4d603a7f 100644 (file)
@@ -1,3 +1,7 @@
+2006-03-11  Bruno Haible  <bruno@clisp.org>
+
+       * format-python-1: Hide xgettext warnings.
+
 2006-03-11  Bruno Haible  <bruno@clisp.org>
 
        Make the gettext-4 test work on MacOS X.
index 2e478041ecfb0b98545fe650f32028ebb9c0198f..27236973b09918e7dc911f1a908e9a817f734861 100755 (executable)
@@ -97,6 +97,7 @@ cat <<\EOF > f-p-1.data
 "abc%(addr).*x"
 EOF
 
+tmpfiles="$tmpfiles f-p-1.err"
 : ${XGETTEXT=xgettext}
 n=0
 while read comment; do
@@ -106,7 +107,9 @@ while read comment; do
   cat <<EOF > f-p-1-$n.in
 gettext(${string});
 EOF
-  ${XGETTEXT} -L Python -o f-p-1-$n.po f-p-1-$n.in || exit 1
+  # Hide xgettext's "The translator cannot reorder the arguments." warnings.
+  ${XGETTEXT} -L Python -o f-p-1-$n.po f-p-1-$n.in 2> f-p-1.err \
+    || { cat f-p-1.err 1>&2; exit 1; }
   test -f f-p-1-$n.po || exit 1
   fail=
   if echo "$comment" | grep 'Valid:' > /dev/null; then