2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test 'I' format directive flag.
7 ${XGETTEXT} -o fc5.tmp --omit-header --no-location "$abs_srcdir"/format-c-5-prg.c || exit 1
8 LC_ALL=C tr -d '\r' < fc5.tmp > fc5.pot || exit 1
12 msgid "father of %d children"
17 ${DIFF} fc5.ok fc5.pot || exit 1
19 # This should better be Farsi, not German. Can some translator help me?
22 msgid "father of %d children"
23 msgstr "Vater von %Id Kindern"
26 test -d fa || mkdir fa
27 test -d fa/LC_MESSAGES || mkdir fa/LC_MESSAGES
30 ${MSGFMT} -o fa/LC_MESSAGES/fc5.mo fa.po
32 : ${MSGUNFMT=msgunfmt}
33 ${MSGUNFMT} -o fa.po.tmp fa/LC_MESSAGES/fc5.mo || exit 1
34 LC_ALL=C tr -d '\r' < fa.po.tmp > fa.po.un || exit 1
37 ${DIFF} fa.po fa.po.un || exit 1
39 LANGUAGE= ../fc5 fa_IR
43 if test -f /usr/bin/localedef; then
44 echo "Skipping test: locale fa_IR not installed"
46 echo "Skipping test: locale fa_IR not supported"