2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test handling of input files with different translations:
5 # preserve all variants, add markers
7 cat <<\EOF > mcat-test6.in1
8 # German message file for xyz.
9 # Copyright (C) 1999, 2000, 2001 xyz.
10 # Kab Def <ke@zzz.uucp>, 2000.
14 "Project-Id-Version: xyz\n"
15 "POT-Creation-Date: 2001-04-24 12:51:34+0200\n"
16 "PO-Revision-Date: 2001-04-24 13:02+02:00\n"
17 "Last-Translator: Kab Def <ke@zzz.uucp>\n"
18 "Language-Team: German <i18n@zzz.uucp>\n"
20 "Content-Type: text/plain; charset=ISO-8859-1\n"
21 "Content-Transfer-Encoding: 8bit\n"
23 #. Help text (HTML-like) START
24 #: clients/inst_ask_config.ycp:119
31 cat <<\EOF > mcat-test6.in2
32 # German message file for xyz.
33 # Copyright (C) 1999, 2000, 2001 xyz.
34 # Kab Def <ke@zzz.uucp>, 2000.
38 "Project-Id-Version: xyz\n"
39 "POT-Creation-Date: 2001-04-24 12:51:34+0200\n"
40 "PO-Revision-Date: 2001-04-24 13:02+02:00\n"
41 "Last-Translator: Kab Def <ke@zzz.uucp>\n"
42 "Language-Team: German <i18n@zzz.uucp>\n"
44 "Content-Type: text/plain; charset=ISO-8859-1\n"
45 "Content-Transfer-Encoding: 8bit\n"
47 #. Help text (HTML-like) START
48 #: clients/inst_ask_config.ycp:119
52 "Herzlichen Glückwunsch!"
58 ${MSGCAT} --more-than=0 -o mcat-test6.tmp \
59 mcat-test6.in1 mcat-test6.in2 || exit 1
60 LC_ALL=C tr -d '\r' < mcat-test6.tmp > mcat-test6.out || exit 1
62 cat << \EOF > mcat-test6.ok
63 # German message file for xyz.
64 # Copyright (C) 1999, 2000, 2001 xyz.
65 # Kab Def <ke@zzz.uucp>, 2000.
69 "Project-Id-Version: xyz\n"
70 "POT-Creation-Date: 2001-04-24 12:51:34+0200\n"
71 "PO-Revision-Date: 2001-04-24 13:02+02:00\n"
72 "Last-Translator: Kab Def <ke@zzz.uucp>\n"
73 "Language-Team: German <i18n@zzz.uucp>\n"
75 "Content-Type: text/plain; charset=ISO-8859-1\n"
76 "Content-Transfer-Encoding: 8bit\n"
78 #. Help text (HTML-like) START
79 #: clients/inst_ask_config.ycp:119
81 msgid "Congratulations!"
83 "#-#-#-#-# mcat-test6.in1 (xyz) #-#-#-#-#\n"
85 "#-#-#-#-# mcat-test6.in2 (xyz) #-#-#-#-#\n"
86 "Herzlichen Glückwunsch!"
90 ${DIFF} mcat-test6.ok mcat-test6.out