8000 [po] auto sync · python/python-docs-zh-cn@31bf9ee · GitHub
[go: up one dir, main page]

Skip to content

Commit 31bf9ee

Browse files
[po] auto sync
1 parent 1e33f75 commit 31bf9ee

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "80.42%", "updated_at": "2024-12-28T01:19:32Z"}
1+
{"translation": "80.43%", "updated_at": "2024-12-28T14:55:35Z"}

library/enum.po

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,6 +1460,9 @@ msgid ""
14601460
" created, otherwise private names and internal classes will not be handled "
14611461
"correctly."
14621462
msgstr ""
1463+
"*EnumDict* 是一个用作定义枚举类的命名空间的 :class:`dict` 子类 (参见 :ref:`prepare`)。 它被对外公开以允许 "
1464+
":class:`EnumType` 的子类具有高级行为如每个成员可包含多个值。 "
1465+
"它在调用时应当传入被创建的枚举类的名称,否则私有名称和内部类将无法被正确地处理。"
14631466

14641467
#: ../../library/enum.rst:840
14651468
msgid ""
@@ -1468,6 +1471,9 @@ msgid ""
14681471
" be possible to bypass the checks using other :class:`!dict` operations like"
14691472
" :meth:`|= <object.__ior__>`."
14701473
msgstr ""
1474+
"请注意只有 :class:`~collections.abc.MutableMapping` 接口 "
1475+
"(:meth:`~object.__setitem__` 和 :meth:`~dict.update`) 会被重写。 有可能使用其他 "
1476+
":class:`!dict` 操作如 :meth:`|= <object.__ior__>` 来绕过此项检查。"
14711477

14721478
#: ../../library/enum.rst:847
14731479
msgid "A list of member names."

library/getopt.po

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ msgid ""
3737
"processing are provided either as third party modules on PyPI, or else as "
3838
"features in the :mod:`argparse` module."
3939
msgstr ""
40+
"该模块被认为具有完备的特性。 在 :mod:`optparse` 模块中提供了一个针对此 API 的更为声明式和可扩展的替代物。 "
41+
"对命令行形参处理进一步的功能增强或是作为 PyPI 上的第三方模块,或是作为 :mod:`argparse` 模块中的特性被提供。"
4042

4143
#: ../../library/getopt.rst:20
4244
msgid ""
@@ -58,6 +60,9 @@ msgid ""
5860
"should consider using the :mod:`optparse` module. See :ref:`choosing-an-"
5961
"argument-parser` for additional details."
6062
msgstr ""
63+
"不熟悉 Unix :c:func:`!getopt` 函数的用户应当考虑改用 :mod:`argparse` 模块。 熟悉 Unix "
64+
":c:func:`!getopt` 函数,但希望在获得等价的行为同时使用更少的代码又具有更好的帮助和错误信息的用户应当考虑使用 "
65+
":mod:`optparse` 模块。 请参阅 :ref:`choosing-an-argument-parser` 了解更多细节。"
6166

6267
#: ../../library/getopt.rst:33
6368
msgid "This module provides two functions and an exception:"
@@ -276,7 +281,7 @@ msgid ""
276281
"Note that an equivalent command line interface could be produced with less "
277282
"code and more informative help and error messages by using the "
278283
":mod:`optparse` module:"
279-
msgstr ""
284+
msgstr "请注意可以通过使用 :mod:`optparse` 模块以更少的代码并附带更清晰的帮助和错误消息生成等价的命令行界面:"
280285

281286
#: ../../library/getopt.rst:163
282287
msgid ""
@@ -302,7 +307,7 @@ msgstr ""
302307
msgid ""
303308
"A roughly equivalent command line interface for this case can also be "
304309
"produced by using the :mod:`argparse` module:"
305-
msgstr ""
310+
msgstr "对这种情况也可以通过使用 :mod:`argparse` 模块来生成大致等价的命令行界面:"
306311

307312
#: ../../library/getopt.rst:177
308313
msgid ""
@@ -332,6 +337,8 @@ msgid ""
332337
"version of this code differs in behaviour from the ``optparse`` (and "
333338
"``getopt``) version."
334339
msgstr ""
340+
"请参阅 :ref:`choosing-an-argument-parser` 了解有关此代码的 ``argparse`` 版本与 "
341+
"``optparse`` (和 ``getopt``) 版本间行为差异的详情。"
335342

336343
#: ../../library/getopt.rst:195
337344
msgid "Module :mod:`optparse`"

0 commit comments

Comments
 (0)
0