3 # Test 'I' format directive flag.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles fc5.pot"
10 ${XGETTEXT} -o fc5.pot
--omit-header --no-location ${top_srcdir}/tests
/format-c-5-prg.c
12 tmpfiles
="$tmpfiles fc5.ok"
15 msgid "father of %d children"
20 ${DIFF} fc5.ok fc5.pot ||
exit 1
22 tmpfiles
="$tmpfiles fa.po"
23 # This should better be Farsi, not German. Can some translator help me?
26 msgid "father of %d children"
27 msgstr "Vater von %Id Kindern"
30 tmpfiles
="$tmpfiles fa"
31 test -d fa || mkdir fa
32 test -d fa
/LC_MESSAGES || mkdir fa
/LC_MESSAGES
35 ${MSGFMT} -o fa
/LC_MESSAGES
/fc5.mo fa.po
37 tmpfiles
="$tmpfiles fa.po.tmp"
38 : ${MSGUNFMT=msgunfmt}
39 ${MSGUNFMT} fa
/LC_MESSAGES
/fc5.mo
-o fa.po.tmp
41 tmpfiles
="$tmpfiles fa.po.strip"
42 sed 1d
< fa.po
> fa.po.strip
45 ${DIFF} fa.po.strip fa.po.tmp ||
exit 1
50 77) rm -fr $tmpfiles; exit 77;;