1#! /bin/sh 2. "${srcdir=.}/init.sh"; path_prepend_ . ../src 3 4# Test msgcat on a PO file with previous msgids. 5 6cat <<\EOF > mcat-test15.in 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 many arguments." 18msgstr "zu viele Argumente" 19 20#. TRANSLATORS: An error message. 21#: src/args.c:247 22#, fuzzy, c-format 23#| msgid "too many arguments" 24msgid "Too few arguments." 25msgstr "zu viele Argumente" 26 27# Oder besser "fehlende Argumente"? 28#. TRANSLATORS: An error message. 29#: src/args.c:273 30#, c-format 31#| msgid "missing arguments" 32msgid "Missing arguments." 33msgstr "Argumente fehlen." 34 35#, fuzzy 36#~| msgid "%s: invalid option -- %c\n" 37#~ msgid "%s: illegal option -- %c\n" 38#~ msgstr "%s: ungültige Option -- %c\n" 39 40#~ msgid "%s: invalid option -- %c\n" 41#~ msgstr "%s: ungültige Option -- %c\n" 42EOF 43 44rm -f mcat-test15.tmp1 45: ${MSGCAT=msgcat} 46${MSGCAT} -o mcat-test15.tmp1 mcat-test15.in || Exit 1 47LC_ALL=C tr -d '\r' < mcat-test15.tmp1 > mcat-test15.out1 || Exit 1 48 49: ${DIFF=diff} 50${DIFF} mcat-test15.in mcat-test15.out1 51result=$? 52 53rm -f mcat-test15.tmp2 54: ${MSGCAT=msgcat} 55${MSGCAT} --indent -o mcat-test15.tmp2 mcat-test15.in || Exit 1 56LC_ALL=C tr -d '\r' < mcat-test15.tmp2 > mcat-test15.out2 || Exit 1 57 58cat <<\EOF > mcat-test15.ok 59msgid "" 60msgstr "Report-Msgid-Bugs-To: \n" 61 "Content-Type: text/plain; charset=UTF-8\n" 62 "Content-Transfer-Encoding: 8bit\n" 63 64#. TRANSLATORS: An error message. 65#: src/args.c:242 66#, fuzzy, c-format 67#| msgid "too many arguments" 68msgid "Too many arguments." 69msgstr "zu viele Argumente" 70 71#. TRANSLATORS: An error message. 72#: src/args.c:247 73#, fuzzy, c-format 74#| msgid "too many arguments" 75msgid "Too few arguments." 76msgstr "zu viele Argumente" 77 78# Oder besser "fehlende Argumente"? 79#. TRANSLATORS: An error message. 80#: src/args.c:273 81#, c-format 82#| msgid "missing arguments" 83msgid "Missing arguments." 84msgstr "Argumente fehlen." 85 86#, fuzzy 87#~| msgid "%s: invalid option -- %c\n" 88#~ msgid "%s: illegal option -- %c\n" 89#~ msgstr "%s: ungültige Option -- %c\n" 90 91#~ msgid "%s: invalid option -- %c\n" 92#~ msgstr "%s: ungültige Option -- %c\n" 93EOF 94 95: ${DIFF=diff} 96${DIFF} mcat-test15.ok mcat-test15.out2 97result=$? 98 99exit $result 100