+2001-12-18 Bruno Haible <bruno@clisp.org>
+
+ * gettext-[12], msgcat-[1-7], msgcmp-[12], msgcomm-[1-9],
+ msgcomm-1[0-9], msgcomm-2[0-2], msgfmt-[1-9], msgfmt-10,
+ msgmerge-[1-9], msgmerge-1[0-3], msgunfmt-1, xgettext-[1-4]:
+ Unify tmpfiles handling.
+
2001-12-17 Bruno Haible <bruno@clisp.org>
* lang-objc: If the locale couldn't be set, skip the test.
JAVAC = @JAVAC@
LEX = @LEX@
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
+LIB = @LIB@
LIBICONV = @LIBICONV@
LIBOBJS = @LIBOBJS@
LIBTOOL = @LIBTOOL@
AUTOMAKE_OPTIONS = 1.5 gnits no-dependencies
TESTS = gettext-1 gettext-2 \
+ msgattrib-1 msgattrib-2 msgattrib-3 msgattrib-4 msgattrib-5 \
+ msgattrib-6 msgattrib-7 msgattrib-8 msgattrib-9 msgattrib-10 \
+ msgattrib-11 msgattrib-12 msgattrib-13 msgattrib-14 \
msgcat-1 msgcat-2 msgcat-3 msgcat-4 msgcat-5 msgcat-6 msgcat-7 \
msgcmp-1 msgcmp-2 \
msgcomm-1 msgcomm-2 msgcomm-3 msgcomm-4 msgcomm-5 msgcomm-6 msgcomm-7 \
msgcomm-8 msgcomm-9 msgcomm-10 msgcomm-11 msgcomm-12 msgcomm-13 \
msgcomm-14 msgcomm-15 msgcomm-16 msgcomm-17 msgcomm-18 msgcomm-19 \
msgcomm-20 msgcomm-21 msgcomm-22 msgcomm-23 \
+ msgconv-1 msgconv-2 \
+ msgen-1 \
+ msgexec-1 msgexec-2 \
+ msgfilter-1 msgfilter-2 \
msgfmt-1 msgfmt-2 msgfmt-3 msgfmt-4 msgfmt-5 msgfmt-6 msgfmt-7 \
- msgfmt-8 msgfmt-9 \
+ msgfmt-8 msgfmt-9 msgfmt-10 \
+ msggrep-1 msggrep-2 msggrep-3 msggrep-4 \
msgmerge-1 msgmerge-2 msgmerge-3 msgmerge-4 msgmerge-5 msgmerge-6 \
msgmerge-7 msgmerge-8 msgmerge-9 msgmerge-10 msgmerge-11 msgmerge-12 \
msgmerge-13 msgmerge-14 msgmerge-15 msgmerge-16 msgmerge-17 \
- msgmerge-18 msgmerge-19 \
+ msgmerge-18 msgmerge-19 msgmerge-20 \
msgunfmt-1 \
msguniq-1 msguniq-2 msguniq-3 \
xgettext-1 xgettext-2 xgettext-3 xgettext-4 xgettext-5 xgettext-6 \
xgettext-13 xgettext-14 xgettext-15 xgettext-16 xgettext-17 \
format-c-1 format-c-2 \
format-java-1 format-java-2 \
+ format-librep-1 format-librep-2 \
format-lisp-1 format-lisp-2 \
format-python-1 format-python-2 \
format-pascal-1 format-pascal-2 \
format-ycp-1 format-ycp-2 \
plural-1 plural-2 \
- lang-c lang-c++ lang-objc lang-java lang-pascal lang-ycp lang-po lang-rst
+ lang-c lang-c++ lang-objc lang-clisp lang-librep lang-java lang-pascal lang-ycp lang-po lang-rst
-EXTRA_DIST = $(TESTS) test.mo xg-test1.ok.po msguniq-a.in msguniq-a.out
+EXTRA_DIST = $(TESTS) test.mo xg-test1.ok.po mex-test2.ok msguniq-a.in msguniq-a.out
XGETTEXT = ../src/xgettext
TESTS_ENVIRONMENT = top_srcdir=$(top_srcdir) PATH=.:../src:$$PATH \
GETTEXT=tstgettext \
NGETTEXT=tstngettext \
- XGETTEXT=`echo xgettext|sed '$(transform)'` \
- MSGCAT=`echo msgcat|sed '$(transform)'` \
- MSGCMP=`echo msgcmp|sed '$(transform)'` \
- MSGFMT=`echo msgfmt|sed '$(transform)'` \
- MSGMERGE=`echo msgmerge|sed '$(transform)'` \
- MSGUNFMT=`echo msgunfmt|sed '$(transform)'` \
- MSGCAT=`echo msgcat|sed '$(transform)'` \
- MSGUNIQ=`echo msguniq|sed '$(transform)'` \
+ XGETTEXT=xgettext \
+ MSGATTRIB=msgattrib \
+ MSGCAT=msgcat \
+ MSGCMP=msgcmp \
+ MSGCOMM=msgcomm \
+ MSGCONV=msgconv \
+ MSGEN=msgen \
+ MSGEXEC=msgexec \
+ MSGFILTER=msgfilter \
+ MSGFMT=msgfmt \
+ MSGGREP=msggrep \
+ MSGMERGE=msgmerge \
+ MSGUNFMT=msgunfmt \
+ MSGUNIQ=msguniq \
OBJEXT='@OBJEXT@' EXEEXT='@EXEEXT@' \
LIBTOOL='@LIBTOOL@' \
CC='@CC@' CFLAGS='@CFLAGS@' \
trap 'rm -fr $tmpfiles' 1 2 3 15
# Create binary test file in correct position.
-tmpfiles="LC_MESSAGES"
+tmpfiles="$tmpfiles LC_MESSAGES"
test -d LC_MESSAGES || mkdir LC_MESSAGES
cp $top_srcdir/tests/test.mo LC_MESSAGES
trap 'rm -fr $tmpfiles' 1 2 3 15
# Create binary test file in correct position.
-tmpfiles="LC_MESSAGES"
+tmpfiles="$tmpfiles LC_MESSAGES"
test -d LC_MESSAGES || mkdir LC_MESSAGES
cp $top_srcdir/tests/test.mo LC_MESSAGES
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mcat-test1.in1 mcat-test1.in2"
+tmpfiles="$tmpfiles mcat-test1.in1 mcat-test1.in2"
cat <<EOF > mcat-test1.in1
msgid ""
msgstr ""
# input files with different charsets.
-tmpfiles="mcat-test2.in1 mcat-test2.in2"
+tmpfiles="$tmpfiles mcat-test2.in1 mcat-test2.in2"
cat <<EOF > mcat-test2.in1
# German message file for xyz.
# Copyright (C) 1999, 2000, 2001 xyz.
# input files with different charsets.
# 1. ISO-8859-1, 2. UTF-8; plus --use-first
-tmpfiles="mcat-test3.in1 mcat-test3.in2"
+tmpfiles="$tmpfiles mcat-test3.in1 mcat-test3.in2"
cat <<EOF > mcat-test3.in1
# German message file for xyz.
# Copyright (C) 1999, 2000, 2001 xyz.
# input files with different charsets:
# 1. UTF-8, 2. ISO-8859-1; plus --use-first
-tmpfiles="mcat-test4.in1 mcat-test4.in2"
+tmpfiles="$tmpfiles mcat-test4.in1 mcat-test4.in2"
cat <<EOF > mcat-test4.in1
# German message file for xyz.
# Copyright (C) 1999, 2000, 2001 xyz.
# input files with different translations:
# try --use-first
-tmpfiles="mcat-test5.in1 mcat-test5.in2"
+tmpfiles="$tmpfiles mcat-test5.in1 mcat-test5.in2"
cat <<EOF > mcat-test5.in1
# German message file for xyz.
# Copyright (C) 1999, 2000, 2001 xyz.
# input files with different translations:
# preserve all variants, add markers
-tmpfiles="mcat-test6.in1 mcat-test6.in2"
+tmpfiles="$tmpfiles mcat-test6.in1 mcat-test6.in2"
cat <<EOF > mcat-test6.in1
# German message file for xyz.
# Copyright (C) 1999, 2000, 2001 xyz.
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mcat-test7.in1"
+tmpfiles="$tmpfiles mcat-test7.in1"
cat <<EOF > mcat-test7.in1
#: clients/inst_language.ycp:119
msgid "two"
# One argument is required which is the path to the toplevel directory
# of the distribution.
-tmpfiles="mc-test1.in1 mc-test1.in2"
+tmpfiles=""
+trap 'rm -fr $tmpfiles' 1 2 3 15
+
+tmpfiles="$tmpfiles mc-test1.in1 mc-test1.in2"
cat <<EOF > mc-test1.in1
msgid "one" msgstr "first"
msgid "two" msgstr "second"
# One argument is required which is the path to the toplevel directory
# of the distribution.
+tmpfiles=""
+trap 'rm -fr $tmpfiles' 1 2 3 15
+
LANGUAGE=
LC_ALL=
LC_MESSAGES=
LANG=
export LANGUAGE LC_ALL LC_MESSAGES LANG
-tmpfiles="mc-test2.in1 mc-test2.in2"
+tmpfiles="$tmpfiles mc-test2.in1 mc-test2.in2"
cat <<EOF > mc-test2.in1
msgid "one" msgstr "first"
msgid "two" msgstr "second"
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mcomm-test1.in1 mcomm-test1.in2"
+tmpfiles="$tmpfiles mcomm-test1.in1 mcomm-test1.in2"
cat <<EOF > mcomm-test1.in1
#: first.c:123
msgid "1"
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mcomm-test10.in1 mcomm-test10.in2"
+tmpfiles="$tmpfiles mcomm-test10.in1 mcomm-test10.in2"
cat <<EOF > mcomm-test10.in1
msgid ""
msgstr ""
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mcomm-test11.in1 mcomm-test11.in2"
+tmpfiles="$tmpfiles mcomm-test11.in1 mcomm-test11.in2"
cat <<EOF > mcomm-test11.in1
msgid ""
msgstr ""
# unique msg in in3
-tmpfiles="mcomm-test12.in1 mcomm-test12.in2 mcomm-test12.in3"
+tmpfiles="$tmpfiles mcomm-test12.in1 mcomm-test12.in2 mcomm-test12.in3"
cat <<EOF > mcomm-test12.in1
msgid ""
msgstr ""
# one msg occurs 3 times (has to go away).
# An unique msg in in3 has to stay.
-tmpfiles="mcomm-test13.in1 mcomm-test13.in2 mcomm-test13.in3"
+tmpfiles="$tmpfiles mcomm-test13.in1 mcomm-test13.in2 mcomm-test13.in3"
cat <<EOF > mcomm-test13.in1
msgid ""
msgstr ""
# no unique msg in input files.
# without --force-po don't create any PO file; cf. msgcomm-15
-tmpfiles="mcomm-test14.in1 mcomm-test14.in2 mcomm-test14.in3"
+tmpfiles="$tmpfiles mcomm-test14.in1 mcomm-test14.in2 mcomm-test14.in3"
cat <<EOF > mcomm-test14.in1
msgid ""
msgstr ""
# no unique msg in input files.
# with --force-po create an empty PO file; cf. msgcomm-14
-tmpfiles="mcomm-test15.in1 mcomm-test15.in2 mcomm-test15.in3"
+tmpfiles="$tmpfiles mcomm-test15.in1 mcomm-test15.in2 mcomm-test15.in3"
cat <<EOF > mcomm-test15.in1
msgid ""
msgstr ""
# input files with different charsets.
-tmpfiles="mcomm-test16.in1 mcomm-test16.in2"
+tmpfiles="$tmpfiles mcomm-test16.in1 mcomm-test16.in2"
cat <<EOF > mcomm-test16.in1
# German message file for xyz.
# Copyright (C) 1999, 2000, 2001 xyz.
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mcomm-test17.in1 mcomm-test17.in2 mcomm-test17.in3"
+tmpfiles="$tmpfiles mcomm-test17.in1 mcomm-test17.in2 mcomm-test17.in3"
cat <<EOF > mcomm-test17.in1
msgid ""
msgstr ""
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mcomm-test18.in1 mcomm-test18.in2"
+tmpfiles="$tmpfiles mcomm-test18.in1 mcomm-test18.in2"
cat <<EOF > mcomm-test18.in1
# Sure.
#: first.c:123
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mcomm-test19.in1 mcomm-test19.in2"
+tmpfiles="$tmpfiles mcomm-test19.in1 mcomm-test19.in2"
cat <<EOF > mcomm-test19.in1
# Not sure.
#: first.c:123
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mcomm-test2.in1 mcomm-test2.in2"
+tmpfiles="$tmpfiles mcomm-test2.in1 mcomm-test2.in2"
cat <<EOF > mcomm-test2.in1
#: first.c:123
msgid "1"
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mcomm-test20.in1 mcomm-test20.in2"
+tmpfiles="$tmpfiles mcomm-test20.in1 mcomm-test20.in2"
cat <<EOF > mcomm-test20.in1
# Sure.
#: first.c:123
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mcomm-test21.in1 mcomm-test21.in2"
+tmpfiles="$tmpfiles mcomm-test21.in1 mcomm-test21.in2"
cat <<EOF > mcomm-test21.in1
# Not sure.
#: first.c:123
# keep header file entry, otherwise the encoding is unknown
-tmpfiles="mcomm-test22.in1 mcomm-test22.in2"
+tmpfiles="$tmpfiles mcomm-test22.in1 mcomm-test22.in2"
cat <<EOF > mcomm-test22.in1
# German translations for GNU gettext package.
# Copyright (C) 1995, 1996, 1997, 2001 Free Software Foundation, Inc.
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mcomm-test3.in1 mcomm-test3.in2"
+tmpfiles="$tmpfiles mcomm-test3.in1 mcomm-test3.in2"
cat <<EOF > mcomm-test3.in1
#: first.c:123
msgid "1"
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mcomm-test4.in1 mcomm-test4.in2"
+tmpfiles="$tmpfiles mcomm-test4.in1 mcomm-test4.in2"
cat <<EOF > mcomm-test4.in1
msgid ""
msgstr ""
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mcomm-test5.in1 mcomm-test5.in2"
+tmpfiles="$tmpfiles mcomm-test5.in1 mcomm-test5.in2"
cat <<EOF > mcomm-test5.in1
msgid ""
msgstr ""
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mcomm-test6.in1 mcomm-test6.in2"
+tmpfiles="$tmpfiles mcomm-test6.in1 mcomm-test6.in2"
cat <<EOF > mcomm-test6.in1
msgid ""
msgstr ""
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mcomm-test7.in1 mcomm-test7.in2"
+tmpfiles="$tmpfiles mcomm-test7.in1 mcomm-test7.in2"
cat <<EOF > mcomm-test7.in1
msgid ""
msgstr ""
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mcomm-test8.in1 mcomm-test8.in2"
+tmpfiles="$tmpfiles mcomm-test8.in1 mcomm-test8.in2"
cat <<EOF > mcomm-test8.in1
msgid ""
msgstr ""
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mcomm-test9.in1 mcomm-test9.in2"
+tmpfiles="$tmpfiles mcomm-test9.in1 mcomm-test9.in2"
cat <<EOF > mcomm-test9.in1
msgid ""
msgstr ""
LANG=
export TEXTDOMAINDIR LANGUAGE LC_ALL LC_MESSAGES LANG
-tmpfiles="LC_MESSAGES"
+tmpfiles=""
+trap 'rm -fr $tmpfiles' 1 2 3 15
+
+tmpfiles="$tmpfiles LC_MESSAGES"
test -d LC_MESSAGES || mkdir LC_MESSAGES
tmpfiles="$tmpfiles module1.po module2.po"
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mf-test10.po1"
+tmpfiles="$tmpfiles mf-test10.po1"
cat <<EOF > mf-test10.po1
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Free Software Foundation, Inc.
${MSGFMT} --check mf-test10.po1 -o /dev/null || \
{ rm -fr $tmpfiles; exit 1; }
-tmpfiles="mf-test10.po2"
+tmpfiles="$tmpfiles mf-test10.po2"
cat <<EOF > mf-test10.po2
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Free Software Foundation, Inc.
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="LC_MESSAGES"
+tmpfiles="$tmpfiles LC_MESSAGES"
test -d LC_MESSAGES || mkdir LC_MESSAGES
tmpfiles="$tmpfiles module1.po module2.po"
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mf-test3.po"
+tmpfiles="$tmpfiles mf-test3.po"
cat <<EOF >mf-test3.po
#
# xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mf-test4.po"
+tmpfiles="$tmpfiles mf-test4.po"
cat <<EOF >mf-test4.po
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Free Software Foundation, Inc.
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="foo.po"
+tmpfiles="$tmpfiles foo.po"
cat <<EOF > foo.po
domain "foo-de"
msgid ""
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mf-test7.in1"
+tmpfiles="$tmpfiles mf-test7.in1"
cat <<EOF > mf-test7.in1
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Free Software Foundation, Inc.
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mf-test8.in1"
+tmpfiles="$tmpfiles mf-test8.in1"
cat <<EOF > mf-test8.in1
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Free Software Foundation, Inc.
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mf-test9.in1"
+tmpfiles="$tmpfiles mf-test9.in1"
cat <<EOF > mf-test9.in1
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Free Software Foundation, Inc.
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mm-test1.in1 mm-test1.in2"
+tmpfiles="$tmpfiles mm-test1.in1 mm-test1.in2"
cat <<EOF > mm-test1.in1
# first
#. this should be discarded
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="foo.po"
+tmpfiles="$tmpfiles foo.po"
cat <<EOF > foo.po
domain "foo-de"
msgid ""
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="foo.po"
+tmpfiles="$tmpfiles foo.po"
cat <<EOF > foo.po
domain "foo-de"
msgid ""
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mm-test12.com mm-test12.pot"
+tmpfiles="$tmpfiles mm-test12.com mm-test12.pot"
cat <<EOF > mm-test12.com
msgid ""
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mm-test13.in1 mm-test13.in2"
+tmpfiles="$tmpfiles mm-test13.in1 mm-test13.in2"
cat <<EOF > mm-test13.in1
msgid "2" msgstr "2"
msgid "3" msgstr "3"
LANG=
export LANGUAGE LC_ALL LC_MESSAGES LANG
-tmpfiles="mm-test2.in1 mm-test2.in2"
+tmpfiles="$tmpfiles mm-test2.in1 mm-test2.in2"
cat <<EOF > mm-test2.in1
msgid "2" msgstr "2"
msgid "3" msgstr "3"
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mm-test3.in1 mm-test3.in2"
+tmpfiles="$tmpfiles mm-test3.in1 mm-test3.in2"
cat <<EOF > mm-test3.in1
#
# def.po
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mm-test4.in1.po mm-test4.in2.po"
+tmpfiles="$tmpfiles mm-test4.in1.po mm-test4.in2.po"
cat <<EOF > mm-test4.in1.po
msgid "one"
msgstr "eins"
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mm-test5.in1.po mm-test5.in2.po"
+tmpfiles="$tmpfiles mm-test5.in1.po mm-test5.in2.po"
cat <<EOF > mm-test5.in1.po
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Free Software Foundation, Inc.
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mm-test6.in1 mm-test6.com mm-test6.pot"
+tmpfiles="$tmpfiles mm-test6.in1 mm-test6.com mm-test6.pot"
cat <<EOF > mm-test6.in1
#: file.c:123
msgid "1"
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mm-test7.in1 mm-test7.com mm-test7.pot"
+tmpfiles="$tmpfiles mm-test7.in1 mm-test7.com mm-test7.pot"
cat <<EOF > mm-test7.in1
#: file.c:123
msgid "1"
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mm-test8.in1 mm-test8.com mm-test8.pot"
+tmpfiles="$tmpfiles mm-test8.in1 mm-test8.com mm-test8.pot"
cat <<EOF > mm-test8.in1
#: file.c:123
msgid "1"
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mm-test9.in1.po mm-test9.in2.po"
+tmpfiles="$tmpfiles mm-test9.in1.po mm-test9.in2.po"
cat <<EOF > mm-test9.in1.po
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Free Software Foundation, Inc.
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="mu-test1.in"
+tmpfiles="$tmpfiles mu-test1.in"
cat <<EOF > mu-test1.in
msgid "eight"
msgstr "eighth"
msgstr ""
#, c-format
-msgid "...but some messages have only %lu plural forms"
-msgstr ""
+msgid "...but some messages have only one plural form"
+msgid_plural "...but some messages have only %lu plural forms"
+msgstr[0] ""
+msgstr[1] ""
#, c-format
-msgid "...but some messages have %lu plural forms"
-msgstr ""
+msgid "...but some messages have one plural form"
+msgid_plural "...but some messages have %lu plural forms"
+msgstr[0] ""
+msgstr[1] ""
msgid ""
"message catalog has plural form translations, but lacks a header entry with "
msgstr ""
#, c-format
-msgid "'msgstr' is not a valid %s format string, unlike 'msgid'"
+msgid "'%s' is not a valid %s format string, unlike 'msgid'"
msgstr ""
#, c-format
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="xg-test1.po"
+tmpfiles="$tmpfiles xg-test1.po"
: ${XGETTEXT=xgettext}
${XGETTEXT} -d xg-test1 -k_ --omit-header --no-location \
$top_srcdir/src/xgettext.c $top_srcdir/src/msgfmt.c $top_srcdir/src/gettext.c
#! /bin/sh
-tmpfiles="xg-test2.in.c"
+tmpfiles=""
+trap 'rm -fr $tmpfiles' 1 2 3 15
+
+tmpfiles="$tmpfiles xg-test2.in.c"
cat <<EOF > xg-test2.in.c
This is a test of the xgettext functionality.
/* xgettext:no-c-format */
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="zero-domain.po"
+tmpfiles="$tmpfiles zero-domain.po"
rm -f zero-domain.po
: ${XGETTEXT=xgettext}
LC_MESSAGES=C LC_ALL= \
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="xg-test4.in.c"
+tmpfiles="$tmpfiles xg-test4.in.c"
cat <<EOF > xg-test4.in.c
#line 42 "bozo"
main(){printf(gettext("Hello, World!\n"));}