3 # Test of --csharp option.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 # Test whether we can compile and execute C# programs.
9 test "${TESTCSHARP}" = yes ||
exit 77
11 tmpfiles
="$tmpfiles fr.po"
15 "Content-Type: text/plain; charset=ISO-8859-1\n"
16 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
18 msgid
"'Your command, please?', asked the waiter."
19 msgstr
"«Votre commande, s'il vous plait», dit le garçon."
21 # Les gateaux allemands sont les meilleurs du monde.
23 msgid
"a piece of cake"
24 msgid_plural
"{0} pieces of cake"
25 msgstr
[0] "un morceau de gateau"
26 msgstr
[1] "{0} morceaux de gateau"
28 # Reverse the arguments.
30 msgid
"{0} is replaced by {1}."
31 msgstr
"{1} remplace {0}."
34 tmpfiles
="$tmpfiles fr/prog.resources.dll"
36 GETTEXTCSHARPLIBDIR
=..
/..
/gettext-runtime
/intl-csharp \
37 ${MSGFMT} --csharp -d .
-r prog
-l fr fr.po ||
exit 1
39 tmpfiles
="$tmpfiles prog.out"
40 : ${MSGUNFMT=msgunfmt}
41 GETTEXTCSHARPEXEDIR
=..
/src \
42 GETTEXTCSHARPLIBDIR
=..
/..
/gettext-runtime
/intl-csharp \
43 ${MSGUNFMT} --csharp -d .
-r prog
-l fr
-o prog.out ||
exit 1
45 tmpfiles
="$tmpfiles prog.sort"
47 ${MSGCAT} -s prog.out
-o prog.
sort ||
exit 1
49 tmpfiles
="$tmpfiles prog.ok"
53 "Content-Type: text/plain; charset=UTF-8\n"
54 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
56 msgid
"'Your command, please?', asked the waiter."
57 msgstr
"«Votre commande, s'il vous plait», dit le garçon."
59 msgid
"a piece of cake"
60 msgid_plural
"{0} pieces of cake"
61 msgstr
[0] "un morceau de gateau"
62 msgstr
[1] "{0} morceaux de gateau"
64 msgid
"{0} is replaced by {1}."
65 msgstr
"{1} remplace {0}."
68 ${DIFF} prog.ok prog.
sort ||
exit 1