mirror of
https://https.git.savannah.gnu.org/git/gettext.git
synced 2026-01-26 15:39:11 +00:00
Test the libgettextpo library and its functions.
This commit is contained in:
parent
97ff63cecd
commit
a3a9b90da5
@ -1,3 +1,15 @@
|
||||
2010-06-06 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
Test the libgettextpo library and its functions.
|
||||
* gettextpo-1: New file.
|
||||
* gettextpo-1-prg.c: New file.
|
||||
* gettextpo-1.de.po: New file.
|
||||
* Makefile.am (TESTS): Add gettextpo-1.
|
||||
(EXTRA_DIST): Add gettextpo-1.de.po.
|
||||
(noinst_PROGRAMS): Add gettextpo-1-prg.
|
||||
(gettextpo_1_prg_SOURCES, gettextpo_1_prg_CPPFLAGS,
|
||||
gettextpo_1_prg_LDADD): New variables.
|
||||
|
||||
2010-06-04 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
* gettext-0.18.1 released.
|
||||
|
||||
@ -123,6 +123,7 @@ TESTS = gettext-1 gettext-2 gettext-3 gettext-4 gettext-5 gettext-6 gettext-7 \
|
||||
format-tcl-1 format-tcl-2 \
|
||||
format-ycp-1 format-ycp-2 \
|
||||
plural-1 plural-2 \
|
||||
gettextpo-1 \
|
||||
lang-c lang-c++ lang-objc lang-sh lang-bash lang-python-1 \
|
||||
lang-python-2 lang-clisp lang-elisp lang-librep lang-guile \
|
||||
lang-smalltalk lang-java lang-csharp lang-gawk lang-pascal \
|
||||
@ -137,7 +138,8 @@ EXTRA_DIST += $(TESTS) \
|
||||
qttest2_de.po qttest2_de.qm qttest2_de.ts \
|
||||
ChangeLog.0 \
|
||||
gettext-3-1.po gettext-3-2.po gettext-4.po gettext-5.po \
|
||||
gettext-6-1.po gettext-6-2.po gettext-7.po
|
||||
gettext-6-1.po gettext-6-2.po gettext-7.po \
|
||||
gettextpo-1.de.po
|
||||
|
||||
XGETTEXT = ../src/xgettext
|
||||
|
||||
@ -206,7 +208,7 @@ DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
|
||||
LDADD = $(LDADD_@USE_INCLUDED_LIBINTL@) @INTL_MACOSX_LIBS@
|
||||
LDADD_yes = ../intl/libintl.la @LTLIBTHREAD@
|
||||
LDADD_no = ../intl/libgnuintl.la @LTLIBTHREAD@ @LTLIBINTL@
|
||||
noinst_PROGRAMS = tstgettext tstngettext testlocale gettext-3-prg gettext-4-prg gettext-5-prg gettext-6-prg gettext-7-prg gettext-8-prg cake fc3 fc4 fc5
|
||||
noinst_PROGRAMS = tstgettext tstngettext testlocale gettext-3-prg gettext-4-prg gettext-5-prg gettext-6-prg gettext-7-prg gettext-8-prg cake fc3 fc4 fc5 gettextpo-1-prg
|
||||
tstgettext_SOURCES = tstgettext.c setlocale.c
|
||||
tstgettext_CFLAGS = -DINSTALLDIR=\".\"
|
||||
tstgettext_LDADD = ../gnulib-lib/libgettextlib.la $(LDADD)
|
||||
@ -240,6 +242,11 @@ fc4_SOURCES = format-c-4-prg.c setlocale.c
|
||||
fc4_LDADD = ../gnulib-lib/libgettextlib.la $(LDADD)
|
||||
fc5_SOURCES = format-c-5-prg.c
|
||||
fc5_LDADD = ../gnulib-lib/libgettextlib.la $(LDADD)
|
||||
gettextpo_1_prg_SOURCES = gettextpo-1-prg.c
|
||||
gettextpo_1_prg_CPPFLAGS = -I../libgettextpo -I$(top_srcdir)/libgettextpo $(AM_CPPFLAGS)
|
||||
# Don't add more libraries here. This test must check whether libgettextpo is
|
||||
# self contained.
|
||||
gettextpo_1_prg_LDADD = ../libgettextpo/libgettextpo.la $(LDADD)
|
||||
|
||||
# Clean up after Solaris cc.
|
||||
clean-local:
|
||||
|
||||
16
gettext-tools/tests/gettextpo-1
Executable file
16
gettext-tools/tests/gettextpo-1
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Test the libgettextpo library.
|
||||
tmpfiles="gtpo-1-copied.po gtpo-1-created.po"
|
||||
./gettextpo-1-prg${EXEEXT} ${srcdir}/gettextpo-1.de.po > /dev/null
|
||||
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
|
||||
|
||||
: ${DIFF=diff}
|
||||
${DIFF} ${srcdir}/gettextpo-1.de.po gtpo-1-copied.po
|
||||
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
|
||||
${DIFF} ${srcdir}/gettextpo-1.de.po gtpo-1-created.po
|
||||
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
|
||||
|
||||
rm -f $tmpfiles
|
||||
|
||||
exit 0
|
||||
1027
gettext-tools/tests/gettextpo-1-prg.c
Normal file
1027
gettext-tools/tests/gettextpo-1-prg.c
Normal file
File diff suppressed because it is too large
Load Diff
43
gettext-tools/tests/gettextpo-1.de.po
Normal file
43
gettext-tools/tests/gettextpo-1.de.po
Normal file
@ -0,0 +1,43 @@
|
||||
# Test case for the libgettextpo library.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: libgettextpo 0.18.1\n"
|
||||
"Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
|
||||
"POT-Creation-Date: 2010-06-04 01:57+0200\n"
|
||||
"PO-Revision-Date: 2010-06-05 14:39+0200\n"
|
||||
"Last-Translator: Bruno Haible <bruno@clisp.org>\n"
|
||||
"Language-Team: German <translation-team-de@lists.sourceforge.net>\n"
|
||||
"Language: de\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: gnulib-lib/w32spawn.h:81
|
||||
#, fuzzy, c-format
|
||||
msgid "cannot restore fd %d: dup2 failed"
|
||||
msgstr "Ausgabedatei »%s« kann nicht erstellt werden"
|
||||
|
||||
#: gnulib-lib/wait-process.c:223 gnulib-lib/wait-process.c:255
|
||||
#: gnulib-lib/wait-process.c:317
|
||||
#, c-format
|
||||
msgid "%s subprocess"
|
||||
msgstr "Subprozeß %s"
|
||||
|
||||
# Adjektiv, kein ganzer Satz!
|
||||
#. Denote a lock's state
|
||||
msgctxt "Lock state"
|
||||
msgid "Open"
|
||||
msgstr "Geöffnet"
|
||||
|
||||
# Französische Weine sind die besten der Welt.
|
||||
#, java-format
|
||||
msgid "a bottle of wine"
|
||||
msgid_plural "{0,number} bottles of wine"
|
||||
msgstr[0] "eine Flasche Wein"
|
||||
msgstr[1] "{0,number} Weinflaschen"
|
||||
|
||||
#. Denote a lock's state
|
||||
#~ msgctxt "Lock state"
|
||||
#~ msgid "Closed"
|
||||
#~ msgstr "Geschlossen"
|
||||
Loading…
x
Reference in New Issue
Block a user