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

Skip to content

Commit 9afff08

Browse files
[po] auto sync
1 parent 89c7139 commit 9afff08

File tree

3 files changed

+30
-8
lines changed

3 files changed

+30
-8
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.13%", "updated_at": "2025-03-23T15:55:55Z"}
1+
{"translation": "81.15%", "updated_at": "2025-03-24T01:19:35Z"}

library/argparse.po

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3479,6 +3479,10 @@ msgid ""
34793479
"accepts *title* and *description* arguments which can be used to customize "
34803480
"this display::"
34813481
msgstr ""
3482+
":meth:`add_argument_group` 方法返回一个具有 :meth:`~ArgumentParser.add_argument` "
3483+
"方法的参数分组对象,这与常规的 :class:`ArgumentParser` 一样。 "
3484+
"当一个参数被加入分组时,解析器儒将地它视为一个正常的参数,但是会在单独的帮助消息分组中显示该参数。 "
3485+
":meth:`!add_argument_group` 方法接受 *title* 和 *description* 参数以使用它们来定制显示内容::"
34823486

34833487
#: ../../library/argparse.rst:1841
34843488
msgid ""
@@ -3526,6 +3530,8 @@ msgid ""
35263530
":class:`ArgumentParser` constructor, but apply specifically to the argument "
35273531
"group rather than the entire parser."
35283532
msgstr ""
3533+
"可选的仅限关键字形参 argument_default_ 和 conflict_handler_ 允许对参数分组行为进行更细粒度的控制。 这些形参具有与"
3534+
" :class:`ArgumentParser` 构造器中相同的含义,但是专门应用于参数分组而不是整个解析器。"
35293535

35303536
#: ../../library/argparse.rst:1864
35313537
msgid ""
@@ -3552,7 +3558,7 @@ msgid ""
35523558
"Create a mutually exclusive group. :mod:`!argparse` will make sure that only"
35533559
" one of the arguments in the mutually exclusive group was present on the "
35543560
"command line::"
3555-
msgstr ""
3561+
msgstr "创建一个互斥分组。 :mod:`!argparse` 将会确保互斥分组中只有一个参数在命令行中可用::"
35563562

35573563
#: ../../library/argparse.rst:1883
35583564
msgid ""
@@ -3928,6 +3934,8 @@ msgid ""
39283934
"subparsers, and mutually exclusive groups that include both optionals and "
39293935
"positionals are not supported."
39303936
msgstr ""
3937+
"这些解析器并不支持所有的 :mod:`!argparse` 特性,并且当不受支持的特性被使用时将会引发异常。 "
3938+
"具体来说,子解析器以及同时包括可选参数和位置参数的互斥分组是不受支持的。"
39313939

39323940
#: ../../library/argparse.rst:2097
39333941
msgid ""
@@ -3983,6 +3991,8 @@ msgid ""
39833991
" register custom actions or types with a parser and allow you to reference "
39843992
"the type by their registered name instead of their callable name."
39853993
msgstr ""
3994+
"在某些时候有必要在错误消息中使用自定义的字符串以提供对用户更友好的输出。 在这种情况下,可以使用 :meth:`!register` "
3995+
"来注册带有解析器的自定义动作或类型并允许你按其注册名称而非其可调用对象名称来引用该类型。"
39863996

39873997
#: ../../library/argparse.rst:2130
39883998
msgid ""

reference/datamodel.po

10000 Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ msgid ""
3333
msgstr ""
3434
"Project-Id-Version: Python 3.13\n"
3535
"Report-Msgid-Bugs-To: \n"
36-
"POT-Creation-Date: 2025-01-17 14:16+0000\n"
36+
"POT-Creation-Date: 2025-03-21 14:18+0000\n"
3737
"PO-Revision-Date: 2021-06-28 01:19+0000\n"
3838
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
3939
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -1173,6 +1173,8 @@ msgid ""
11731173
"the module's :term:`spec <module spec>`, before the :term:`loader` executes "
11741174
"and loads the module."
11751175
msgstr ""
1176+
"模块对象具有下列与 :ref:`导入系统 <importsystem>` 相关的属性。 当使用关联到导入系统的机制创建模块时,这些属性将在 "
1177+
":term:`loader` 执行和加载模块之前基于模块的 :term:`规格 <module spec>` 来填充。"
11761178

11771179
#: ../../reference/datamodel.rst:902
11781180
msgid ""
@@ -1240,10 +1242,12 @@ msgid ""
12401242
"Set to the :class:`module spec <importlib.machinery.ModuleSpec>` that was "
12411243
"used when importing the module. See :ref:`module-specs` for more details."
12421244
msgstr ""
1245+
"设置为导入模块时使用的 :class:`模块规格 <importlib.machinery.ModuleSpec>`。 请参阅 "
1246+
":ref:`module-specs` 了解详情。"
12431247

12441248
#: ../../reference/datamodel.rst:950
12451249
msgid "The :term:`package` a module belongs to."
1246-
msgstr ""
1250+
msgstr "模块所属的 :term:`package`。"
12471251

12481252
#: ../../reference/datamodel.rst:952
12491253
msgid ""
@@ -1571,6 +1575,8 @@ msgid ""
15711575
"collected during class body execution. For best practices on working with "
15721576
":attr:`!__annotations__`, please see :ref:`annotations-howto`."
15731577
msgstr ""
1578+
"包含在类体执行期间收集的 :term:`变量标 <variable annotation>` 的字典。 有关使用 "
1579+
":attr:`!__annotations__` 的最佳实践,请参阅 :ref:`annotations-howto`。"
15741580

15751581
#: ../../reference/datamodel.rst:1206
15761582
msgid ""
@@ -3445,7 +3451,7 @@ msgstr ""
34453451
msgid ""
34463452
":attr:`~object.__class__` assignment works only if both classes have the "
34473453
"same *__slots__*."
3448-
msgstr ""
3454+
msgstr ":attr:`~object.__class__` 赋值仅在两个类具有相同的 *__slots__* 时才会起作用。"
34493455

34503456
#: ../../reference/datamodel.rst:2585
34513457
msgid ""
@@ -3883,6 +3889,8 @@ msgid ""
38833889
"object is discarded. The new copy is wrapped in a read-only proxy, which "
38843890
"becomes the :attr:`~type.__dict__` attribute of the class object."
38853891
msgstr ""
3892+
"当通过 ``type.__new__`` 创建新类时,作为命令空间形参提供的对象会被拷贝到一个新的有序映射并丢弃原始对象。 "
3893+
"这个新拷贝包装在一个只读代理中,该代理会成为类对象的 :attr:`~type.__dict__` 属性。"
38863894

38873895
#: ../../reference/datamodel.rst:2852
38883896
msgid ":pep:`3135` - New super"
@@ -4658,6 +4666,7 @@ msgid ""
46584666
"For more information on context managers, see :ref:`typecontextmanager`. The"
46594667
" :class:`object` class itself does not provide the context manager methods."
46604668
msgstr ""
4669+
"有关上下文管理器的更多信息,请参阅 :ref:`typecontextmanager`。 :class:`object` 类本身不提供上下文管理器方法。"
46614670

46624671
#: ../../reference/datamodel.rst:3438
46634672
msgid ""
@@ -4991,6 +5000,9 @@ msgid ""
49915000
":class:`object` class itself is not awaitable and does not provide this "
49925001
"method."
49935002
msgstr ""
5003+
"必须返回一个 :term:`iterator`。 应当被用来实现 :term:`awaitable` 对象。 "
5004+
"例如,:class:`asyncio.Future` 实现了此方法以与 :keyword:`await` 表达式兼容。 :class:`object` "
5005+
"类本身不是可等待对象因而不提供此方法。"
49945006

49955007
#: ../../reference/datamodel.rst:3643
49965008
msgid ""
@@ -5109,7 +5121,7 @@ msgstr "异步迭代器可在 :keyword:`async for` 语句中使用。"
51095121

51105122
#: ../../reference/datamodel.rst:3725 ../../reference/datamodel.rst:3774
51115123
msgid "The :class:`object` class itself does not provide these methods."
5112-
msgstr ""
5124+
msgstr ":class:`object` 类本身不提供这些方法。"
51135125

51145126
#: ../../reference/datamodel.rst:3730
51155127
msgid "Must return an *asynchronous iterator* object."
@@ -5727,7 +5739,7 @@ msgstr "__name__ (模块属性)"
57275739

57285740
#: ../../reference/datamodel.rst:879
57295741
msgid "__spec__ (module attribute)"
5730-
msgstr ""
5742+
msgstr "__spec__ (模块属性)"
57315743

57325744
#: ../../reference/datamodel.rst:879
57335745
msgid "__package__ (module attribute)"
@@ -5739,7 +5751,7 @@ msgstr "__loader__ (模块属性)"
57395751

57405752
#: ../../reference/datamodel.rst:879
57415753
msgid "__path__ (module attribute)"
5742-
msgstr ""
5754+
msgstr "__path__ (模块属性)"
57435755

57445756
#: ../../reference/datamodel.rst:879
57455757
msgid "__file__ (module attribute)"

0 commit comments

Comments
 (0)
0