2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test C support: extraction of contexts, disambiguating according to the
8 // (KDE) The 1-argument i18n macro is a simple gettext without context.
10 // (KDE) The 2-argument i18n macro has the context first.
11 print (i18n ("Help", "about"));
12 // (KDE) The 3-argument i18n macro is an ngettext without context.
13 print (i18n ("error", "errors", 7));
16 : ${XGETTEXT=xgettext}
17 ${XGETTEXT} --omit-header --no-location \
18 --keyword=i18n:1 --keyword=i18n:1c,2,2t --keyword=i18n:1,2,3t \
19 -d xg-c-11.tmp xg-c-11.c || exit 1
20 LC_ALL=C tr -d '\r' < xg-c-11.tmp.po > xg-c-11.po || exit 1
22 cat <<EOF > xg-c-11.ok
37 ${DIFF} xg-c-11.ok xg-c-11.po