1#!/bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3# 4# Some tests for java plural keyword support 5# 6 7cat <<EOF > xg-j-3.java 8class TestCase { 9 public TestCase() { 10 Bundle test = Bundle.getBundle(); 11 test.ngettext("test 1", "plural test"); 12 } 13} 14EOF 15 16: ${XGETTEXT=xgettext} 17${XGETTEXT} --omit-header --no-location -d xg-j-3.tmp xg-j-3.java || Exit 1 18LC_ALL=C tr -d '\r' < xg-j-3.tmp.po > xg-j-3.po || Exit 1 19 20cat <<EOF > xg-j-3.ok 21msgid "test 1" 22msgid_plural "plural test" 23msgstr[0] "" 24msgstr[1] "" 25EOF 26 27: ${DIFF=diff} 28${DIFF} xg-j-3.ok xg-j-3.po 29result=$? 30 31exit $result 32