3 # Some tests for java plural keyword support
7 trap 'rm -fr $tmpfiles' 1 2 3 15
9 tmpfiles="$tmpfiles xg-j-3.java"
10 cat <<EOF > xg-j-3.java
13 Bundle test = Bundle.getBundle();
14 test.ngettext("test 1", "plural test");
19 tmpfiles="$tmpfiles xg-j-3.tmp.po xg-j-3.po"
20 : ${XGETTEXT=xgettext}
21 ${XGETTEXT} --omit-header --no-location -d xg-j-3.tmp xg-j-3.java
22 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
23 LC_ALL=C tr -d '\r' < xg-j-3.tmp.po > xg-j-3.po
24 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
26 tmpfiles="$tmpfiles xg-j-3.ok"
29 msgid_plural "plural test"
35 ${DIFF} xg-j-3.ok xg-j-3.po