Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit00713ec

Browse files
[po] auto sync
1 parentaa26c89 commit00713ec

File tree

9 files changed

+1717
-54
lines changed

9 files changed

+1717
-54
lines changed

‎.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation":"77.32%","updated_at":"2025-05-09T13:05:49Z"}
1+
{"translation":"77.40%","updated_at":"2025-05-09T13:56:04Z"}

‎deprecations/index.po

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,45 +1158,50 @@ msgstr ""
11581158

11591159
#:../../deprecations/c-api-pending-removal-in-3.18.rst:2
11601160
msgid"Pending removal in Python 3.18"
1161-
msgstr""
1161+
msgstr"计划在 Python 3.18 中移除"
11621162

11631163
#:../../deprecations/c-api-pending-removal-in-3.18.rst:4
11641164
msgid"Deprecated private functions (:gh:`128863`):"
1165-
msgstr""
1165+
msgstr"弃用的私有函数(:gh:`128863`):"
11661166

11671167
#:../../deprecations/c-api-pending-removal-in-3.18.rst:6
11681168
msgid":c:func:`!_PyBytes_Join`: use :c:func:`PyBytes_Join`."
1169-
msgstr""
1169+
msgstr":c:func:`!_PyBytes_Join`:使用 :c:func:`PyBytes_Join`。"
11701170

11711171
#:../../deprecations/c-api-pending-removal-in-3.18.rst:7
11721172
msgid""
11731173
":c:func:`!_PyDict_GetItemStringWithError`: use "
11741174
":c:func:`PyDict_GetItemStringRef`."
11751175
msgstr""
1176+
":c:func:`!_PyDict_GetItemStringWithError`:使用:c:func:`PyDict_GetItemStringRef`。"
11761177

11771178
#:../../deprecations/c-api-pending-removal-in-3.18.rst:8
11781179
msgid":c:func:`!_PyDict_Pop()`: :c:func:`PyDict_Pop`."
1179-
msgstr""
1180+
msgstr":c:func:`!_PyDict_Pop()`::c:func:`PyDict_Pop`。"
11801181

11811182
#:../../deprecations/c-api-pending-removal-in-3.18.rst:9
11821183
msgid":c:func:`!_PyLong_Sign()`: use :c:func:`PyLong_GetSign`."
1183-
msgstr""
1184+
msgstr":c:func:`!_PyLong_Sign()`:使用 :c:func:`PyLong_GetSign`。"
11841185

11851186
#:../../deprecations/c-api-pending-removal-in-3.18.rst:10
11861187
msgid""
11871188
":c:func:`!_PyLong_FromDigits` and :c:func:`!_PyLong_New`: use "
11881189
":c:func:`PyLongWriter_Create`."
11891190
msgstr""
1191+
":c:func:`!_PyLong_FromDigits` 和 :c:func:`!_PyLong_New`:使用 "
1192+
":c:func:`PyLongWriter_Create`."
11901193

11911194
#:../../deprecations/c-api-pending-removal-in-3.18.rst:12
11921195
msgid""
11931196
":c:func:`!_PyThreadState_UncheckedGet`: use "
11941197
":c:func:`PyThreadState_GetUnchecked`."
11951198
msgstr""
1199+
":c:func:`!_PyThreadState_UncheckedGet`:使用 "
1200+
":c:func:`PyThreadState_GetUnchecked`。"
11961201

11971202
#:../../deprecations/c-api-pending-removal-in-3.18.rst:13
11981203
msgid":c:func:`!_PyUnicode_AsString`: use :c:func:`PyUnicode_AsUTF8`."
1199-
msgstr""
1204+
msgstr":c:func:`!_PyUnicode_AsString`:使用 :c:func:`PyUnicode_AsUTF8`。"
12001205

12011206
#:../../deprecations/c-api-pending-removal-in-3.18.rst:14
12021207
msgid""
@@ -1266,11 +1271,11 @@ msgstr ""
12661271

12671272
#:../../deprecations/c-api-pending-removal-in-3.18.rst:40
12681273
msgid":c:func:`!_Py_HashPointer`: use :c:func:`Py_HashPointer`."
1269-
msgstr""
1274+
msgstr":c:func:`!_Py_HashPointer`:使用 :c:func:`Py_HashPointer`。"
12701275

12711276
#:../../deprecations/c-api-pending-removal-in-3.18.rst:41
12721277
msgid":c:func:`!_Py_fopen_obj`: use :c:func:`Py_fopen`."
1273-
msgstr""
1278+
msgstr":c:func:`!_Py_fopen_obj`:使用 :c:func:`Py_fopen`。"
12741279

12751280
#:../../deprecations/c-api-pending-removal-in-3.18.rst:43
12761281
msgid""

‎howto/logging.po

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# cdarlint <cdarling@126.com>, 2023
1717
# 乐成 王, 2023
1818
# Freesand Leo <yuqinju@163.com>, 2024
19+
# 汇民 王 <whuim@qq.com>, 2025
1920
#
2021
#,fuzzy
2122
msgid ""
@@ -24,7 +25,7 @@ msgstr ""
2425
"Report-Msgid-Bugs-To:\n"
2526
"POT-Creation-Date:2025-05-08 02:53-0300\n"
2627
"PO-Revision-Date:2021-06-28 00:53+0000\n"
27-
"Last-Translator:Freesand Leo <yuqinju@163.com>,2024\n"
28+
"Last-Translator:汇民 王 <whuim@qq.com>,2025\n"
2829
"Language-Team:Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2930
"MIME-Version:1.0\n"
3031
"Content-Type:text/plain; charset=UTF-8\n"
@@ -281,6 +282,9 @@ msgid ""
281282
"reason as well as others, it's better to create loggers and call their "
282283
"methods."
283284
msgstr""
285+
"请注意在这个例子中,我们是直接使用 ``logging`` 模块的函数,比如 ``logging.debug``,而不是创建一个日志记录器并调用其方法。"
286+
" 这些函数作用于根日志记录器,但它们在未被调用时将会调用 :func:`~logging.basicConfig` 来发挥作用,就像在这个例子中那样。 "
287+
"然而在更大的程序中你通常会需要显式地控制日志记录的配置 —— 所以出于这样那样的理由,最好还是创建日志记录器并调用其方法。"
284288

285289
#:../../howto/logging.rst:137
286290
msgid"Logging to a file"

‎library/graphlib.po

Lines changed: 38 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2024, Python Software Foundation
2+
# Copyright (C) 2001 Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
66
# Translators:
77
# ww song <sww4718168@gmail.com>, 2021
88
# Freesand Leo <yuqinju@163.com>, 2024
9+
# 汇民 王 <whuim@qq.com>, 2025
910
#
1011
#,fuzzy
1112
msgid ""
1213
msgstr ""
13-
"Project-Id-Version:Python 3.13\n"
14+
"Project-Id-Version:Python 3.14\n"
1415
"Report-Msgid-Bugs-To:\n"
15-
"POT-Creation-Date:2024-10-04 14:17+0000\n"
16+
"POT-Creation-Date:2025-05-08 02:53-0300\n"
1617
"PO-Revision-Date:2021-06-28 01:06+0000\n"
17-
"Last-Translator:Freesand Leo <yuqinju@163.com>,2024\n"
18+
"Last-Translator:汇民 王 <whuim@qq.com>,2025\n"
1819
"Language-Team:Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1920
"MIME-Version:1.0\n"
2021
"Content-Type:text/plain; charset=UTF-8\n"
@@ -207,7 +208,21 @@ msgstr ""
207208
":meth:`~TopologicalSorter.get_ready` 仍可被用来获取尽可能多的节点直到环阻塞了操作过程。 "
208209
"在调用此函数后,图将无法再修改,因此不能再使用 :meth:`~TopologicalSorter.add` 添加更多的节点。"
209210

210-
#:../../library/graphlib.rst:111
211+
#:../../library/graphlib.rst:109
212+
msgid""
213+
"A :exc:`ValueError` will be raised if the sort has been started by "
214+
":meth:`~.static_order` or :meth:`~.get_ready`."
215+
msgstr""
216+
"如果排序是通过 :meth:`~.static_order` 方法或 "
217+
":meth:`~.get_ready`方法开始的,将会引发一个:exc:`ValueError`异常。"
218+
219+
#:../../library/graphlib.rst:114
220+
msgid""
221+
"``prepare()`` can now be called more than once as long as the sort has not "
222+
"started. Previously this raised :exc:`ValueError`."
223+
msgstr"现在,只要排序还没有开始,就可以多次调用 ``prepare()``。以前,这种情况下会引发异常:exc:`ValueError`。"
224+
225+
#:../../library/graphlib.rst:119
211226
msgid""
212227
"Returns ``True`` if more progress can be made and ``False`` otherwise. "
213228
"Progress can be made if cycles do not block the resolution and either there "
@@ -221,40 +236,40 @@ msgstr ""
221236
":meth:`TopologicalSorter.done` 的节点数量少于已被 :meth:`TopologicalSorter.get_ready`"
222237
" 所返回的节点数量则还可以取得进展。"
223238

224-
#:../../library/graphlib.rst:118
239+
#:../../library/graphlib.rst:126
225240
msgid""
226241
"The :meth:`~object.__bool__` method of this class defers to this function, "
227242
"so instead of::"
228243
msgstr"该类的 :meth:`~object.__bool__` 方法要使用此函数,因此除了::"
229244

230-
#:../../library/graphlib.rst:121
245+
#:../../library/graphlib.rst:129
231246
msgid""
232247
"if ts.is_active():\n"
233248
" ..."
234249
msgstr""
235250
"if ts.is_active():\n"
236251
" ..."
237252

238-
#:../../library/graphlib.rst:124
253+
#:../../library/graphlib.rst:132
239254
msgid"it is possible to simply do::"
240255
msgstr"可能会简单地执行::"
241256

242-
#:../../library/graphlib.rst:126
257+
#:../../library/graphlib.rst:134
243258
msgid""
244259
"if ts:\n"
245260
" ..."
246261
msgstr""
247262
"if ts:\n"
248263
" ..."
249264

250-
#:../../library/graphlib.rst:129../../library/graphlib.rst:152
265+
#:../../library/graphlib.rst:137../../library/graphlib.rst:160
251266
msgid""
252267
"Raises :exc:`ValueError` if called without calling "
253268
":meth:`~TopologicalSorter.prepare` previously."
254269
msgstr""
255270
"如果之前未调用 :meth:`~TopologicalSorter.prepare` 就调用此函数则会引发 :exc:`ValueError`。"
256271

257-
#:../../library/graphlib.rst:134
272+
#:../../library/graphlib.rst:142
258273
msgid""
259274
"Marks a set of nodes returned by :meth:`TopologicalSorter.get_ready` as "
260275
"processed, unblocking any successor of each node in *nodes* for being "
@@ -263,7 +278,7 @@ msgstr ""
263278
"将 :meth:`TopologicalSorter.get_ready` 所返回的节点集合标记为已处理,解除对 *nodes* "
264279
"中每个节点的后续节点的阻塞以便在将来通过对 :meth:`TopologicalSorter.get_ready` 的调用来返回它们。"
265280

266-
#:../../library/graphlib.rst:138
281+
#:../../library/graphlib.rst:146
267282
msgid""
268283
"Raises :exc:`ValueError` if any node in *nodes* has already been marked as "
269284
"processed by a previous call to this method or if a node was not added to "
@@ -275,7 +290,7 @@ msgstr ""
275290
"将一个节点添加到图中,如果未调用 :meth:`~TopologicalSorter.prepare` 即调用此方法或者如果节点尚未被 "
276291
":meth:`~TopologicalSorter.get_ready` 所返回则将引发 :exc:`ValueError`。"
277292

278-
#:../../library/graphlib.rst:146
293+
#:../../library/graphlib.rst:154
279294
msgid""
280295
"Returns a ``tuple`` with all the nodes that are ready. Initially it returns "
281296
"all nodes with no predecessors, and once those are marked as processed by "
@@ -287,7 +302,7 @@ msgstr ""
287302
":meth:`TopologicalSorter.done` 将它们标记为已处理,之后的调用将返回所有上级节点已被处理的新节点。 "
288303
"一旦无法再取得进展,则会返回空元组。"
289304

290-
#:../../library/graphlib.rst:157
305+
#:../../library/graphlib.rst:165
291306
msgid""
292307
"Returns an iterator object which will iterate over nodes in a topological "
293308
"order. When using this method, :meth:`~TopologicalSorter.prepare` and "
@@ -297,7 +312,7 @@ msgstr ""
297312
"返回一个迭代器,它将按照拓扑顺序来迭代所有节点。 当使用此方法时,:meth:`~TopologicalSorter.prepare` 和 "
298313
":meth:`~TopologicalSorter.done` 不应被调用。 此方法等价于::"
299314

300-
#:../../library/graphlib.rst:162
315+
#:../../library/graphlib.rst:170
301316
msgid""
302317
"def static_order(self):\n"
303318
" self.prepare()\n"
@@ -313,13 +328,13 @@ msgstr ""
313328
" yield from node_group\n"
314329
" self.done(*node_group)"
315330

316-
#:../../library/graphlib.rst:169
331+
#:../../library/graphlib.rst:177
317332
msgid""
318333
"The particular order that is returned may depend on the specific order in "
319334
"which the items were inserted in the graph. For example:"
320335
msgstr"所返回的特定顺序可能取决于条目被插入图中的顺序。 例如:"
321336

322-
#:../../library/graphlib.rst:172
337+
#:../../library/graphlib.rst:180
323338
msgid""
324339
">>> ts = TopologicalSorter()\n"
325340
">>> ts.add(3, 2, 1)\n"
@@ -345,7 +360,7 @@ msgstr ""
345360
">>> print([*ts2.static_order()])\n"
346361
"[0, 2, 1, 3]"
347362

348-
#:../../library/graphlib.rst:186
363+
#:../../library/graphlib.rst:194
349364
msgid""
350365
"This is due to the fact that\"0\" and\"2\" are in the same level in the "
351366
"graph (they would have been returned in the same call to "
@@ -355,19 +370,19 @@ msgstr ""
355370
"这是由于实际上\"0\"\"2\" 在图中的级别相同(它们将在对 :meth:`~TopologicalSorter.get_ready` "
356371
"的同一次调用中被返回) 并且它们之间的顺序是由插入顺序决定的。"
357372

358-
#:../../library/graphlib.rst:192
373+
#:../../library/graphlib.rst:200
359374
msgid"If any cycle is detected, :exc:`CycleError` will be raised."
360375
msgstr"如果检测到任何环,则将引发 :exc:`CycleError`。"
361376

362-
#:../../library/graphlib.rst:198
377+
#:../../library/graphlib.rst:206
363378
msgid"Exceptions"
364379
msgstr"异常"
365380

366-
#:../../library/graphlib.rst:199
381+
#:../../library/graphlib.rst:207
367382
msgid"The :mod:`graphlib` module defines the following exception classes:"
368383
msgstr":mod:`graphlib` 模块定义了以下异常类:"
369384

370-
#:../../library/graphlib.rst:203
385+
#:../../library/graphlib.rst:211
371386
msgid""
372387
"Subclass of :exc:`ValueError` raised by :meth:`TopologicalSorter.prepare` if"
373388
" cycles exist in the working graph. If multiple cycles exist, only one "
@@ -376,7 +391,7 @@ msgstr ""
376391
":exc:`ValueError` 的子类,当特定的图中存在环时将由 :meth:`TopologicalSorter.prepare` 引发。 "
377392
"如果存在多个环,则将只报告其中一个未定义的选项并将其包括在异常中。"
378393

379-
#:../../library/graphlib.rst:207
394+
#:../../library/graphlib.rst:215
380395
msgid""
381396
"The detected cycle can be accessed via the second element in the "
382397
":attr:`~BaseException.args` attribute of the exception instance and consists"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp