summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/msgcat-11
blob: 0f6a05a2ccd7a55d1f98a121a7fb16f74939f997 (plain)
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
#! /bin/sh
. "${srcdir=.}/init.sh"; path_prepend_ . ../src

# Verify that msgcat leaves #: lines in place even if they have a bizarre
# syntax.

cat <<\EOF > mcat-test11.in
#: basctl/source\basicide\basidesh.src#RID_STR_NOMODULE.text
msgid "Simple"
msgstr "Einfach"

#: basctl/source\basicide\basidesh.src:RID_STR_NOMODULE.text
msgid "Different"
msgstr "Anders"

#: file:4
msgid "where"
msgstr "wo"

#: line:4
msgid "what"
msgstr "was"

#: number:4
msgid "who"
msgstr "wer"

#: foobar:4a
msgid "whenever"
msgstr "immer"
EOF

: ${MSGCAT=msgcat}
${MSGCAT} -o mcat-test11.tmp mcat-test11.in || Exit 1
LC_ALL=C tr -d '\r' < mcat-test11.tmp > mcat-test11.out || Exit 1

: ${DIFF=diff}
${DIFF} mcat-test11.in mcat-test11.out
result=$?

exit $result