plural-1 plural-2 \
lang-c lang-c++ lang-objc lang-python-1 lang-python-2 lang-clisp \
lang-elisp lang-librep lang-smalltalk lang-java lang-gawk lang-pascal \
- lang-ycp lang-tcl lang-php lang-po \
- lang-rst lang-perl
+ lang-ycp lang-tcl lang-perl lang-php lang-po \
+ lang-rst
EXTRA_DIST += $(TESTS) \
test.mo xg-test1.ok.po mex-test2.ok msguniq-a.in msguniq-a.inp \
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="$tmpfiles f-a-1.data"
-cat <<\EOF > f-a-1.data
+tmpfiles="$tmpfiles f-pl-1.data"
+cat <<\EOF > f-pl-1.data
# Valid: no argument
'abc%%'
# Valid: one character argument
while read comment; do
read string
n=`expr $n + 1`
- tmpfiles="$tmpfiles f-a-1-$n.in f-a-1-$n.po"
- cat <<EOF > f-a-1-$n.in
+ tmpfiles="$tmpfiles f-pl-1-$n.in f-pl-1-$n.po"
+ cat <<EOF > f-pl-1-$n.in
gettext(${string});
EOF
- ${XGETTEXT} -L perl -o f-a-1-$n.po f-a-1-$n.in || exit 1
- test -f f-a-1-$n.po || exit 1
+ ${XGETTEXT} -L perl -o f-pl-1-$n.po f-pl-1-$n.in || exit 1
+ test -f f-pl-1-$n.po || exit 1
fail=
if echo "$comment" | grep 'Valid:' > /dev/null; then
- if grep perl-format f-a-1-$n.po > /dev/null; then
+ if grep perl-format f-pl-1-$n.po > /dev/null; then
:
else
fail=yes
fi
else
- if grep perl-format f-a-1-$n.po > /dev/null; then
+ if grep perl-format f-pl-1-$n.po > /dev/null; then
fail=yes
else
:
fi
if test -n "$fail"; then
echo "Format string recognition error:" 1>&2
- cat f-a-1-$n.in 1>&2
+ cat f-pl-1-$n.in 1>&2
echo "Got:" 1>&2
- cat f-a-1-$n.po 1>&2
+ cat f-pl-1-$n.po 1>&2
exit 1
fi
-done < f-a-1.data
+done < f-pl-1.data
rm -fr $tmpfiles
tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15
-tmpfiles="$tmpfiles f-a-2.data"
-cat <<\EOF > f-a-2.data
+tmpfiles="$tmpfiles f-pl-2.data"
+cat <<\EOF > f-pl-2.data
# Valid: %% doesn't count
msgid "abc%%def"
msgstr "xyz"
read msgid_line
read msgstr_line
n=`expr $n + 1`
- tmpfiles="$tmpfiles f-a-2-$n.po f-a-2-$n.mo"
- cat <<EOF > f-a-2-$n.po
+ tmpfiles="$tmpfiles f-pl-2-$n.po f-pl-2-$n.mo"
+ cat <<EOF > f-pl-2-$n.po
#, perl-format
${msgid_line}
${msgstr_line}
EOF
fail=
if echo "$comment" | grep 'Valid:' > /dev/null; then
- if ${MSGFMT} --check-format -o f-a-2-$n.mo f-a-2-$n.po; then
+ if ${MSGFMT} --check-format -o f-pl-2-$n.mo f-pl-2-$n.po; then
:
else
fail=yes
fi
else
- ${MSGFMT} --check-format -o f-a-2-$n.mo f-a-2-$n.po 2> /dev/null
+ ${MSGFMT} --check-format -o f-pl-2-$n.mo f-pl-2-$n.po 2> /dev/null
if test $? = 1; then
:
else
fi
if test -n "$fail"; then
echo "Format string checking error:" 1>&2
- cat f-a-2-$n.po 1>&2
+ cat f-pl-2-$n.po 1>&2
exit 1
fi
-done < f-a-2.data
+done < f-pl-2.data
rm -fr $tmpfiles