1#! /bin/sh
2. "${srcdir=.}/init.sh"; path_prepend_ . ../src
3
4# Test JavaProperties extractor with escaped ASCII input.
5
6cat <<\EOF > xg-pr-2.properties
7dialog.open = \u00D6ffnen
8dialog.close = Datei wurde ver\u00e4ndert. Trotzdem schlie\u00dfen?
9EOF
10
11: ${XGETTEXT=xgettext}
12${XGETTEXT} -o xg-pr-2.tmp xg-pr-2.properties || Exit 1
13func_filter_POT_Creation_Date xg-pr-2.tmp xg-pr-2.po
14
15cat <<\EOF > xg-pr-2.ok
16# SOME DESCRIPTIVE TITLE.
17# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
18# This file is distributed under the same license as the PACKAGE package.
19# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
20#
21#, fuzzy
22msgid ""
23msgstr ""
24"Project-Id-Version: PACKAGE VERSION\n"
25"Report-Msgid-Bugs-To: \n"
26"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
27"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
28"Language-Team: LANGUAGE <LL@li.org>\n"
29"Language: \n"
30"MIME-Version: 1.0\n"
31"Content-Type: text/plain; charset=UTF-8\n"
32"Content-Transfer-Encoding: 8bit\n"
33
34msgid "dialog.open"
35msgstr "Öffnen"
36
37msgid "dialog.close"
38msgstr "Datei wurde verändert. Trotzdem schließen?"
39EOF
40
41: ${DIFF=diff}
42${DIFF} xg-pr-2.ok xg-pr-2.po
43result=$?
44
45exit $result
46