+2001-10-22 Bruno Haible <haible@clisp.cons.org>
+
+ * Makefile.am (TESTS): Add xgettext-15, xgettext-16.
+
+2001-10-04 Tommy Johansson <tommy.johansson@kanalen.org>
+
+ * xgettext-15: New file.
+ * xgettext-16: New file.
+
2001-09-20 Bruno Haible <haible@clisp.cons.org>
* format-c-1: Fix two tests to really test something.
msguniq-1 msguniq-2 msguniq-3 \
xgettext-1 xgettext-2 xgettext-3 xgettext-4 xgettext-5 xgettext-6 \
xgettext-7 xgettext-8 xgettext-9 xgettext-10 xgettext-11 xgettext-12 \
- xgettext-13 xgettext-14 \
+ xgettext-13 xgettext-14 xgettext-15 xgettext-16 \
format-c-1 format-c-2 \
format-java-1 format-java-2 \
format-lisp-1 format-lisp-2 \
--- /dev/null
+#!/bin/sh
+#
+# Some tests for java plural keyword support
+#
+
+tmpfiles=""
+trap 'rm -fr $tmpfiles' 1 2 3 15
+
+tmpfiles="$tmpfiles xg-test15.java"
+cat <<EOF > xg-test15.java
+class TestCase {
+ public TestCase() {
+ Bundle test = Bundle.getBundle();
+ test.ngettext("test 1", "plural test");
+ }
+}
+EOF
+
+tmpfiles="$tmpfiles xg-test15.po"
+: ${XGETTEXT=xgettext}
+${XGETTEXT} --omit-header -d xg-test15 xg-test15.java
+
+tmpfiles="$tmpfiles xg-test15.ok"
+cat <<EOF > xg-test15.ok
+msgid "test 1"
+msgid_plural "plural test"
+msgstr[0] ""
+msgstr[1] ""
+EOF
+
+: ${DIFF=diff}
+${DIFF} xg-test15.ok xg-test15.po
+result=$?
+
+rm -fr $tmpfiles
+
+exit $result
--- /dev/null
+#!/bin/sh
+#
+# Some tests for java plural keyword support
+#
+
+tmpfiles=""
+trap 'rm -fr $tmpfiles' 1 2 3 15
+
+tmpfiles="$tmpfiles xg-test16.java"
+cat <<EOF > xg-test16.java
+class TestCase {
+ public TestCase() {
+ Bundle test = Bundle.getBundle();
+ test.ngettext(test, "test 1", "plural test");
+ }
+}
+EOF
+
+tmpfiles="$tmpfiles xg-test16.po"
+: ${XGETTEXT=xgettext}
+${XGETTEXT} --omit-header --keyword=ngettext:2,3 -d xg-test16 xg-test16.java
+
+tmpfiles="$tmpfiles xg-test16.ok"
+cat <<EOF > xg-test16.ok
+msgid "test 1"
+msgid_plural "plural test"
+msgstr[0] ""
+msgstr[1] ""
+EOF
+
+: ${DIFF=diff}
+${DIFF} xg-test16.ok xg-test16.po
+result=$?
+
+rm -fr $tmpfiles
+
+exit $result