2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test msgcat on PO files with contexts.
6 cat <<\EOF > mcat-test13.in1
9 "Content-Type: text/plain; charset=UTF-8\n"
10 "Content-Transfer-Encoding: 8bit\n"
22 #. Denote a lock's state
27 #. Denote a lock's state
35 #~ msgstr "Enregistrer sous"
38 cat <<\EOF > mcat-test13.in2
41 "Content-Type: text/plain; charset=UTF-8\n"
42 "Content-Transfer-Encoding: 8bit\n"
44 #. Denote a lock's state
49 #. Denote a lock's state
65 #~ msgstr "Enregistrer l'as"
70 ${MSGCAT} -o mcat-test13.tmp mcat-test13.in1 mcat-test13.in2 || exit 1
71 LC_ALL=C tr -d '\r' < mcat-test13.tmp > mcat-test13.out || exit 1
73 cat <<\EOF > mcat-test13.ok
76 "Content-Type: text/plain; charset=UTF-8\n"
77 "Content-Transfer-Encoding: 8bit\n"
89 #. Denote a lock's state
94 "#-#-#-#-# mcat-test13.in1 #-#-#-#-#\n"
96 "#-#-#-#-# mcat-test13.in2 #-#-#-#-#\n"
99 #. Denote a lock's state
104 "#-#-#-#-# mcat-test13.in1 #-#-#-#-#\n"
106 "#-#-#-#-# mcat-test13.in2 #-#-#-#-#\n"
117 msgstr "photocopieur"
122 #~ msgstr "Enregistrer sous"
125 #~ msgstr "Enregistrer l'as"
129 ${DIFF} mcat-test13.ok mcat-test13.out