Skip to content

Commit 8c90b9c

Browse files
[po] auto sync
1 parent 8b8a215 commit 8c90b9c

File tree

4 files changed

+40
-15
lines changed

4 files changed

+40
-15
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "82.51%", "updated_at": "2025-09-23T04:32:52Z"}
1+
{"translation": "82.55%", "updated_at": "2025-09-23T07:29:38Z"}

library/os.path.po

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.10\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-06-06 16:52+0000\n"
14+
"POT-Creation-Date: 2025-09-22 21:19+0000\n"
1515
"PO-Revision-Date: 2025-09-22 15:58+0000\n"
1616
"Last-Translator: python-doc bot, 2025\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -428,6 +428,8 @@ msgid ""
428428
"exist, is a symlink loop, or whose evaluation raises :exc:`OSError`. All "
429429
"such components are appended unchanged to the existing part of the path."
430430
msgstr ""
431+
"在默认情况下,对路径的求值将执行至第一个不存在的、导致符号链接循环的,或者求值引发 :exc:`OSError` 的路径组件。 "
432+
"所有这样的组件将不经修改地添加到现有的路径组件。"
431433

432434
#: ../../library/os.path.rst:359
433435
msgid ""
@@ -436,10 +438,12 @@ msgid ""
436438
"path may be missing or inaccessible, may still contain links or loops, and "
437439
"may traverse non-directories."
438440
msgstr ""
441+
"会以这种方式来处理的错误包括 \"access denied\", \"not a directory\"\"bad argument to "
442+
"internal function\"。 因此,结果路径可能不存在或不可访问,可能仍然包含链接或循环,并可能遍历至非目录。"
439443

440444
#: ../../library/os.path.rst:364
441445
msgid "This behavior can be modified by keyword arguments:"
442-
msgstr ""
446+
msgstr "此行为可通过关键字参数来修改:"
443447

444448
#: ../../library/os.path.rst:366
445449
msgid ""
@@ -448,6 +452,8 @@ msgid ""
448452
"*path* does not exist, or another :exc:`OSError` if it is otherwise "
449453
"inaccessible."
450454
msgstr ""
455+
"如果 *strict* 为 ``True``,则在对路径求值时遇到的第一个错误将被重新引发。 具体来说,如果 *path* 不存在则会引发 "
456+
":exc:`FileNotFoundError`,或者如果因其他原因而不可访问则会引发 :exc:`OSError`。"
451457

452458
#: ../../library/os.path.rst:371
453459
msgid ""
@@ -456,6 +462,9 @@ msgid ""
456462
"returned path will not contain any symbolic links, but the named file and "
457463
"some of its parent directories may be missing."
458464
msgstr ""
465+
"如果 *strict* 为 :py:data:`os.path.ALLOW_MISSING`,则 :exc:`FileNotFoundError` "
466+
"以外的错误将被重新引发(就像设置 ``strict=True`` 一样)。 "
467+
"因此,返回的路径将不包含任何符号链接,但指定名称的文件及其某些上级目录可能会不存在。"
459468

460469
#: ../../library/os.path.rst:377
461470
msgid ""
@@ -482,11 +491,11 @@ msgstr "增加了 *strict* 形参。"
482491
msgid ""
483492
"The :py:data:`~os.path.ALLOW_MISSING` value for the *strict* parameter was "
484493
"added."
485-
msgstr ""
494+
msgstr "增加了用于 *strict* 形参的 :py:data:`~os.path.ALLOW_MISSING` 值。"
486495

487496
#: ../../library/os.path.rst:399
488497
msgid "Special value used for the *strict* argument in :func:`realpath`."
489-
msgstr ""
498+
msgstr "用于 :func:`realpath` 中 *strict* 参数的特殊值。"
490499

491500
#: ../../library/os.path.rst:405
492501
msgid ""

whatsnew/3.3.po

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
66
# Translators:
7-
# python-doc bot, 2025
87
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
8+
# python-doc bot, 2025
99
#
1010
#, fuzzy
1111
msgid ""
@@ -14,7 +14,7 @@ msgstr ""
1414
"Report-Msgid-Bugs-To: \n"
1515
"POT-Creation-Date: 2025-09-22 21:19+0000\n"
1616
"PO-Revision-Date: 2025-09-22 15:59+0000\n"
17-
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
17+
"Last-Translator: python-doc bot, 2025\n"
1818
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1919
"MIME-Version: 1.0\n"
2020
"Content-Type: text/plain; charset=UTF-8\n"
@@ -1059,13 +1059,17 @@ msgid ""
10591059
"existence of the attribute. Until such time, though, import is setting the "
10601060
"module post-load."
10611061
msgstr ""
1062+
"另一个变化是所有模块都具有 ``__loader__`` 属性,它储存被用于创建该模块的加载器。 :pep:`302` "
1063+
"已被更新以强制要求加载器实现该属性,因此未来的第 3 方加载器一旦被更新人们将能确定该属性的存在。 但在此之前,import 都需要在加载之后设置模块。"
10621064

10631065
#: ../../whatsnew/3.3.rst:759
10641066
msgid ""
10651067
"Loaders are also now expected to set the ``__package__`` attribute from "
10661068
":pep:`366`. Once again, import itself is already setting this on all loaders"
10671069
" from :mod:`importlib` and import itself is setting the attribute post-load."
10681070
msgstr ""
1071+
"加载器现在还需要根据 :pep:`366` 设置 ``__package__`` 属性。 同样地,import 本身已经在所有来自 "
1072+
":mod:`importlib` 的加载器上设置了该属性并且 import 是在加载之后自行设置该属性。"
10691073

10701074
#: ../../whatsnew/3.3.rst:763
10711075
msgid ""
@@ -1081,6 +1085,8 @@ msgid ""
10811085
"consideration when updating code for Python 3.3, and thus should be read "
10821086
"about in the `Porting Python code`_ section of this document."
10831087
msgstr ""
1088+
"有关语法变化的所有其他修改在为 Python 3.3 更新代码时都应当被纳入考虑,因此应当仔细阅读本文档的 `Porting Python code`_"
1089+
" 章节。"
10841090

10851091
#: ../../whatsnew/3.3.rst:772
10861092
msgid "(Implementation by Brett Cannon)"
@@ -1115,13 +1121,16 @@ msgid ""
11151121
" the equality of the underlying sequences generated by those range objects. "
11161122
"(:issue:`13201`)"
11171123
msgstr ""
1124+
"现在 :func:`range` 对象的相等性比较将返回反映下层的由这些 range 对象生成的序列的相等性的结果。 (:issue:`13201`)"
11181125

11191126
#: ../../whatsnew/3.3.rst:792
11201127
msgid ""
11211128
"The ``count()``, ``find()``, ``rfind()``, ``index()`` and ``rindex()`` "
11221129
"methods of :class:`bytes` and :class:`bytearray` objects now accept an "
11231130
"integer between 0 and 255 as their first argument."
11241131
msgstr ""
1132+
"现在 :class:`bytes` 和 :class:`bytearray` 对象的 ``count()``, ``find()``, "
1133+
"``rfind()``, ``index()`` 和 ``rindex()`` 方法将接受一个 0 到 255 范围内的整数作为其第一个参数。"
11251134

11261135
#: ../../whatsnew/3.3.rst:796
11271136
msgid "(Contributed by Petri Lehtinen in :issue:`12170`.)"
@@ -1133,6 +1142,9 @@ msgid ""
11331142
" :class:`bytearray` now accept a :class:`bytearray` for the ``fill`` "
11341143
"argument. (Contributed by Petri Lehtinen in :issue:`12380`.)"
11351144
msgstr ""
1145+
"现在 :class:`bytes` 和 :class:`bytearray` 的 ``rjust()``, ``ljust()`` 和 "
1146+
"``center()`` 方法将接受一个 :class:`bytearray` 作为 ``fill`` 参数。 (由 Petri Lehtinen 在 "
1147+
":issue:`12380` 中贡献。)"
11361148

11371149
#: ../../whatsnew/3.3.rst:802
11381150
msgid ""
@@ -1144,7 +1156,7 @@ msgstr ""
11441156

11451157
#: ../../whatsnew/3.3.rst:807
11461158
msgid "Raw bytes literals can now be written ``rb\"...\"`` as well as ``br\"...\"``."
1147-
msgstr ""
1159+
msgstr "原始字节串字面值现在可以写成 ``rb\"...\"`` 也可以写成 ``br\"...\"``。"
11481160

11491161
#: ../../whatsnew/3.3.rst:809
11501162
msgid "(Contributed by Antoine Pitrou in :issue:`13748`.)"
@@ -1154,7 +1166,7 @@ msgstr "(由 Antoine Pitrou 在 :issue:`13748` 中贡献。)"
11541166
msgid ""
11551167
":meth:`dict.setdefault` now does only one lookup for the given key, making "
11561168
"it atomic when used with built-in types."
1157-
msgstr ""
1169+
msgstr "现在 :meth:`dict.setdefault` 对给定的键将只执行一次查找,这使其在配合内置类型使用时是原子化的。"
11581170

11591171
#: ../../whatsnew/3.3.rst:814
11601172
msgid "(Contributed by Filip Gruszczyński in :issue:`13521`.)"
@@ -1164,15 +1176,15 @@ msgstr "(由 Filip Gruszczyński 在 :issue:`13521` 中贡献。)"
11641176
msgid ""
11651177
"The error messages produced when a function call does not match the function"
11661178
" signature have been significantly improved."
1167-
msgstr ""
1179+
msgstr "当函数调用与函数签名不匹配时产生的错误消息已获得大幅改进。"
11681180

11691181
#: ../../whatsnew/3.3.rst:819
11701182
msgid "(Contributed by Benjamin Peterson.)"
11711183
msgstr "(由 Benjamin Peterson 贡献。)"
11721184

11731185
#: ../../whatsnew/3.3.rst:823
11741186
msgid "A Finer-Grained Import Lock"
1175-
msgstr ""
1187+
msgstr "更细粒度的导入锁"
11761188

11771189
#: ../../whatsnew/3.3.rst:825
11781190
msgid ""
@@ -1182,6 +1194,8 @@ msgid ""
11821194
" workarounds were sometimes employed, such as the "
11831195
":c:func:`PyImport_ImportModuleNoBlock` C API function."
11841196
msgstr ""
1197+
"之前版本的 CPython 是始终依赖于全局导入锁的。 这会导致预料之外的困扰,比如当导入一个模块会触发代码在其他线程中执行作为附带影响导致的死锁。 "
1198+
"有时需要应用一些笨拙的绕过方式,比如 :c:func:`PyImport_ImportModuleNoBlock` C API 函数。"
11851199

11861200
#: ../../whatsnew/3.3.rst:831
11871201
msgid ""
@@ -1190,6 +1204,8 @@ msgid ""
11901204
"the exposure of incompletely initialized modules), while eliminating the "
11911205
"aforementioned annoyances."
11921206
msgstr ""
1207+
"在 Python 3.3 中,导入一个模块会使用单独的模块级锁。 "
1208+
"这能正确地从多个线程序列化给定模块的导入操作(防止出现被不完整初始化的模块),同时消除之前提到的困扰。"
11931209

11941210
#: ../../whatsnew/3.3.rst:836
11951211
msgid "(Contributed by Antoine Pitrou in :issue:`9260`.)"

whatsnew/changelog.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8301,7 +8301,7 @@ msgstr ""
83018301

83028302
#: ../../../build/NEWS:4925
83038303
msgid "*Release date: 2021-04-05*"
8304-
msgstr ""
8304+
msgstr "*发布日期: 2021-04-05*"
83058305

83068306
#: ../../../build/NEWS:4930
83078307
msgid ""
@@ -9057,7 +9057,7 @@ msgstr ""
90579057

90589058
#: ../../../build/NEWS:5350
90599059
msgid "*Release date: 2021-03-01*"
9060-
msgstr ""
9060+
msgstr "*发布日期: 2021-03-01*"
90619061

90629062
#: ../../../build/NEWS:5355
90639063
msgid ""
@@ -9416,7 +9416,7 @@ msgstr ""
94169416

94179417
#: ../../../build/NEWS:5584
94189418
msgid "*Release date: 2021-02-02*"
9419-
msgstr ""
9419+
msgstr "*发布日期: 2021-02-02*"
94209420

94219421
#: ../../../build/NEWS:5589
94229422
msgid ""
@@ -9862,7 +9862,7 @@ msgstr ""
98629862

98639863
#: ../../../build/NEWS:5847
98649864
msgid "*Release date: 2021-01-04*"
9865-
msgstr ""
9865+
msgstr "*发布日期: 2021-01-04*"
98669866

98679867
#: ../../../build/NEWS:5852
98689868
msgid ""

0 commit comments

Comments
 (0)