3 # Test extraction of non-ASCII msgids.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles xg-test5.c"
12 printf (_("%s: neznámý pøepínaè -- %c\n"), option);
13 printf (_("%s: pøepínaè vy¾aduje argument -- %c\n"), option);
17 tmpfiles="$tmpfiles xg-test5.tmp xg-test5.po"
18 : ${XGETTEXT=xgettext}
19 ${XGETTEXT} --no-location -k_ -o xg-test5.po xg-test5.c 2>/dev/null
20 test $? = 1 || { rm -fr $tmpfiles; exit 1; }
21 ${XGETTEXT} --no-location -k_ --from-code=iso-8859-2 -o xg-test5.tmp xg-test5.c
22 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
23 LC_ALL=C tr -d '\r' < xg-test5.tmp > xg-test5.po
24 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
26 tmpfiles="$tmpfiles xg-test5.pot"
27 sed -e '/POT-Creation-Date/d' < xg-test5.po > xg-test5.pot
29 tmpfiles="$tmpfiles xg-test5.ok"
30 cat <<EOF > xg-test5.ok
31 # SOME DESCRIPTIVE TITLE.
32 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
33 # This file is distributed under the same license as the PACKAGE package.
34 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
39 "Project-Id-Version: PACKAGE VERSION\n"
40 "Report-Msgid-Bugs-To: \n"
41 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
42 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
43 "Language-Team: LANGUAGE <LL@li.org>\n"
46 "Content-Type: text/plain; charset=UTF-8\n"
47 "Content-Transfer-Encoding: 8bit\n"
50 msgid "%s: neznámý přepínač -- %c\n"
54 msgid "%s: přepínač vyžaduje argument -- %c\n"
59 ${DIFF} xg-test5.ok xg-test5.pot