3 # Test handling of input files with different translations:
4 # preserve all variants, add markers
7 trap 'rm -fr $tmpfiles' 1 2 3 15
9 tmpfiles="$tmpfiles mcat-test6.in1 mcat-test6.in2"
10 cat <<\EOF > mcat-test6.in1
11 # German message file for xyz.
12 # Copyright (C) 1999, 2000, 2001 xyz.
13 # Kab Def <ke@zzz.uucp>, 2000.
17 "Project-Id-Version: xyz\n"
18 "POT-Creation-Date: 2001-04-24 12:51:34+0200\n"
19 "PO-Revision-Date: 2001-04-24 13:02+02:00\n"
20 "Last-Translator: Kab Def <ke@zzz.uucp>\n"
21 "Language-Team: German <i18n@zzz.uucp>\n"
23 "Content-Type: text/plain; charset=ISO-8859-1\n"
24 "Content-Transfer-Encoding: 8bit\n"
26 #. Help text (HTML-like) START
27 #: clients/inst_ask_config.ycp:119
34 cat <<\EOF > mcat-test6.in2
35 # German message file for xyz.
36 # Copyright (C) 1999, 2000, 2001 xyz.
37 # Kab Def <ke@zzz.uucp>, 2000.
41 "Project-Id-Version: xyz\n"
42 "POT-Creation-Date: 2001-04-24 12:51:34+0200\n"
43 "PO-Revision-Date: 2001-04-24 13:02+02:00\n"
44 "Last-Translator: Kab Def <ke@zzz.uucp>\n"
45 "Language-Team: German <i18n@zzz.uucp>\n"
47 "Content-Type: text/plain; charset=ISO-8859-1\n"
48 "Content-Transfer-Encoding: 8bit\n"
50 #. Help text (HTML-like) START
51 #: clients/inst_ask_config.ycp:119
55 "Herzlichen Glückwunsch!"
58 tmpfiles="$tmpfiles mcat-test6.tmp mcat-test6.out"
62 ${MSGCAT} --more-than=0 -o mcat-test6.tmp \
63 mcat-test6.in1 mcat-test6.in2
64 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
65 LC_ALL=C tr -d '\r' < mcat-test6.tmp > mcat-test6.out
66 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
68 tmpfiles="$tmpfiles mcat-test6.ok"
69 cat << \EOF > mcat-test6.ok
70 # German message file for xyz.
71 # Copyright (C) 1999, 2000, 2001 xyz.
72 # Kab Def <ke@zzz.uucp>, 2000.
76 "Project-Id-Version: xyz\n"
77 "POT-Creation-Date: 2001-04-24 12:51:34+0200\n"
78 "PO-Revision-Date: 2001-04-24 13:02+02:00\n"
79 "Last-Translator: Kab Def <ke@zzz.uucp>\n"
80 "Language-Team: German <i18n@zzz.uucp>\n"
82 "Content-Type: text/plain; charset=ISO-8859-1\n"
83 "Content-Transfer-Encoding: 8bit\n"
85 #. Help text (HTML-like) START
86 #: clients/inst_ask_config.ycp:119
88 msgid "Congratulations!"
90 "#-#-#-#-# mcat-test6.in1 (xyz) #-#-#-#-#\n"
92 "#-#-#-#-# mcat-test6.in2 (xyz) #-#-#-#-#\n"
93 "Herzlichen Glückwunsch!"
97 ${DIFF} mcat-test6.ok mcat-test6.out