Skip to content

Commit 3427fa2

Browse files
[po] auto sync
1 parent de2c85a commit 3427fa2

File tree

3 files changed

+37
-5
lines changed

3 files changed

+37
-5
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "95.23%", "updated_at": "2024-05-04T12:57:37Z"}
1+
{"translation": "95.25%", "updated_at": "2024-05-04T13:56:27Z"}

whatsnew/3.10.po

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ msgid ""
2222
msgstr ""
2323
"Project-Id-Version: Python 3.12\n"
2424
"Report-Msgid-Bugs-To: \n"
25-
"POT-Creation-Date: 2024-05-03 14:14+0000\n"
25+
"POT-Creation-Date: 2024-05-04 01:27+0000\n"
2626
"PO-Revision-Date: 2021-06-29 13:04+0000\n"
2727
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n"
2828
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -362,13 +362,16 @@ msgid ""
362362
":c:func:`!PyErr_Display` will offer suggestions of similar variable names in"
363363
" the function that the exception was raised from:"
364364
msgstr ""
365+
"当打印由解释器引发的 :exc:`NameError` 时,:c:func:`!PyErr_Display` 将提供引发异常的函数中类似变量名称的建议:"
365366

366367
#: ../../whatsnew/3.10.rst:391
367368
msgid ""
368369
"Notice this won't work if :c:func:`!PyErr_Display` is not called to display "
369370
"the error, which can happen if some other custom error display function is "
370371
"used. This is a common scenario in some REPLs like IPython."
371372
msgstr ""
373+
"请注意如果未调用 :c:func:`!PyErr_Display` 来显示错误则此特性将没有效果,这可能发生在使用了某些其他自定义错误显示函数的时候。 "
374+
"这在某些 REPL 例如 IPython 上是一种常见的情况。"
372375

373376
#: ../../whatsnew/3.10.rst:397
374377
msgid "PEP 626: Precise line numbers for debugging and other tools"
@@ -724,6 +727,9 @@ msgid ""
724727
"omitting ``encoding`` option when opening UTF-8 files (e.g. JSON, YAML, "
725728
"TOML, Markdown) is a very common bug. For example::"
726729
msgstr ""
730+
":class:`~io.TextIOWrapper` 和 :func:`open` 的默认编码格式取决于具体的平台和语言区域设置。 由于 UTF-8 "
731+
"被用于大多数 Unix 平台,当打开 UTF-8 文件(例如 JSON, YAML, TOML, Markdown)时省略 ``encoding`` "
732+
"是一种相当常见的程序错误。 例如::"
727733

728734
#: ../../whatsnew/3.10.rst:702
729735
msgid ""
@@ -868,7 +874,7 @@ msgstr ""
868874
msgid ""
869875
"Now the :mod:`typing` module has a special value :data:`~typing.TypeAlias` "
870876
"which lets you declare type aliases more explicitly::"
871-
msgstr ""
877+
msgstr "现在 :mod:`typing` 模块具有一个特殊值 :data:`~typing.TypeAlias` 可让你更明确地声明类型别名::"
872878

873879
#: ../../whatsnew/3.10.rst:794
874880
msgid "See :pep:`613` for more details."
@@ -889,6 +895,9 @@ msgid ""
889895
"type checkers during type narrowing. For more information, please see "
890896
":data:`~typing.TypeGuard`\\ 's documentation, and :pep:`647`."
891897
msgstr ""
898+
":data:`~typing.TypeGuard` 已被添加到 :mod:`typing` "
899+
"模块用来标注类型保护函数并改进在类型细化期间提供给静态类型检查器的信息。 要了解更多信息,请参阅 :data:`~typing.TypeGuard` "
900+
"的文档以及 :pep:`647`。"
892901

893902
#: ../../whatsnew/3.10.rst:806
894903
msgid ""
@@ -1233,7 +1242,7 @@ msgstr ""
12331242
msgid ""
12341243
"Add :class:`~contextlib.AsyncContextDecorator`, for supporting usage of "
12351244
"async context managers as decorators."
1236-
msgstr ""
1245+
msgstr "添加了 :class:`~contextlib.AsyncContextDecorator`,以支持将异步上下文管理器用作装饰器。"
12371246

12381247
#: ../../whatsnew/3.10.rst:979
12391248
msgid "curses"
@@ -1396,6 +1405,9 @@ msgid ""
13961405
":func:`repr` of ``module_name.member_name``. (Contributed by Ethan Furman in"
13971406
" :issue:`40066`.)"
13981407
msgstr ""
1408+
":class:`~enum.Enum` :func:`~object.__repr__` 现在返回 ``enum_name.member_name`` "
1409+
"而 :func:`~object.__str__` 现在返回 ``member_name``。 作为模块常量提供的标准库枚举的 :func:`repr`"
1410+
" 为 ``module_name.member_name``。 (由 Ethan Furman 在 :issue:`40066` 中贡献。)"
13991411

14001412
#: ../../whatsnew/3.10.rst:1097
14011413
msgid ""
@@ -1424,6 +1436,8 @@ msgid ""
14241436
"object when *mode* is \"r\" and file is compressed, like uncompressed files."
14251437
" (Contributed by Inada Naoki in :issue:`5758`.)"
14261438
msgstr ""
1439+
"现在 :func:`fileinput.hook_compressed` 会在 *mode* 为 \"r\" 且文件被压缩时返回 "
1440+
":class:`~io.TextIOWrapper` 对象,与未压缩文件一样。 (由 Inada Naoki 在 :issue:`5758` 中贡献。)"
14271441

14281442
#: ../../whatsnew/3.10.rst:1112
14291443
msgid "faulthandler"
@@ -1610,13 +1624,19 @@ msgid ""
16101624
":ref:`importlib.metadata.EntryPoints <entry-points>` class. See the "
16111625
"Compatibility Note in the docs for more info on the deprecation and usage."
16121626
msgstr ""
1627+
"现在 :ref:`importlib.metadata 入口点 <entry-points>` 通过新增的 "
1628+
":ref:`importlib.metadata.EntryPoints <entry-points>` 类为使用分组和名称选择入口点提供了更好的体验。"
1629+
" 请参阅文档中的兼容性说明了解有关弃用和用法的更多信息。"
16131630

16141631
#: ../../whatsnew/3.10.rst:1208
16151632
msgid ""
16161633
"Added :ref:`importlib.metadata.packages_distributions() <package-"
16171634
"distributions>` for resolving top-level Python modules and packages to their"
16181635
" :ref:`importlib.metadata.Distribution <distributions>`."
16191636
msgstr ""
1637+
"增加了 :ref:`importlib.metadata.packages_distributions() <package-"
1638+
"distributions>` 用于将最高层级 Python 模块和包解析为其 "
1639+
":ref:`importlib.metadata.Distribution <distributions>`。"
16201640

16211641
#: ../../whatsnew/3.10.rst:1213
16221642
msgid "inspect"

whatsnew/3.9.po

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ msgid ""
1919
msgstr ""
2020
"Project-Id-Version: Python 3.12\n"
2121
"Report-Msgid-Bugs-To: \n"
22-
"POT-Creation-Date: 2024-05-03 14:14+0000\n"
22+
"POT-Creation-Date: 2024-05-04 01:27+0000\n"
2323
"PO-Revision-Date: 2021-06-29 13:04+0000\n"
2424
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n"
2525
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -129,6 +129,10 @@ msgid ""
129129
":mod:`resource`, :mod:`time`, :mod:`!_weakref`) now use multiphase "
130130
"initialization as defined by PEP 489;"
131131
msgstr ""
132+
"多个 Python 模块 (:mod:`!_abc`, :mod:`audioop`, :mod:`!_bz2`, :mod:`!_codecs`, "
133+
":mod:`!_contextvars`, :mod:`!_crypt`, :mod:`!_functools`, :mod:`!_json`, "
134+
":mod:`!_locale`, :mod:`math`, :mod:`operator`, :mod:`resource`, :mod:`time`,"
135+
" :mod:`!_weakref`) 现在已使用 PEP 489 所定义的多阶段初始化;"
132136

133137
#: ../../whatsnew/3.9.rst:89
134138
msgid ""
@@ -137,6 +141,9 @@ msgid ""
137141
":mod:`random`, :mod:`select`, :mod:`struct`, :mod:`termios`, :mod:`zlib`) "
138142
"are now using the stable ABI defined by PEP 384."
139143
msgstr ""
144+
"多个标准库模块 (:mod:`audioop`, :mod:`ast`, :mod:`grp`, :mod:`!_hashlib`, "
145+
":mod:`pwd`, :mod:`!_posixsubprocess`, :mod:`random`, :mod:`select`, "
146+
":mod:`struct`, :mod:`termios`, :mod:`zlib`) 现在已使用 PEP 384 所定义的稳定 ABI。"
140147

141148
#: ../../whatsnew/3.9.rst:94
142149
msgid "New library modules:"
@@ -333,6 +340,9 @@ msgid ""
333340
"parser using a command line switch (``-X oldparser``) or an environment "
334341
"variable (``PYTHONOLDPARSER=1``)."
335342
msgstr ""
343+
"在 Python 3.10 中,旧解析器将被删除因而所有依赖它的功能也将被删除(主要是 :mod:`!parser` 模块,它早已被弃用)。 *只有* "
344+
"在 Python 3.9 中,你可以使用命令行开关 (``-X oldparser``) 或环境变量 (``PYTHONOLDPARSER=1``) "
345+
"切换回 LL(1) 解析器。"
336346

337347
#: ../../whatsnew/3.9.rst:211
338348
msgid ""
@@ -615,6 +625,8 @@ msgid ""
615625
" with an :class:`ssl.SSLSocket` socket. (Contributed by Ido Michael in "
616626
":issue:`37404`.)"
617627
msgstr ""
628+
"现在当附带 :class:`ssl.SSLSocket` 套接字调用不兼容的方法时 :mod:`asyncio` 会引发 "
629+
":exc:`TypeError`。 (由 Ido Michael 在 :issue:`37404` 中贡献。)"
618630

619631
#: ../../whatsnew/3.9.rst:374
620632
msgid "compileall"

0 commit comments

Comments
 (0)