3 # Test ISO C 99 <inttypes.h> format string directives with plural forms.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles fc4.pot"
10 ${XGETTEXT} -o fc4.pot
--omit-header --no-location ${top_srcdir}/tests
/format-c-4-prg.c
12 tmpfiles
="$tmpfiles fc4.ok"
15 msgid "father of %<PRId8> child"
16 msgid_plural "father of %<PRId8> children"
22 ${DIFF} fc4.ok fc4.pot ||
exit 1
24 tmpfiles
="$tmpfiles de.po"
27 msgid "father of %<PRId8> child"
28 msgid_plural "father of %<PRId8> children"
29 msgstr[0] "Vater eines Kindes"
30 msgstr[1] "Vater von %<PRId8> Kindern"
33 tmpfiles
="$tmpfiles de"
34 test -d de || mkdir de
35 test -d de
/LC_MESSAGES || mkdir de
/LC_MESSAGES
38 ${MSGFMT} -o de
/LC_MESSAGES
/fc4.mo de.po
40 tmpfiles
="$tmpfiles de.po.tmp"
41 : ${MSGUNFMT=msgunfmt}
42 ${MSGUNFMT} de
/LC_MESSAGES
/fc4.mo
-o de.po.tmp
44 tmpfiles
="$tmpfiles de.po.strip"
45 sed 1d
< de.po
> de.po.strip
48 ${DIFF} de.po.strip de.po.tmp ||
exit 1