Skip to content

Commit 4a081bd

Browse files
authored
Translate appendix.po to German
Translated various sections of the appendix from English to German, including terms like 'Appendix', 'Interactive Mode', and error handling descriptions. Updated interactive shell details and customization module explanations.
1 parent 92540d1 commit 4a081bd

1 file changed

Lines changed: 142 additions & 48 deletions

File tree

‎tutorial/appendix.po‎

Lines changed: 142 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -22,89 +22,136 @@ msgstr ""
2222
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
2323

2424
msgid "Appendix"
25-
msgstr ""
25+
msgstr "Anhang"
2626

2727
msgid "Interactive Mode"
28-
msgstr ""
28+
msgstr "Interaktiver Modus"
2929

3030
msgid ""
3131
"There are two variants of the interactive :term:`REPL`. The classic basic "
3232
"interpreter is supported on all platforms with minimal line control "
3333
"capabilities."
3434
msgstr ""
35+
"Es gibt zwei Varianten des interaktiven :term:`REPL`. Der klassische Basic-"
36+
"Interpreter wird auf allen Plattformen mit minimalen "
37+
"Zeilensteuerungsfunktionen unterstützt."
3538

3639
msgid ""
37-
"On Windows, or Unix-like systems with :mod:`curses` support, a new "
38-
"interactive shell is used by default since Python 3.13. This one supports "
39-
"color, multiline editing, history browsing, and paste mode. To disable "
40-
"color, see :ref:`using-on-controlling-color` for details. Function keys "
41-
"provide some additional functionality. :kbd:`F1` enters the interactive help "
42-
"browser :mod:`pydoc`. :kbd:`F2` allows for browsing command-line history "
43-
"with neither output nor the :term:`>>>` and :term:`...` prompts. :kbd:`F3` "
44-
"enters \"paste mode\", which makes pasting larger blocks of code easier. "
45-
"Press :kbd:`F3` to return to the regular prompt."
40+
"Since Python 3.13, a new interactive shell is used by default. This one "
41+
"supports color, multiline editing, history browsing, and paste mode. To "
42+
"disable color, see :ref:`using-on-controlling-color` for details. Function "
43+
"keys provide some additional functionality. :kbd:`F1` enters the interactive"
44+
" help browser :mod:`pydoc`. :kbd:`F2` allows for browsing command-line "
45+
"history with neither output nor the :term:`>>>` and :term:`...` prompts. "
46+
":kbd:`F3` enters \"paste mode\", which makes pasting larger blocks of code "
47+
"easier. Press :kbd:`F3` to return to the regular prompt."
4648
msgstr ""
49+
"Seit Python 3.13 wird standardmäßig eine neue interaktive Shell verwendet. "
50+
"Diese unterstützt Farbdarstellung, mehrzeilige Bearbeitung, das Durchsuchen "
51+
"des Verlaufs und den Einfügemodus. Um die Farbdarstellung zu deaktivieren, "
52+
"finden Sie weitere Informationen unter :ref:`using-on-controlling-color`. "
53+
"Funktionstasten bieten einige zusätzliche Funktionen. Mit :kbd:`F1` "
54+
"rufen Sie den interaktiven Hilfe-Browser auf: :mod:`pydoc`. Mit :kbd:`F2` "
55+
" können Sie den Befehlsverlauf durchsuchen, ohne dass eine Ausgabe oder die"
56+
" Eingabeaufforderungen :term:`>>>` und :term:`...` angezeigt werden. Mit "
57+
":kbd:`F3` rufen Sie den \"Einfügemodus\“ auf, der das Einfügen größerer "
58+
"Codeblöcke erleichtert. Drücken Sie :kbd:`F3` , um zur normalen "
59+
"Eingabeaufforderung zurückzukehren."
4760

4861
msgid ""
4962
"When using the new interactive shell, exit the shell by typing :kbd:`exit` "
50-
"or :kbd:`quit`. Adding call parentheses after those commands is not required."
63+
"or :kbd:`quit`. Adding call parentheses after those commands is not "
64+
"required."
5165
msgstr ""
66+
"Wenn Sie die neue interaktive Shell verwenden, beenden Sie die Shell, indem "
67+
"Sie :kbd:`exit` oder :kbd:`quit` eingeben. Das Hinzufügen von "
68+
"Aufrufklammern nach diesen Befehlen ist nicht erforderlich."
5269

5370
msgid ""
54-
"If the new interactive shell is not desired, it can be disabled via the :"
55-
"envvar:`PYTHON_BASIC_REPL` environment variable."
71+
"If the new interactive shell is not desired, it can be disabled via the "
72+
":envvar:`PYTHON_BASIC_REPL` environment variable."
5673
msgstr ""
74+
"Falls die neue interaktive Shell nicht gewünscht ist, kann sie über die "
75+
"Umgebungsvariable :envvar:`PYTHON_BASIC_REPL` deaktiviert werden."
5776

5877
msgid "Error Handling"
59-
msgstr ""
78+
msgstr "Fehlerbehandlung"
6079

6180
msgid ""
6281
"When an error occurs, the interpreter prints an error message and a stack "
6382
"trace. In interactive mode, it then returns to the primary prompt; when "
6483
"input came from a file, it exits with a nonzero exit status after printing "
65-
"the stack trace. (Exceptions handled by an :keyword:`except` clause in a :"
66-
"keyword:`try` statement are not errors in this context.) Some errors are "
84+
"the stack trace. (Exceptions handled by an :keyword:`except` clause in a "
85+
":keyword:`try` statement are not errors in this context.) Some errors are "
6786
"unconditionally fatal and cause an exit with a nonzero exit status; this "
68-
"applies to internal inconsistencies and some cases of running out of "
69-
"memory. All error messages are written to the standard error stream; normal "
70-
"output from executed commands is written to standard output."
87+
"applies to internal inconsistencies and some cases of running out of memory."
88+
" All error messages are written to the standard error stream; normal output"
89+
" from executed commands is written to standard output."
7190
msgstr ""
91+
"Wenn ein Fehler auftritt, gibt der Interpreter eine Fehlermeldung und einen "
92+
"Stack-Trace aus. Im interaktiven Modus kehrt er anschließend zur Hauptprompt"
93+
" zurück; wenn die Eingabe aus einer Datei stammt, wird das Programm nach "
94+
"Ausgabe des Stack-Trace mit einem Exit-Status ungleich Null beendet. "
95+
"(Ausnahmen, die durch eine :keyword:`except` -Klausel in einer "
96+
":keyword:`try` -Anweisung behandelt werden, gelten in diesem Zusammenhang "
97+
"nicht als Fehler.) Einige Fehler sind bedingungslos schwerwiegend und "
98+
"führen zu einem Abbruch mit einem Exit-Status ungleich Null; dies gilt für "
99+
"interne Inkonsistenzen und bestimmte Fälle von Speichermangel. Alle "
100+
"Fehlermeldungen werden in den Standard-Fehlerstrom geschrieben; die normale "
101+
"Ausgabe der ausgeführten Befehle wird in die Standardausgabe geschrieben."
72102

73103
msgid ""
74104
"Typing the interrupt character (usually :kbd:`Control-C` or :kbd:`Delete`) "
75105
"to the primary or secondary prompt cancels the input and returns to the "
76-
"primary prompt. [#]_ Typing an interrupt while a command is executing raises "
77-
"the :exc:`KeyboardInterrupt` exception, which may be handled by a :keyword:"
78-
"`try` statement."
106+
"primary prompt. [#]_ Typing an interrupt while a command is executing raises"
107+
" the :exc:`KeyboardInterrupt` exception, which may be handled by a "
108+
":keyword:`try` statement."
79109
msgstr ""
110+
"Durch Eingabe des Unterbrechungszeichens (in der Regel :kbd:`Control-C` oder"
111+
" :kbd:`Delete`) an der primären oder sekundären Eingabeaufforderung wird die"
112+
" Eingabe abgebrochen und zur primären Eingabeaufforderung zurückgekehrt. "
113+
"[#]_ Wird während der Ausführung eines Befehls ein Unterbrechungszeichen "
114+
"eingegeben, wird die Ausnahme :exc:`KeyboardInterrupt` ausgelöst, die "
115+
"durch eine :keyword:`try` -Anweisung abgefangen werden kann."
80116

81117
msgid "Executable Python Scripts"
82-
msgstr ""
118+
msgstr "Ausführbare Python-Skripte"
83119

84120
msgid ""
85121
"On BSD'ish Unix systems, Python scripts can be made directly executable, "
86122
"like shell scripts, by putting the line ::"
87123
msgstr ""
124+
"Auf BSD-ähnlichen Unix-Systemen können Python-Skripte – ähnlich wie Shell-"
125+
"Skripte – direkt ausführbar gemacht werden, indem man die Zeile ::"
88126

89127
msgid "#!/usr/bin/env python3"
90-
msgstr ""
128+
msgstr "#!/usr/bin/env python3"
91129

92130
msgid ""
93131
"(assuming that the interpreter is on the user's :envvar:`PATH`) at the "
94132
"beginning of the script and giving the file an executable mode. The ``#!`` "
95-
"must be the first two characters of the file. On some platforms, this first "
96-
"line must end with a Unix-style line ending (``'\\n'``), not a Windows "
133+
"must be the first two characters of the file. On some platforms, this first"
134+
" line must end with a Unix-style line ending (``'\\n'``), not a Windows "
97135
"(``'\\r\\n'``) line ending. Note that the hash, or pound, character, "
98136
"``'#'``, is used to start a comment in Python."
99137
msgstr ""
138+
"(vorausgesetzt, der Interpreter befindet sich im Verzeichnis "
139+
":envvar:`PATH` des Benutzers) am Anfang des Skripts einzufügen und der "
140+
"Datei Ausführungsrechte zu erteilen. Die Zeichenfolge ``#!`` muss die "
141+
"ersten beiden Zeichen der Datei bilden. Auf einigen Plattformen muss diese "
142+
"erste Zeile mit einem Zeilenende im Unix-Stil (``'\\n'``) enden, nicht mit "
143+
"einem Windows-Zeilenende (``'\\r\\n'``). Beachten Sie, dass das "
144+
"Rautezeichen ( ``'#'``) in Python zum Einleiten eines Kommentars verwendet "
145+
"wird."
100146

101147
msgid ""
102-
"The script can be given an executable mode, or permission, using the :"
103-
"program:`chmod` command."
104-
msgstr ""
148+
"The script can be given an executable mode, or permission, using the "
149+
":program:`chmod` command."
150+
msgstr ""
151+
"Dem Skript kann mithilfe des Befehls :program:`chmod` ein Ausführungsmodus bzw. eine "entsprechende Berechtigung zugewiesen werden."
105152

106153
msgid "$ chmod +x myscript.py"
107-
msgstr ""
154+
msgstr "$ chmod +x myscript.py"
108155

109156
msgid ""
110157
"On Windows systems, there is no notion of an \"executable mode\". The "
@@ -113,9 +160,14 @@ msgid ""
113160
"extension can also be ``.pyw``, in that case, the console window that "
114161
"normally appears is suppressed."
115162
msgstr ""
163+
"Unter Windows gibt es keinen \"Ausführungsmodus\“. Der Python-Installer ordnet"
164+
" Dateien mit der Endung ``.py`` automatisch der Datei ``python.exe`` "
165+
" zu, sodass ein Doppelklick auf eine Python-Datei diese als Skript ausführt."
166+
" Die Dateiendung kann auch ``.pyw`` lauten; in diesem Fall wird das "
167+
"normalerweise angezeigte Konsolenfenster unterdrückt."
116168

117169
msgid "The Interactive Startup File"
118-
msgstr ""
170+
msgstr "Die interaktive Startdatei"
119171

120172
msgid ""
121173
"When you use Python interactively, it is frequently handy to have some "
@@ -124,24 +176,43 @@ msgid ""
124176
"the name of a file containing your start-up commands. This is similar to "
125177
"the :file:`.profile` feature of the Unix shells."
126178
msgstr ""
179+
"Wenn Sie Python interaktiv nutzen, ist es oft praktisch, wenn beim Start des"
180+
" Interpreters jedes Mal bestimmte Standardbefehle ausgeführt werden. Dazu "
181+
"können Sie eine Umgebungsvariable namens :envvar:`PYTHONSTARTUP` auf den"
182+
" Namen einer Datei setzen, die Ihre Startbefehle enthält. Dies entspricht "
183+
"der Funktion :file:`.profile` der Unix-Shells."
127184

128185
msgid ""
129186
"This file is only read in interactive sessions, not when Python reads "
130187
"commands from a script, and not when :file:`/dev/tty` is given as the "
131188
"explicit source of commands (which otherwise behaves like an interactive "
132189
"session). It is executed in the same namespace where interactive commands "
133-
"are executed, so that objects that it defines or imports can be used without "
134-
"qualification in the interactive session. You can also change the prompts "
190+
"are executed, so that objects that it defines or imports can be used without"
191+
" qualification in the interactive session. You can also change the prompts "
135192
"``sys.ps1`` and ``sys.ps2`` in this file."
136193
msgstr ""
194+
"Diese Datei wird nur in interaktiven Sitzungen eingelesen, nicht jedoch, "
195+
"wenn Python Befehle aus einem Skript ausführt, und auch nicht, wenn "
196+
":file:`/dev/tty` als explizite Befehlsquelle angegeben wird (was sich "
197+
"ansonsten wie eine interaktive Sitzung verhält). Sie wird im selben "
198+
"Namensraum ausgeführt, in dem auch interaktive Befehle ausgeführt werden, "
199+
"sodass Objekte, die darin definiert oder importiert werden, in der "
200+
"interaktiven Sitzung ohne Qualifizierung verwendet werden können. Sie können"
201+
" in dieser Datei auch die Eingabeaufforderungen ``sys.ps1`` und ``sys.ps2`` "
202+
"ändern."
137203

138204
msgid ""
139205
"If you want to read an additional start-up file from the current directory, "
140-
"you can program this in the global start-up file using code like ``if os."
141-
"path.isfile('.pythonrc.py'): exec(open('.pythonrc.py').read())``. If you "
142-
"want to use the startup file in a script, you must do this explicitly in the "
143-
"script::"
206+
"you can program this in the global start-up file using code like ``if "
207+
"os.path.isfile('.pythonrc.py'): exec(open('.pythonrc.py').read())``. If you "
208+
"want to use the startup file in a script, you must do this explicitly in the"
209+
" script::"
144210
msgstr ""
211+
"Wenn Sie eine zusätzliche Startdatei aus dem aktuellen Verzeichnis einlesen "
212+
"möchten, können Sie dies in der globalen Startdatei mit einem Code wie "
213+
"``if os.path.isfile('.pythonrc.py'): exec(open('.pythonrc.py').read())`` "
214+
"programmieren. Wenn Sie die Startdatei in einem Skript verwenden möchten, "
215+
"müssen Sie dies explizit im Skript tun::"
145216

146217
msgid ""
147218
"import os\n"
@@ -151,39 +222,62 @@ msgid ""
151222
" startup_file = fobj.read()\n"
152223
" exec(startup_file)"
153224
msgstr ""
225+
"import os\n"
226+
"filename = os.environ.get('PYTHONSTARTUP')\n"
227+
"if filename and os.path.isfile(filename):\n"
228+
" with open(filename) as fobj:\n"
229+
" startup_file = fobj.read()\n"
230+
" exec(startup_file)"
154231

155232
msgid "The Customization Modules"
156-
msgstr ""
233+
msgstr "Die Anpassungsmodule"
157234

158235
msgid ""
159236
"Python provides two hooks to let you customize it: :index:`sitecustomize` "
160-
"and :index:`usercustomize`. To see how it works, you need first to find the "
161-
"location of your user site-packages directory. Start Python and run this "
237+
"and :index:`usercustomize`. To see how it works, you need first to find the"
238+
" location of your user site-packages directory. Start Python and run this "
162239
"code::"
163240
msgstr ""
241+
"Python bietet zwei Hooks, mit denen Sie das Programm anpassen können: "
242+
":index:`sitecustomize` und :index:`usercustomize` . Um zu sehen, wie "
243+
"das funktioniert, müssen Sie zunächst den Speicherort Ihres "
244+
"Benutzerverzeichnisses \"site-packages\“ ermitteln. Starten Sie Python und "
245+
"führen Sie folgenden Code aus::"
164246

165247
msgid ""
166248
">>> import site\n"
167249
">>> site.getusersitepackages()\n"
168250
"'/home/user/.local/lib/python3.x/site-packages'"
169251
msgstr ""
252+
">>> import site\n"
253+
">>> site.getusersitepackages()\n"
254+
"'/home/user/.local/lib/python3.x/site-packages'"
170255

171256
msgid ""
172257
"Now you can create a file named :file:`usercustomize.py` in that directory "
173-
"and put anything you want in it. It will affect every invocation of Python, "
174-
"unless it is started with the :option:`-s` option to disable the automatic "
258+
"and put anything you want in it. It will affect every invocation of Python,"
259+
" unless it is started with the :option:`-s` option to disable the automatic "
175260
"import."
176261
msgstr ""
262+
"Nun können Sie in diesem Verzeichnis eine Datei mit dem Namen "
263+
":file:`usercustomize.py` erstellen und darin beliebige Inhalte ablegen. "
264+
"Dies wirkt sich auf jeden Aufruf von Python aus, es sei denn, Python wird "
265+
"mit der Option :option:`-s` gestartet, um den automatischen Import zu "
266+
"deaktivieren."
177267

178268
msgid ""
179-
":index:`sitecustomize` works in the same way, but is typically created by an "
180-
"administrator of the computer in the global site-packages directory, and is "
181-
"imported before :index:`usercustomize`. See the documentation of the :mod:"
182-
"`site` module for more details."
269+
":index:`sitecustomize` works in the same way, but is typically created by an"
270+
" administrator of the computer in the global site-packages directory, and is"
271+
" imported before :index:`usercustomize`. See the documentation of the "
272+
":mod:`site` module for more details."
183273
msgstr ""
274+
":index:`sitecustomize` funktioniert auf dieselbe Weise, wird jedoch in der "
275+
"Regel von einem Administrator des Computers im Verzeichnis \"global/site-"
276+
"packages\“ angelegt und vor :index:`usercustomize` importiert. Weitere "
277+
"Informationen finden Sie in der Dokumentation zum Modul :mod:`site` ."
184278

185279
msgid "Footnotes"
186280
msgstr "Fußnoten"
187281

188282
msgid "A problem with the GNU Readline package may prevent this."
189-
msgstr ""
283+
msgstr "Ein Problem mit dem GNU-Readline-Paket könnte dies verhindern."

0 commit comments

Comments
 (0)