~ubuntu-branches/ubuntu/breezy/gettext/breezy

« back to all changes in this revision

Viewing changes to gettext-tools/tests/msgmerge-8

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2004-03-14 17:40:02 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040314174002-p1ad5ldve1hqzhye
Tags: 0.14.1-2
* Added libexpat1-dev to Build-Depends, for glade support.
* Added libc0.1-dev to Build-Depends, for GNU/kFreeBSD.
* Removed special-casing of knetbsd-gnu in debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# Test multi-domain handling.
 
4
 
 
5
tmpfiles=""
 
6
trap 'rm -fr $tmpfiles' 1 2 3 15
 
7
 
 
8
tmpfiles="$tmpfiles mm-test8.po"
 
9
cat <<\EOF > mm-test8.po
 
10
domain "foo-de"
 
11
msgid ""
 
12
msgstr "Content-Type: text/plain; charset=ISO-8859-1\n"
 
13
 
 
14
# Das ist ein Kommentar.
 
15
msgid "hello"
 
16
msgstr "Hallo"
 
17
 
 
18
# Noch einer.
 
19
msgid "bye"
 
20
msgstr "Tsch��"
 
21
 
 
22
domain "foo-fr"
 
23
msgid ""
 
24
msgstr "Content-Type: text/plain; charset=ISO-8859-1\n"
 
25
 
 
26
# Ceci est un commentaire.
 
27
msgid "hello"
 
28
msgstr "Salut"
 
29
 
 
30
# Encore un.
 
31
msgid "bye"
 
32
msgstr "A bient�t"
 
33
EOF
 
34
 
 
35
tmpfiles="$tmpfiles mm-test8.pot"
 
36
cat <<EOF > mm-test8.pot
 
37
msgid "Hello"
 
38
msgstr ""
 
39
EOF
 
40
 
 
41
tmpfiles="$tmpfiles mm-test8.out"
 
42
: ${MSGMERGE=msgmerge}
 
43
${MSGMERGE} --multi-domain -q mm-test8.po mm-test8.pot -o mm-test8.out
 
44
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
45
 
 
46
tmpfiles="$tmpfiles mm-test8.ok"
 
47
cat <<\EOF > mm-test8.ok
 
48
domain "foo-de"
 
49
 
 
50
msgid ""
 
51
msgstr "Content-Type: text/plain; charset=ISO-8859-1\n"
 
52
 
 
53
# Das ist ein Kommentar.
 
54
#, fuzzy
 
55
msgid "Hello"
 
56
msgstr "Hallo"
 
57
 
 
58
# Noch einer.
 
59
#~ msgid "bye"
 
60
#~ msgstr "Tsch��"
 
61
 
 
62
domain "foo-fr"
 
63
 
 
64
msgid ""
 
65
msgstr "Content-Type: text/plain; charset=ISO-8859-1\n"
 
66
 
 
67
# Ceci est un commentaire.
 
68
#, fuzzy
 
69
msgid "Hello"
 
70
msgstr "Salut"
 
71
 
 
72
# Encore un.
 
73
#~ msgid "bye"
 
74
#~ msgstr "A bient�t"
 
75
EOF
 
76
 
 
77
: ${DIFF=diff}
 
78
${DIFF} mm-test8.ok mm-test8.out
 
79
result=$?
 
80
 
 
81
rm -fr $tmpfiles
 
82
 
 
83
exit $result