2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Some tests for java plural keyword support
7 cat <<EOF > xg-j-4.java
10 Bundle test = Bundle.getBundle();
11 test.ngettext(test, "test 1", "plural test");
16 : ${XGETTEXT=xgettext}
17 ${XGETTEXT} --omit-header --no-location --keyword=ngettext:2,3 \
18 -d xg-j-4.tmp xg-j-4.java || exit 1
19 LC_ALL=C tr -d '\r' < xg-j-4.tmp.po > xg-j-4.po || exit 1
23 msgid_plural "plural test"
29 ${DIFF} xg-j-4.ok xg-j-4.po