3 # Test extractor of NeXTstep/GNUstep .strings files.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles xg-st-1.strings"
9 cat <<\EOF
> xg-st-1.
strings
11 German.lproj
/Localizable.
strings
12 updated by make_strings
2003-10-12 15:31:50 +0200
13 add comments above this one
17 /*** Strings from Hello.m
***/
18 /* File
: Hello.m
:57 */
19 /* File
: Hello.m
:56 */
20 "Hello, world!" = "Hallo Welt!";
21 /* File
: Hello.m
:67 */
22 "This program is running as process number %d."
23 = "Dieses Programm läuft mit der Prozess-Nummer %d.";
26 tmpfiles
="$tmpfiles xg-st-1.tmp xg-st-1.po"
27 : ${XGETTEXT=xgettext}
28 ${XGETTEXT} xg-st-1.
strings -o xg-st-1.tmp
29 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
30 grep -v 'POT-Creation-Date' < xg-st-1.tmp
> xg-st-1.po
32 tmpfiles
="$tmpfiles xg-st-1.ok"
33 cat <<\EOF
> xg-st-1.ok
34 # SOME DESCRIPTIVE TITLE.
35 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
36 # This file is distributed under the same license as the PACKAGE package.
37 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
42 "Project-Id-Version: PACKAGE VERSION\n"
43 "Report-Msgid-Bugs-To: \n"
44 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
45 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
46 "Language-Team: LANGUAGE <LL@li.org>\n"
48 "Content-Type: text/plain; charset=UTF-8\n"
49 "Content-Transfer-Encoding: 8bit\n"
52 # German.lproj/Localizable.strings
53 # updated by make_strings 2003-10-12 15:31:50 +0200
54 # add comments above this one
56 # Strings from Hello.m
57 #: Hello.m:57 Hello.m:56
62 msgid
"This program is running as process number %d."
63 msgstr
"Dieses Programm läuft mit der Prozess-Nummer %d."
67 ${DIFF} xg-st-1.ok xg-st-1.po