1#!/bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Tests for C# plural keyword support 5 6cat <<EOF > xg-cs-4.cs 7class TestCase { 8 public static void Main (String[] args) { 9 GetPluralString("test 1", "plural test"); 10 MyPluralString (context, "I've 1", "you've lost"); 11 } 12} 13EOF 14 15: ${XGETTEXT=xgettext} 16${XGETTEXT} --omit-header --no-location --keyword=MyPluralString:2,3 \ 17 -d xg-cs-4.tmp xg-cs-4.cs || Exit 1 18LC_ALL=C tr -d '\r' < xg-cs-4.tmp.po > xg-cs-4.po || Exit 1 19 20cat <<EOF > xg-cs-4.ok 21msgid "test 1" 22msgid_plural "plural test" 23msgstr[0] "" 24msgstr[1] "" 25 26msgid "I've 1" 27msgid_plural "you've lost" 28msgstr[0] "" 29msgstr[1] "" 30EOF 31 32: ${DIFF=diff} 33${DIFF} xg-cs-4.ok xg-cs-4.po 34result=$? 35 36exit $result 37