Added German translation to internat sample.
Fixed recursion in wxLogGui::Flush() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
d39356d524
commit
6a2a235ba9
2
configure
vendored
2
configure
vendored
@ -11924,6 +11924,7 @@ trap 'rm -fr `echo "
|
||||
samples/drawing/Makefile
|
||||
samples/dynamic/Makefile
|
||||
samples/image/Makefile
|
||||
samples/internat/Makefile
|
||||
samples/layout/Makefile
|
||||
samples/listctrl/Makefile
|
||||
samples/mdi/Makefile
|
||||
@ -12125,6 +12126,7 @@ CONFIG_FILES=\${CONFIG_FILES-"wx-config
|
||||
samples/drawing/Makefile
|
||||
samples/dynamic/Makefile
|
||||
samples/image/Makefile
|
||||
samples/internat/Makefile
|
||||
samples/layout/Makefile
|
||||
samples/listctrl/Makefile
|
||||
samples/mdi/Makefile
|
||||
|
@ -2783,6 +2783,7 @@ AC_OUTPUT([
|
||||
samples/drawing/Makefile
|
||||
samples/dynamic/Makefile
|
||||
samples/image/Makefile
|
||||
samples/internat/Makefile
|
||||
samples/layout/Makefile
|
||||
samples/listctrl/Makefile
|
||||
samples/mdi/Makefile
|
||||
|
@ -1,2 +1 @@
|
||||
Makefile.in
|
||||
|
||||
|
@ -1,9 +0,0 @@
|
||||
AUTOMAKE_OPTIONS = 1.3 no-dependencies
|
||||
|
||||
SUFFIXES = .cpp
|
||||
|
||||
DEFS = @DEFS@ $(TOOLKIT_DEF) $(WXDEBUG_DEFINE)
|
||||
|
||||
noinst_PROGRAMS = internat
|
||||
|
||||
internat_SOURCES = internat.cpp
|
28
samples/internat/Makefile.in
Normal file
28
samples/internat/Makefile.in
Normal file
@ -0,0 +1,28 @@
|
||||
#
|
||||
# File: Makefile
|
||||
# Author: Julian Smart
|
||||
# Created: 1998
|
||||
# Updated:
|
||||
# Copyright: (c) 1998 Julian Smart
|
||||
#
|
||||
# "%W% %G%"
|
||||
#
|
||||
# Makefile for internat example (UNIX).
|
||||
|
||||
top_srcdir = @top_srcdir@
|
||||
top_builddir = ../..
|
||||
program_dir = samples/internat
|
||||
|
||||
DATAFILES=fr/internat.po fr/internat.mo \
|
||||
de/internat.po de/internat.mo \
|
||||
fr/wxstd.po fr/wxstd.mo \
|
||||
de/wxstd.po de/wxstd.mo
|
||||
|
||||
DATADIRS=fr de
|
||||
|
||||
PROGRAM=internat
|
||||
|
||||
OBJECTS=$(PROGRAM).o
|
||||
|
||||
include ../../src/makeprog.env
|
||||
|
BIN
samples/internat/de/internat.mo
Normal file
BIN
samples/internat/de/internat.mo
Normal file
Binary file not shown.
79
samples/internat/de/internat.po
Normal file
79
samples/internat/de/internat.po
Normal file
@ -0,0 +1,79 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Free Software Foundation, Inc.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"POT-Creation-Date: 1999-08-28 16:46+0000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: ENCODING\n"
|
||||
|
||||
#: ../internat.cpp:120
|
||||
msgid "International wxWindows App"
|
||||
msgstr "Internationales wxWindows Programm"
|
||||
|
||||
#: ../internat.cpp:128
|
||||
msgid "&About..."
|
||||
msgstr "Ü&ber"
|
||||
|
||||
#: ../internat.cpp:130
|
||||
msgid "E&xit"
|
||||
msgstr "&Schließen"
|
||||
|
||||
#: ../internat.cpp:133
|
||||
msgid "&Open bogus file"
|
||||
msgstr "Ö&ffne Unsinn-Datei"
|
||||
|
||||
#: ../internat.cpp:134
|
||||
msgid "&Play a game"
|
||||
msgstr "Spiele ein S&piel"
|
||||
|
||||
#: ../internat.cpp:137
|
||||
msgid "&File"
|
||||
msgstr "&Datei"
|
||||
|
||||
#: ../internat.cpp:138
|
||||
msgid "&Test"
|
||||
msgstr "&Test"
|
||||
|
||||
#: ../internat.cpp:161
|
||||
msgid ""
|
||||
"I18n sample\n"
|
||||
"© 1998, 1999 Vadim Zeitlin and Julian Smart"
|
||||
msgstr "I18n Beispiel\n"
|
||||
"© 1998, 1999 Vadim Zeitlin and Julian Smart"
|
||||
|
||||
#: ../internat.cpp:163
|
||||
msgid "About Internat"
|
||||
msgstr "Ü&ber Internat"
|
||||
|
||||
#: ../internat.cpp:168
|
||||
msgid "Enter your number:"
|
||||
msgstr "Geben Sie eine Nummer ein:"
|
||||
|
||||
#: ../internat.cpp:169
|
||||
msgid "Try to guess my number!"
|
||||
msgstr "Versuchen Sie, die Nummer zu raten"
|
||||
|
||||
#: ../internat.cpp:177
|
||||
msgid "You've probably entered an invalid number."
|
||||
msgstr "Sie haben wahrscheinlich eine ungültige Nummer eingegeben"
|
||||
|
||||
#: ../internat.cpp:185
|
||||
msgid "Congratulations! you've won. Here is the magic phrase:"
|
||||
msgstr "Herzlichen Glückwunsch, Sie haben gewonnen. Hier ist der magische Satz:"
|
||||
|
||||
#: ../internat.cpp:186
|
||||
#, c-format
|
||||
msgid "cannot create fifo `%s'"
|
||||
msgstr "Der Fifo `%s' kan nicht erzeugt werden"
|
||||
|
||||
#: ../internat.cpp:189
|
||||
msgid "Result"
|
||||
msgstr "Ergebnis"
|
BIN
samples/internat/de/wxstd.mo
Normal file
BIN
samples/internat/de/wxstd.mo
Normal file
Binary file not shown.
136
samples/internat/de/wxstd.po
Normal file
136
samples/internat/de/wxstd.po
Normal file
@ -0,0 +1,136 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Free Software Foundation, Inc.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"POT-Creation-Date: 1997-12-19 17:46+0100\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: ENCODING\n"
|
||||
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Free Software Foundation, Inc.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#: file.cpp:182 hello.cpp:38
|
||||
#, fuzzy, c-format
|
||||
msgid "can't create file '%s'"
|
||||
msgstr "Kann die Datei '%s' nicht erzeugen."
|
||||
|
||||
#: file.cpp:213
|
||||
#, c-format
|
||||
msgid "can't open file '%s'"
|
||||
msgstr "Kann die Datei '%s' nicht öffnen."
|
||||
|
||||
#: file.cpp:227
|
||||
#, c-format
|
||||
msgid "can't close file descriptor %d"
|
||||
msgstr "Kann den Datei-Deskriptor %d nicht schließen."
|
||||
|
||||
#: file.cpp:244
|
||||
#, c-format
|
||||
msgid "can't read from file descriptor %d"
|
||||
msgstr "Kann nicht vom Datei-Deskriptor %d lesen."
|
||||
|
||||
#: file.cpp:258
|
||||
#, c-format
|
||||
msgid "can't write to file descriptor %d"
|
||||
msgstr "Kann nicht in den Datei-Deskriptor %d schreiben."
|
||||
|
||||
#: file.cpp:271
|
||||
#, c-format
|
||||
msgid "can't flush file descriptor %d"
|
||||
msgstr "Kann keinen flush-Befehl für den Datei-Deskriptor %d ausführen."
|
||||
|
||||
#: file.cpp:308
|
||||
#, c-format
|
||||
msgid "can't seek on file descriptor %d"
|
||||
msgstr "Kann den Datei-Deskriptor %d nicht positionieren."
|
||||
|
||||
#: file.cpp:322
|
||||
#, c-format
|
||||
msgid "can't get seek position on file descriptor %d"
|
||||
msgstr "Kann die Position des Datei Deskriptors %d nicht herausfinden."
|
||||
|
||||
#: file.cpp:355
|
||||
#, c-format
|
||||
msgid "can't find length of file on file descriptor %d"
|
||||
msgstr ""
|
||||
|
||||
#: intl.cpp:139
|
||||
#, c-format
|
||||
msgid "catalog file for domain '%s' not found."
|
||||
msgstr ""
|
||||
|
||||
#: intl.cpp:177
|
||||
#, c-format
|
||||
msgid "'%s' is not a valid message catalog."
|
||||
msgstr ""
|
||||
|
||||
#: intl.cpp:330 intl.cpp:334
|
||||
#, c-format
|
||||
msgid "locale '%s' can not be set."
|
||||
msgstr "Die Lokale '%s' kann nicht benutzt werden."
|
||||
|
||||
#: intl.cpp:431 intl.cpp:435
|
||||
#, c-format
|
||||
msgid "string '%s' not found in domain '%s' for locale '%s'."
|
||||
msgstr "Die Zeichenkette '%s' der Domäne '%s' für die Lokale '%s' kann nicht gefunden werden."
|
||||
|
||||
#: intl.cpp:434 intl.cpp:438
|
||||
#, c-format
|
||||
msgid "string '%s' not found in locale '%s'."
|
||||
msgstr ""
|
||||
|
||||
#: log.cpp:104
|
||||
#, c-format
|
||||
msgid " (error %ld: %s)"
|
||||
msgstr " (Fehler %ld: %s)"
|
||||
|
||||
#: log.cpp:165
|
||||
msgid "Debug: "
|
||||
msgstr "Debug: "
|
||||
|
||||
#: log.cpp:171
|
||||
msgid "Fatal error: "
|
||||
msgstr "Fataler Fehler: "
|
||||
|
||||
#: log.cpp:172
|
||||
msgid "Program aborted.\n"
|
||||
msgstr "Programm beendet.\n"
|
||||
|
||||
#: log.cpp:177
|
||||
msgid "Error: "
|
||||
msgstr "Fehler: "
|
||||
|
||||
#: log.cpp:181
|
||||
msgid "Warning: "
|
||||
msgstr "Warnung: "
|
||||
|
||||
#: log.cpp:268
|
||||
#, c-format
|
||||
msgid "Assert failed in file %s at line %d"
|
||||
msgstr ""
|
||||
|
||||
#: file.cpp:303
|
||||
msgid "unknown seek origin"
|
||||
msgstr "Unbekannter Positionsanfang."
|
||||
|
||||
msgid "looking for catalog '%s' in path '%s'."
|
||||
msgstr ""
|
||||
|
||||
#: intl.cpp:378
|
||||
msgid "no message catalog list"
|
||||
msgstr "Keine Nachrichten Katalog."
|
||||
|
||||
msgid "OK"
|
||||
msgstr "OK"
|
||||
|
||||
msgid "Cancel"
|
||||
msgstr "Abbruch"
|
@ -61,7 +61,7 @@ public:
|
||||
// ID for the menu commands
|
||||
enum
|
||||
{
|
||||
MINIMAL_QUIT,
|
||||
MINIMAL_QUIT = 1,
|
||||
MINIMAL_TEXT,
|
||||
MINIMAL_ABOUT,
|
||||
MINIMAL_TEST,
|
||||
@ -114,11 +114,11 @@ bool MyApp::OnInit()
|
||||
/* this catalog is installed in standard location on Linux systems,
|
||||
it might not be installed on yours - just ignore the errrors
|
||||
or comment out this line then */
|
||||
m_locale.AddCatalog("fileutils"); // 3) and another just for testing
|
||||
// m_locale.AddCatalog("fileutils"); // 3) and another just for testing
|
||||
|
||||
// Create the main frame window
|
||||
MyFrame *frame = new MyFrame((wxFrame *) NULL, _("International wxWindows App"),
|
||||
50, 50, 250, 40);
|
||||
50, 50, 350, 60);
|
||||
|
||||
// Give it an icon
|
||||
frame->SetIcon(wxICON(mondrian));
|
||||
|
@ -1,17 +0,0 @@
|
||||
#
|
||||
# File: makefile.unx
|
||||
# Author: Julian Smart
|
||||
# Created: 1998
|
||||
# Updated:
|
||||
# Copyright: (c) 1998 Julian Smart
|
||||
#
|
||||
# "%W% %G%"
|
||||
#
|
||||
# Makefile for internat example (UNIX).
|
||||
|
||||
PROGRAM=internat
|
||||
|
||||
OBJECTS=$(PROGRAM).o
|
||||
|
||||
include ../../src/makeprog.env
|
||||
|
@ -44,7 +44,7 @@ A. First of all, you will need the GNU gettext tools (see the next question).
|
||||
|
||||
# generate the .po file for the program itself
|
||||
# see `xgettext --help' for options, "-C" is important!
|
||||
xgettext -C -o internat.po ../internat.cpp
|
||||
xgettext -C -n -k_ -o internat.po ../internat.cpp
|
||||
|
||||
# .po file for wxWindows might be generated in the same way, but for now just
|
||||
# take this one...
|
||||
@ -60,7 +60,7 @@ A. First of all, you will need the GNU gettext tools (see the next question).
|
||||
|
||||
# run the sample to test it
|
||||
cd ..
|
||||
./$OSTYPE/internat <language> <langid>
|
||||
./internat <language> <langid>
|
||||
|
||||
Q. How to get the gettext tools?
|
||||
A. For Unix, you should be able to get the source distribution of any GNU mirror
|
||||
|
@ -507,6 +507,9 @@ void wxLogGui::Flush()
|
||||
|
||||
// no undisplayed messages whatsoever
|
||||
Clear();
|
||||
|
||||
// do it here again
|
||||
m_bHasMessages = FALSE;
|
||||
}
|
||||
|
||||
// the default behaviour is to discard all informational messages if there
|
||||
|
Loading…
Reference in New Issue
Block a user