• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2. "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4# Test msguniq on PO file with previous msgids.
5
6cat <<\EOF > msguniq-6.in
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"
42
43#. TRANSLATORS: An error message.
44#: src/args.c:247
45#, c-format
46msgid "too few arguments"
47msgstr "zu wenige Argumente"
48
49#. TRANSLATORS: An error message.
50#: src/args.c:242
51#, fuzzy, c-format
52#| msgid "too few arguments"
53msgid "too many arguments"
54msgstr "zu wenige Argumente"
55
56#: getopt.c:796 getopt.c:799
57#, fuzzy, c-format
58#| msgid "%s: invalid options -- %c\n"
59msgid "%s: illegal option -- %c\n"
60msgstr "%s: ungültige Optionen -- %c\n"
61
62#: getopt.c:863 getopt.c:882 getopt.c:1095 getopt.c:1116
63#, fuzzy, c-format
64#| msgid "%s: option requires an argument -- %c\n"
65msgid "%s: option requires more than one argument\n"
66msgstr "%s: Option erwartet ein Argument -- %c\n"
67EOF
68
69: ${MSGUNIQ=msguniq}
70${MSGUNIQ} -o msguniq-6.tmp msguniq-6.in || Exit 1
71LC_ALL=C tr -d '\r' < msguniq-6.tmp > msguniq-6.out || Exit 1
72
73cat <<\EOF > msguniq-6.ok
74msgid ""
75msgstr ""
76"Content-Type: text/plain; charset=UTF-8\n"
77"Content-Transfer-Encoding: 8bit\n"
78
79#. TRANSLATORS: An error message.
80#: src/args.c:242
81#, c-format
82msgid "too many arguments"
83msgstr "zu viele Argumente"
84
85#. TRANSLATORS: An error message.
86#: src/args.c:247
87#, c-format
88msgid "too few arguments"
89msgstr "zu wenige Argumente"
90
91# Oder besser "fehlende Argumente"?
92#. TRANSLATORS: An error message.
93#: src/args.c:273
94#, c-format
95msgid "missing arguments"
96msgstr "Argumente fehlen"
97
98#: getopt.c:796 getopt.c:799
99#, fuzzy, c-format
100msgid "%s: illegal option -- %c\n"
101msgstr ""
102"#-#-#-#-#  msguniq-6.in  #-#-#-#-#\n"
103"%s: ungültige Option -- %c\n"
104"#-#-#-#-#  msguniq-6.in  #-#-#-#-#\n"
105"%s: ungültige Optionen -- %c\n"
106
107#: getopt.c:805 getopt.c:808
108#, c-format
109msgid "%s: invalid option -- %c\n"
110msgstr "%s: ungültige Option -- %c\n"
111
112#: getopt.c:863 getopt.c:882 getopt.c:1095 getopt.c:1116
113#, fuzzy, c-format
114#| msgid "%s: option requires an argument -- %c\n"
115msgid "%s: option requires more than one argument\n"
116msgstr "%s: Option erwartet ein Argument -- %c\n"
117EOF
118
119: ${DIFF=diff}
120${DIFF} msguniq-6.ok msguniq-6.out
121result=$?
122
123exit $result
124