3 # Tests for C# plural keyword support
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles xg-cs-4.cs"
11 public static void Main (String[] args) {
12 GetPluralString("test 1", "plural test");
13 MyPluralString (context, "I've 1", "you've lost");
18 tmpfiles
="$tmpfiles xg-cs-4.po"
19 : ${XGETTEXT=xgettext}
20 ${XGETTEXT} --omit-header --no-location --keyword=MyPluralString
:2,3 -d xg-cs-4 xg-cs-4.cs
21 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
23 tmpfiles
="$tmpfiles xg-cs-4.ok"
24 cat <<EOF > xg-cs-4.ok
26 msgid_plural "plural test"
31 msgid_plural "you've lost"
37 ${DIFF} xg-cs-4.ok xg-cs-4.po