summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/msgcat-8
blob: f757138f68313309b8d464c217b28337f20941b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#! /bin/sh
. "${srcdir=.}/init.sh"; path_prepend_ . ../src

# Verify msgcat of two files, when the header entries have different comments
# and different contents. The resulting header entry must be marked fuzzy.

cat <<\EOF > mcat-test8.in1
# German message file for xyz.
# Copyright (C) 1999, 2000, 2001 xyz.
# Kab Def <ke@zzz.uucp>, 2000.
# Def Kab <dk@zzz.uucp>, 2001.
#
msgid ""
msgstr ""
"Project-Id-Version: xyz\n"
"POT-Creation-Date: 2001-11-11 12:51:34+0200\n"
"PO-Revision-Date: 2001-11-11 13:02+02:00\n"
"Last-Translator: Kab Def <ke@zzz.uucp>\n"
"Language-Team: German <i18n@zzz.uucp>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"

#. Help text (HTML-like) START
#: clients/inst_ask_config.ycp:119
msgid ""
"Congratulations!"
msgstr ""
"Glückwunsch!"
EOF

cat <<\EOF > mcat-test8.in2
# German message file for xyz.
# Copyright (C) 1999, 2000, 2001 xyz.
# Kab Def <ke@zzz.uucp>, 2000.
#
msgid ""
msgstr ""
"Project-Id-Version: xyz\n"
"POT-Creation-Date: 2001-04-24 12:51:34+0200\n"
"PO-Revision-Date: 2001-04-24 13:02+02:00\n"
"Last-Translator: Kab Def <ke@zzz.uucp>\n"
"Language-Team: German <i18n@zzz.uucp>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"

#. Help text (HTML-like) START
#: clients/inst_ask_config.ycp:119
msgid ""
"Congratulations!"
msgstr ""
"Glückwunsch!"
EOF

rm -f mcat-test8.tmp

: ${MSGCAT=msgcat}
${MSGCAT} --more-than=0 -o mcat-test8.tmp \
    mcat-test8.in1 mcat-test8.in2 || exit 1
LC_ALL=C tr -d '\r' < mcat-test8.tmp > mcat-test8.out || exit 1

cat <<\EOF > mcat-test8.ok
# #-#-#-#-#  mcat-test8.in1 (xyz)  #-#-#-#-#
# German message file for xyz.
# Copyright (C) 1999, 2000, 2001 xyz.
# Kab Def <ke@zzz.uucp>, 2000.
# Def Kab <dk@zzz.uucp>, 2001.
#
# #-#-#-#-#  mcat-test8.in2 (xyz)  #-#-#-#-#
# German message file for xyz.
# Copyright (C) 1999, 2000, 2001 xyz.
# Kab Def <ke@zzz.uucp>, 2000.
#
#, fuzzy
msgid ""
msgstr ""
"#-#-#-#-#  mcat-test8.in1 (xyz)  #-#-#-#-#\n"
"Project-Id-Version: xyz\n"
"POT-Creation-Date: 2001-11-11 12:51:34+0200\n"
"PO-Revision-Date: 2001-11-11 13:02+02:00\n"
"Last-Translator: Kab Def <ke@zzz.uucp>\n"
"Language-Team: German <i18n@zzz.uucp>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"
"#-#-#-#-#  mcat-test8.in2 (xyz)  #-#-#-#-#\n"
"Project-Id-Version: xyz\n"
"POT-Creation-Date: 2001-04-24 12:51:34+0200\n"
"PO-Revision-Date: 2001-04-24 13:02+02:00\n"
"Last-Translator: Kab Def <ke@zzz.uucp>\n"
"Language-Team: German <i18n@zzz.uucp>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"

#. Help text (HTML-like) START
#: clients/inst_ask_config.ycp:119
msgid "Congratulations!"
msgstr "Glückwunsch!"
EOF

: ${DIFF=diff}
${DIFF} mcat-test8.ok mcat-test8.out
result=$?

exit $result