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