1#! /bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Test msgcat on a PO files with previous msgids. 5 6cat <<\EOF > mcat-test16.in1 7msgid "" 8msgstr "" 9"Report-Msgid-Bugs-To: \n" 10"Content-Type: text/plain; charset=UTF-8\n" 11"Content-Transfer-Encoding: 8bit\n" 12 13#. TRANSLATORS: An error message. 14#: src/args.c:242 15#, fuzzy, c-format 16#| msgid "too many arguments" 17msgid "too large arguments" 18msgstr "zu viele Argumente" 19 20# Oder besser "fehlende Argumente"? 21#. TRANSLATORS: An error message. 22#: src/args.c:273 23#, c-format 24#| msgid "missing arguments" 25msgid "Missing arguments." 26msgstr "Argumente fehlen." 27EOF 28 29cat <<\EOF > mcat-test16.in2 30msgid "" 31msgstr "" 32"Report-Msgid-Bugs-To: \n" 33"Content-Type: text/plain; charset=UTF-8\n" 34"Content-Transfer-Encoding: 8bit\n" 35 36#. TRANSLATORS: An error message. 37#: src/args.c:242 38#, fuzzy, c-format 39#| msgid "too few arguments" 40msgid "too large arguments" 41msgstr "zu wenige Argumente" 42EOF 43 44rm -f mcat-test16.tmp 45: ${MSGCAT=msgcat} 46${MSGCAT} -o mcat-test16.tmp mcat-test16.in1 mcat-test16.in2 || Exit 1 47LC_ALL=C tr -d '\r' < mcat-test16.tmp > mcat-test16.out || Exit 1 48 49cat <<\EOF > mcat-test16.ok 50msgid "" 51msgstr "" 52"Report-Msgid-Bugs-To: \n" 53"Content-Type: text/plain; charset=UTF-8\n" 54"Content-Transfer-Encoding: 8bit\n" 55 56#. TRANSLATORS: An error message. 57#: src/args.c:242 58#, fuzzy, c-format 59msgid "too large arguments" 60msgstr "" 61"#-#-#-#-# mcat-test16.in1 #-#-#-#-#\n" 62"zu viele Argumente\n" 63"#-#-#-#-# mcat-test16.in2 #-#-#-#-#\n" 64"zu wenige Argumente" 65 66# Oder besser "fehlende Argumente"? 67#. TRANSLATORS: An error message. 68#: src/args.c:273 69#, c-format 70#| msgid "missing arguments" 71msgid "Missing arguments." 72msgstr "Argumente fehlen." 73EOF 74 75: ${DIFF=diff} 76${DIFF} mcat-test16.ok mcat-test16.out 77result=$? 78 79exit $result 80