2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test C support: extraction of 'range:' flags.
7 if (days > 7 && days < 14)
8 /* xgettext: range: 1..6 */
9 printf (ngettext ("one week and one day", "one week and %d days",
14 : ${XGETTEXT=xgettext}
15 ${XGETTEXT} --omit-header --no-location -d xg-c-18.tmp xg-c-18.c || exit 1
16 LC_ALL=C tr -d '\r' < xg-c-18.tmp.po > xg-c-18.po || exit 1
18 cat <<EOF > xg-c-18.ok
19 #, c-format, range: 1..6
20 msgid "one week and one day"
21 msgid_plural "one week and %d days"
27 ${DIFF} xg-c-18.ok xg-c-18.po