File: msgcat-12

package info (click to toggle)
gettext 0.18.1.1-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 70,240 kB
  • ctags: 41,179
  • sloc: ansic: 333,297; sh: 51,526; makefile: 8,312; perl: 4,181; lisp: 3,357; yacc: 665; java: 613; cs: 578; sed: 369; objc: 337; cpp: 325; awk: 80; tcl: 63; pascal: 11; php: 8
file content (55 lines) | stat: -rwxr-xr-x 1,010 bytes parent folder | download | duplicates (5)
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
#! /bin/sh

# Verify that msgcat complains when it would need to change msgids.

tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15

tmpfiles="$tmpfiles mcat-test12.in1 mcat-test12.in2"
cat <<\EOF > mcat-test12.in1
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#. Denote a lock's state
msgid "Open"
msgstr "Ouverte"

#. Denote a lock's state
msgid "Closed"
msgstr "Fermée"
EOF

cat <<\EOF > mcat-test12.in2
msgid ""
msgstr ""
"Content-Type: text/plain; charset=ISO-8859-1\n"
"Content-Transfer-Encoding: 8bit\n"

#. Denote a lock's state
msgid "Open"
msgstr "Ouvert"

#. Denote a lock's state
msgid "Closed"
msgstr "Ferm"

#. A product
msgid "Audi car"
msgstr "voiture Audi"

#. A product
msgid "Oc copier"
msgstr "photocopieur Oc"
EOF

tmpfiles="$tmpfiles mcat-test12.out"
rm -f mcat-test12.out
: ${MSGCAT=msgcat}
${MSGCAT} -o mcat-test12.out mcat-test12.in1 mcat-test12.in2 2>/dev/null
test $? = 1 || { rm -fr $tmpfiles; exit 1; }

rm -fr $tmpfiles

exit 0