1#! /bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Test msgcomm on PO files with previous msgids. 5 6cat <<\EOF > mcomm-test26.in1 7msgid "" 8msgstr "" 9"Content-Type: text/plain; charset=UTF-8\n" 10"Content-Transfer-Encoding: 8bit\n" 11 12#. TRANSLATORS: An error message. 13#: src/args.c:242 14#, c-format 15msgid "too many arguments" 16msgstr "zu viele Argumente" 17 18#. TRANSLATORS: An error message. 19#: src/args.c:247 20#, fuzzy, c-format 21#| msgid "too many arguments" 22msgid "too few arguments" 23msgstr "zu viele Argumente" 24 25# Oder besser "fehlende Argumente"? 26#. TRANSLATORS: An error message. 27#: src/args.c:273 28#, c-format 29msgid "missing arguments" 30msgstr "Argumente fehlen" 31 32#: getopt.c:796 getopt.c:799 33#, fuzzy, c-format 34#| msgid "%s: invalid option -- %c\n" 35msgid "%s: illegal option -- %c\n" 36msgstr "%s: ungültige Option -- %c\n" 37 38#: getopt.c:805 getopt.c:808 39#, c-format 40msgid "%s: invalid option -- %c\n" 41msgstr "%s: ungültige Option -- %c\n" 42EOF 43 44cat <<\EOF > mcomm-test26.in2 45msgid "" 46msgstr "" 47"Content-Type: text/plain; charset=UTF-8\n" 48"Content-Transfer-Encoding: 8bit\n" 49 50#. TRANSLATORS: An error message. 51#: src/args.c:247 52#, c-format 53msgid "too few arguments" 54msgstr "zu wenige Argumente" 55 56#. TRANSLATORS: An error message. 57#: src/args.c:242 58#, fuzzy, c-format 59#| msgid "too few arguments" 60msgid "too many arguments" 61msgstr "zu wenige Argumente" 62 63#: getopt.c:796 getopt.c:799 64#, fuzzy, c-format 65#| msgid "%s: invalid options -- %c\n" 66msgid "%s: illegal option -- %c\n" 67msgstr "%s: ungültige Optionen -- %c\n" 68EOF 69 70: ${MSGCOMM=msgcomm} 71${MSGCOMM} -o mcomm-test26.tmp mcomm-test26.in1 mcomm-test26.in2 || Exit 1 72LC_ALL=C tr -d '\r' < mcomm-test26.tmp > mcomm-test26.out || Exit 1 73 74cat <<\EOF > mcomm-test26.ok 75msgid "" 76msgstr "" 77"Content-Type: text/plain; charset=UTF-8\n" 78"Content-Transfer-Encoding: 8bit\n" 79 80#. TRANSLATORS: An error message. 81#: src/args.c:242 82#, c-format 83msgid "too many arguments" 84msgstr "zu viele Argumente" 85 86#. TRANSLATORS: An error message. 87#: src/args.c:247 88#, fuzzy, c-format 89#| msgid "too many arguments" 90msgid "too few arguments" 91msgstr "zu viele Argumente" 92 93#: getopt.c:796 getopt.c:799 94#, fuzzy, c-format 95#| msgid "%s: invalid option -- %c\n" 96msgid "%s: illegal option -- %c\n" 97msgstr "%s: ungültige Option -- %c\n" 98EOF 99 100: ${DIFF=diff} 101${DIFF} mcomm-test26.ok mcomm-test26.out 102result=$? 103 104exit $result 105