1 1.1 christos #! /bin/sh 2 1.1 christos 3 1.1 christos # Test --extracted-comment option. 4 1.1 christos 5 1.1 christos tmpfiles="" 6 1.1 christos trap 'rm -fr $tmpfiles' 1 2 3 15 7 1.1 christos 8 1.1 christos tmpfiles="$tmpfiles mg-test8.po" 9 1.1 christos cat <<\EOF > mg-test8.po 10 1.1 christos msgid "" 11 1.1 christos msgstr "" 12 1.1 christos "Project-Id-Version: GNU gettext 0.11-pre1\n" 13 1.1 christos "POT-Creation-Date: 2001-12-08 20:33+0100\n" 14 1.1 christos "PO-Revision-Date: 2001-11-04 12:25+0100\n" 15 1.1 christos "Last-Translator: Karl Eichwalder <ke (at] suse.de>\n" 16 1.1 christos "Language-Team: German <de (at] li.org>\n" 17 1.1 christos "MIME-Version: 1.0\n" 18 1.1 christos "Content-Type: text/plain; charset=ISO-8859-1\n" 19 1.1 christos "Content-Transfer-Encoding: 8bit\n" 20 1.1 christos "Plural-Forms: nplurals=2; plural=(n != 1);\n" 21 1.1 christos 22 1.1 christos # Warum ist das nicht als c-form markiert? 23 1.1 christos #: widgets.c:87 24 1.1 christos msgid "About <tt>GNOME</tt>" 25 1.1 christos msgstr "ber <tt>GNOME</tt>" 26 1.1 christos 27 1.1 christos #. c-form 28 1.1 christos #: widgets.c:118 29 1.1 christos msgid "click <b>here</b>" 30 1.1 christos msgstr "Klicken Sie <b>hier</b>." 31 1.1 christos 32 1.1 christos #: widgets.c:152 33 1.1 christos #, c-format 34 1.1 christos msgid "repeat %d times" 35 1.1 christos msgstr "%d mal wiederholen" 36 1.1 christos EOF 37 1.1 christos 38 1.1 christos tmpfiles="$tmpfiles mg-test8.out mg-test8.err" 39 1.1 christos : ${MSGGREP=msggrep} 40 1.1 christos LC_MESSAGES=C LC_ALL= \ 41 1.1 christos ${MSGGREP} -X -e c-form -o mg-test8.out mg-test8.po >mg-test8.err 2>&1 42 1.1 christos result=$? 43 1.1 christos cat mg-test8.err | grep -v 'warning: Locale charset' | grep -v '^ ' 44 1.1 christos test $result = 0 || { rm -fr $tmpfiles; exit 1; } 45 1.1 christos 46 1.1 christos tmpfiles="$tmpfiles mg-test8.ok" 47 1.1 christos cat <<\EOF > mg-test8.ok 48 1.1 christos msgid "" 49 1.1 christos msgstr "" 50 1.1 christos "Project-Id-Version: GNU gettext 0.11-pre1\n" 51 1.1 christos "POT-Creation-Date: 2001-12-08 20:33+0100\n" 52 1.1 christos "PO-Revision-Date: 2001-11-04 12:25+0100\n" 53 1.1 christos "Last-Translator: Karl Eichwalder <ke (at] suse.de>\n" 54 1.1 christos "Language-Team: German <de (at] li.org>\n" 55 1.1 christos "MIME-Version: 1.0\n" 56 1.1 christos "Content-Type: text/plain; charset=ISO-8859-1\n" 57 1.1 christos "Content-Transfer-Encoding: 8bit\n" 58 1.1 christos "Plural-Forms: nplurals=2; plural=(n != 1);\n" 59 1.1 christos 60 1.1 christos #. c-form 61 1.1 christos #: widgets.c:118 62 1.1 christos msgid "click <b>here</b>" 63 1.1 christos msgstr "Klicken Sie <b>hier</b>." 64 1.1 christos EOF 65 1.1 christos 66 1.1 christos : ${DIFF=diff} 67 1.1 christos ${DIFF} mg-test8.ok mg-test8.out 68 1.1 christos result=$? 69 1.1 christos 70 1.1 christos rm -fr $tmpfiles 71 1.1 christos 72 1.1 christos exit $result 73