2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test C# support: --add-comments option.
6 cat <<\EOF > xg-cs-6.cs
8 /* b */ string s = /* c */
10 /* e */ _( /* f */ "hello " /* g */ + /* h */ "world" /* i */ );
13 : ${XGETTEXT=xgettext}
14 ${XGETTEXT} --add-comments --omit-header --no-location --keyword=_ \
15 -d xg-cs-6.tmp xg-cs-6.cs || exit 1
16 LC_ALL=C tr -d '\r' < xg-cs-6.tmp.po > xg-cs-6.po || exit 1
18 cat <<EOF > xg-cs-6.ok
30 ${DIFF} xg-cs-6.ok xg-cs-6.po