Repository navigation
Expand file tree
/
Copy pathargparse-optparse.po
More file actions
182 lines (162 loc) · 7.53 KB
/
Copy pathargparse-optparse.po
File metadata and controls
182 lines (162 loc) · 7.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
# German translation of the Python documentation.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
#
# Translators:
# Swen Bachmann, 2026
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.15\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-08-22 12:07+0200\n"
"PO-Revision-Date: 2026-10-15 06:00+0200\n"
"Last-Translator: python-doc bot, 2025\n"
"Language-Team: German (https://github.com/python/python-docs-de)\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"
#: ../../howto/argparse-optparse.rst:8
msgid "Migrating ``optparse`` code to ``argparse``"
msgstr "Migration von ``optparse``-Code zu ``argparse``"
#: ../../howto/argparse-optparse.rst:10
msgid ""
"The :mod:`argparse` module offers several higher level features not natively "
"provided by the :mod:`optparse` module, including:"
msgstr ""
"Das Modul :mod:`argparse` bietet mehrere höhere Funktionen, die das "
"Modul :mod:`optparse` von sich aus nicht bereitstellt, darunter:"
#: ../../howto/argparse-optparse.rst:13
msgid "Handling positional arguments."
msgstr "Umgang mit positionellen Argumenten."
#: ../../howto/argparse-optparse.rst:14
msgid "Supporting subcommands."
msgstr "Unterstützung von Unterbefehlen."
#: ../../howto/argparse-optparse.rst:15
msgid "Allowing alternative option prefixes like ``+`` and ``/``."
msgstr "Alternative Optionspräfixe wie ``+`` und ``/``."
#: ../../howto/argparse-optparse.rst:16
msgid "Handling zero-or-more and one-or-more style arguments."
msgstr "Umgang mit Argumenten der Art „null oder mehr“ und „eins oder mehr“."
#: ../../howto/argparse-optparse.rst:17
msgid "Producing more informative usage messages."
msgstr "Aussagekräftigere Verwendungshinweise."
#: ../../howto/argparse-optparse.rst:18
msgid "Providing a much simpler interface for custom ``type`` and ``action``."
msgstr ""
"Eine deutlich einfachere Schnittstelle für eigene ``type``- und ``action``-"
"Angaben."
#: ../../howto/argparse-optparse.rst:20
msgid ""
"Originally, the :mod:`argparse` module attempted to maintain compatibility "
"with :mod:`optparse`. However, the fundamental design differences between "
"supporting declarative command line option processing (while leaving "
"positional argument processing to application code), and supporting both "
"named options and positional arguments in the declarative interface mean "
"that the API has diverged from that of ``optparse`` over time."
msgstr ""
"Ursprünglich versuchte das Modul :mod:`argparse`, die Kompatibilität "
"mit :mod:`optparse` zu erhalten. Die grundlegenden Entwurfsunterschiede "
"zwischen einer deklarativen Verarbeitung von Befehlszeilenoptionen (die die "
"Verarbeitung positioneller Argumente dem Anwendungscode überlässt) und der "
"Unterstützung sowohl benannter Optionen als auch positioneller Argumente in "
"der deklarativen Schnittstelle führen jedoch dazu, dass sich die API im "
"Laufe der Zeit von der von ``optparse`` entfernt hat."
#: ../../howto/argparse-optparse.rst:27
msgid ""
"As described in :ref:`choosing-an-argument-parser`, applications that are "
"currently using :mod:`optparse` and are happy with the way it works can just "
"continue to use ``optparse``."
msgstr ""
"Wie unter :ref:`choosing-an-argument-parser` beschrieben, können "
"Anwendungen, die derzeit :mod:`optparse` verwenden und mit dessen "
"Arbeitsweise zufrieden sind, einfach weiter ``optparse`` nutzen."
#: ../../howto/argparse-optparse.rst:31
msgid ""
"Application developers that are considering migrating should also review the "
"list of intrinsic behavioural differences described in that section before "
"deciding whether or not migration is desirable."
msgstr ""
"Anwendungsentwickler, die eine Migration erwägen, sollten vor der "
"Entscheidung, ob eine Migration wünschenswert ist, außerdem die Liste der "
"grundlegenden Verhaltensunterschiede durchgehen, die in diesem Abschnitt "
"beschrieben sind."
#: ../../howto/argparse-optparse.rst:35
msgid ""
"For applications that do choose to migrate from :mod:`optparse` "
"to :mod:`argparse`, the following suggestions should be helpful:"
msgstr ""
"Für Anwendungen, die sich für die Migration von :mod:`optparse` "
"nach :mod:`argparse` entscheiden, dürften die folgenden Vorschläge hilfreich "
"sein:"
#: ../../howto/argparse-optparse.rst:38
msgid ""
"Replace all :meth:`optparse.OptionParser.add_option` calls "
"with :meth:`ArgumentParser.add_argument` calls."
msgstr ""
"Ersetze alle Aufrufe von :meth:`optparse.OptionParser.add_option` durch "
"Aufrufe von :meth:`ArgumentParser.add_argument`."
#: ../../howto/argparse-optparse.rst:41
msgid ""
"Replace ``(options, args) = parser.parse_args()`` with ``args = "
"parser.parse_args()`` and add additional :meth:`ArgumentParser.add_argument` "
"calls for the positional arguments. Keep in mind that what was previously "
"called ``options``, now in the :mod:`argparse` context is called ``args``."
msgstr ""
"Ersetze ``(options, args) = parser.parse_args()`` durch ``args = "
"parser.parse_args()`` und füge für die positionellen Argumente weitere "
"Aufrufe von :meth:`ArgumentParser.add_argument` hinzu. Bedenke, dass das, "
"was früher ``options`` hieß, im Kontext von :mod:`argparse` jetzt ``args`` "
"heißt."
#: ../../howto/argparse-optparse.rst:46
msgid ""
"Replace :meth:`optparse.OptionParser.disable_interspersed_args` by "
"using :meth:`~ArgumentParser.parse_intermixed_args` instead "
"of :meth:`~ArgumentParser.parse_args`."
msgstr ""
"Ersetze :meth:`optparse.OptionParser.disable_interspersed_args`, indem "
"du :meth:`~ArgumentParser.parse_intermixed_args` anstelle "
"von :meth:`~ArgumentParser.parse_args` verwendest."
#: ../../howto/argparse-optparse.rst:50
msgid ""
"Replace callback actions and the ``callback_*`` keyword arguments with "
"``type`` or ``action`` arguments."
msgstr ""
"Ersetze Callback-Aktionen und die ``callback_*``-Schlüsselwortargumente "
"durch ``type``- oder ``action``-Argumente."
#: ../../howto/argparse-optparse.rst:53
msgid ""
"Replace string names for ``type`` keyword arguments with the corresponding "
"type objects (e.g. int, float, complex, etc)."
msgstr ""
"Ersetze Zeichenkettennamen für ``type``-Schlüsselwortargumente durch die "
"entsprechenden Typobjekte (etwa int, float, complex usw.)."
#: ../../howto/argparse-optparse.rst:56
msgid ""
"Replace :class:`optparse.Values` with :class:`Namespace` "
"and :exc:`optparse.OptionError` and :exc:`optparse.OptionValueError` "
"with :exc:`ArgumentError`."
msgstr ""
"Ersetze :class:`optparse.Values` durch :class:`Namespace` "
"sowie :exc:`optparse.OptionError` und :exc:`optparse.OptionValueError` "
"durch :exc:`ArgumentError`."
#: ../../howto/argparse-optparse.rst:60
msgid ""
"Replace strings with implicit arguments such as ``%default`` or ``%prog`` "
"with the standard Python syntax to use dictionaries to format strings, that "
"is, ``%(default)s`` and ``%(prog)s``."
msgstr ""
"Ersetze Zeichenketten mit impliziten Argumenten wie ``%default`` oder "
"``%prog`` durch die übliche Python-Syntax, die Wörterbücher zur Formatierung "
"von Zeichenketten nutzt, also ``%(default)s`` und ``%(prog)s``."
#: ../../howto/argparse-optparse.rst:64
msgid ""
"Replace the OptionParser constructor ``version`` argument with a call to "
"``parser.add_argument('--version', action='version', version='<the "
"version>')``."
msgstr ""
"Ersetze das ``version``-Argument des OptionParser-Konstruktors durch einen "
"Aufruf von ``parser.add_argument('--version', action='version', "
"version='<the version>')``."