3 # Test msgcat on PO files with contexts.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles="$tmpfiles mcat-test13.in1 mcat-test13.in2"
9 cat <<\EOF > mcat-test13.in1
12 "Content-Type: text/plain; charset=UTF-8\n"
13 "Content-Transfer-Encoding: 8bit\n"
25 #. Denote a lock's state
30 #. Denote a lock's state
38 #~ msgstr "Enregistrer sous"
41 cat <<\EOF > mcat-test13.in2
44 "Content-Type: text/plain; charset=UTF-8\n"
45 "Content-Transfer-Encoding: 8bit\n"
47 #. Denote a lock's state
52 #. Denote a lock's state
68 #~ msgstr "Enregistrer l'as"
71 tmpfiles="$tmpfiles mcat-test13.tmp mcat-test13.out"
74 ${MSGCAT} -o mcat-test13.tmp mcat-test13.in1 mcat-test13.in2
75 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
76 LC_ALL=C tr -d '\r' < mcat-test13.tmp > mcat-test13.out
77 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
79 tmpfiles="$tmpfiles mcat-test13.ok"
80 cat <<\EOF > mcat-test13.ok
83 "Content-Type: text/plain; charset=UTF-8\n"
84 "Content-Transfer-Encoding: 8bit\n"
96 #. Denote a lock's state
101 "#-#-#-#-# mcat-test13.in1 #-#-#-#-#\n"
103 "#-#-#-#-# mcat-test13.in2 #-#-#-#-#\n"
106 #. Denote a lock's state
111 "#-#-#-#-# mcat-test13.in1 #-#-#-#-#\n"
113 "#-#-#-#-# mcat-test13.in2 #-#-#-#-#\n"
124 msgstr "photocopieur"
129 #~ msgstr "Enregistrer sous"
132 #~ msgstr "Enregistrer l'as"
136 ${DIFF} mcat-test13.ok mcat-test13.out