Skip to content

Commit 71fdcc5

Browse files
[po] auto sync
1 parent 5ef1654 commit 71fdcc5

File tree

15 files changed

+1332
-1136
lines changed

15 files changed

+1332
-1136
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.37%", "updated_at": "2025-04-18T02:21:45Z"}
1+
{"translation": "81.33%", "updated_at": "2025-04-18T14:56:01Z"}

c-api/gcsupport.po

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ msgid ""
1313
msgstr ""
1414
"Project-Id-Version: Python 3.13\n"
1515
"Report-Msgid-Bugs-To: \n"
16-
"POT-Creation-Date: 2025-01-17 14:16+0000\n"
16+
"POT-Creation-Date: 2025-04-18 14:18+0000\n"
1717
"PO-Revision-Date: 2021-06-28 00:48+0000\n"
1818
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
1919
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -424,10 +424,7 @@ msgstr "垃圾回收在运行期间被禁用。 在回调中显式地运行回
424424
msgid ""
425425
"Type of the visitor function to be passed to "
426426
":c:func:`PyUnstable_GC_VisitObjects`. *arg* is the same as the *arg* passed "
427-
"to ``PyUnstable_GC_VisitObjects``. Return ``0`` to continue iteration, "
428-
"return ``1`` to stop iteration. Other return values are reserved for now so "
427+
"to ``PyUnstable_GC_VisitObjects``. Return ``1`` to continue iteration, "
428+
"return ``0`` to stop iteration. Other return values are reserved for now so "
429429
"behavior on returning anything else is undefined."
430430
msgstr ""
431-
"要传给 :c:func:`PyUnstable_GC_VisitObjects` 的访问者函数的类型。 *arg* 与传给 "
432-
"``PyUnstable_GC_VisitObjects`` 的 *arg* 相同。 返回 ``0`` 以继续迭代,返回 ``1`` 以停止迭代。 "
433-
"其他返回值目前被保留因此返回任何其他值的行为都是未定义的。"

c-api/typeobj.po

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ msgid ""
2626
msgstr ""
2727
"Project-Id-Version: Python 3.13\n"
2828
"Report-Msgid-Bugs-To: \n"
29-
"POT-Creation-Date: 2025-03-21 14:18+0000\n"
29+
"POT-Creation-Date: 2025-04-18 14:18+0000\n"
3030
"PO-Revision-Date: 2021-06-28 00:50+0000\n"
3131
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
3232
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -1627,14 +1627,9 @@ msgid ""
16271627
"field. Note that the :c:member:`~PyVarObject.ob_size` field may later be "
16281628
"used for other purposes. For example, :py:type:`int` instances use the bits "
16291629
"of :c:member:`~PyVarObject.ob_size` in an implementation-defined way; the "
1630-
"underlying storage and its size should be acessed using "
1630+
"underlying storage and its size should be accessed using "
16311631
":c:func:`PyLong_Export`."
16321632
msgstr ""
1633-
":c:func:`PyObject_NewVar` 等函数接受 N 值作为参数,并将其保存在实例的 "
1634-
":c:member:`~PyVarObject.ob_size` 字段中。 请注意在此之后 "
1635-
":c:member:`~PyVarObject.ob_size` 字段可能还有其他用处。 例如,:py:type:`int` "
1636-
"实例会以具体实现所定义的方式来使用 :c:member:`~PyVarObject.ob_size` 的比特位;下层的存储及其大小应当使用 "
1637-
":c:func:`PyLong_Export` 来访问。"
16381633

16391634
#: ../../c-api/typeobj.rst:619
16401635
msgid ""

howto/perf_profiling.po

Lines changed: 51 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.13\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-03-28 14:18+0000\n"
14+
"POT-Creation-Date: 2025-04-18 14:18+0000\n"
1515
"PO-Revision-Date: 2023-05-24 13:07+0000\n"
1616
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -505,17 +505,54 @@ msgstr ""
505505

506506
#: ../../howto/perf_profiling.rst:257
507507
msgid ""
508-
"Notice that when using ``--call-graph dwarf`` the ``perf`` tool will take "
509-
"snapshots of the stack of the process being profiled and save the "
510-
"information in the ``perf.data`` file. By default the size of the stack dump"
511-
" is 8192 bytes but the user can change the size by passing the size after "
512-
"comma like ``--call-graph dwarf,4096``. The size of the stack dump is "
513-
"important because if the size is too small ``perf`` will not be able to "
514-
"unwind the stack and the output will be incomplete. On the other hand, if "
515-
"the size is too big, then ``perf`` won't be able to sample the process as "
516-
"frequently as it would like as the overhead will be higher."
508+
"When using ``--call-graph dwarf``, the ``perf`` tool will take snapshots of "
509+
"the stack of the process being profiled and save the information in the "
510+
"``perf.data`` file. By default, the size of the stack dump is 8192 bytes, "
511+
"but you can change the size by passing it after a comma like ``--call-graph "
512+
"dwarf,16384``."
513+
msgstr ""
514+
515+
#: ../../howto/perf_profiling.rst:263
516+
msgid ""
517+
"The size of the stack dump is important because if the size is too small "
518+
"``perf`` will not be able to unwind the stack and the output will be "
519+
"incomplete. On the other hand, if the size is too big, then ``perf`` won't "
520+
"be able to sample the process as frequently as it would like as the overhead"
521+
" will be higher."
522+
msgstr ""
523+
524+
#: ../../howto/perf_profiling.rst:269
525+
msgid ""
526+
"The stack size is particularly important when profiling Python code compiled"
527+
" with low optimization levels (like ``-O0``), as these builds tend to have "
528+
"larger stack frames. If you are compiling Python with ``-O0`` and not seeing"
529+
" Python functions in your profiling output, try increasing the stack dump "
530+
"size to 65528 bytes (the maximum)::"
531+
msgstr ""
532+
533+
#: ../../howto/perf_profiling.rst:275
534+
msgid ""
535+
"$ perf record -F 9999 -g -k 1 --call-graph dwarf,65528 -o perf.data python "
536+
"-Xperf_jit my_script.py"
537+
msgstr ""
538+
539+
#: ../../howto/perf_profiling.rst:277
540+
msgid "Different compilation flags can significantly impact stack sizes:"
541+
msgstr ""
542+
543+
#: ../../howto/perf_profiling.rst:279
544+
msgid ""
545+
"Builds with ``-O0`` typically have much larger stack frames than those with "
546+
"``-O1`` or higher"
547+
msgstr ""
548+
549+
#: ../../howto/perf_profiling.rst:280
550+
msgid ""
551+
"Adding optimizations (``-O1``, ``-O2``, etc.) typically reduces stack size"
552+
msgstr ""
553+
554+
#: ../../howto/perf_profiling.rst:281
555+
msgid ""
556+
"Frame pointers (``-fno-omit-frame-pointer``) generally provide more reliable"
557+
" stack unwinding"
517558
msgstr ""
518-
"请注意当使用 ``--call-graph dwarf`` 时 ``perf`` 工具将保存被分析的进程栈的快照并将信息保存到 "
519-
"``perf.data`` 文件中。 在默认情况下栈转储数据的大小是 8192 字节但用户可以通过在逗号后传入大小值例如 ``--call-graph "
520-
"dwarf,4096`` 来改变这个大小。 栈转储数据的大小很重要因为如果这个大小过小则 ``perf`` 将无法回撤栈而输出将是不完整的。 "
521-
"另一方面,如果这个大小过大,则 ``perf`` 将无法足够频繁地对进程执行采样而导致更高的开销。"

library/ast.po

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ msgid ""
2222
msgstr ""
2323
"Project-Id-Version: Python 3.13\n"
2424
"Report-Msgid-Bugs-To: \n"
25-
"POT-Creation-Date: 2025-01-03 14:16+0000\n"
25+
"POT-Creation-Date: 2025-04-18 14:18+0000\n"
2626
"PO-Revision-Date: 2021-06-28 00:54+0000\n"
2727
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
2828
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -2208,7 +2208,7 @@ msgstr "一个 ``while`` 循环。 ``test`` 保存条件,如一个 :class:`Com
22082208

22092209
#: ../../library/ast.rst:1186
22102210
msgid ""
2211-
">> print(ast.dump(ast.parse(\"\"\"\n"
2211+
">>> print(ast.dump(ast.parse(\"\"\"\n"
22122212
"... while x:\n"
22132213
"... ...\n"
22142214
"... else:\n"
@@ -2225,22 +2225,6 @@ msgid ""
22252225
" Expr(\n"
22262226
" value=Constant(value=Ellipsis))])])"
22272227
msgstr ""
2228-
">> print(ast.dump(ast.parse(\"\"\"\n"
2229-
"... while x:\n"
2230-
"... ...\n"
2231-
"... else:\n"
2232-
"... ...\n"
2233-
"... \"\"\"), indent=4))\n"
2234-
"Module(\n"
2235-
" body=[\n"
2236-
" While(\n"
2237-
" test=Name(id='x', ctx=Load()),\n"
2238-
" body=[\n"
2239-
" Expr(\n"
2240-
" value=Constant(value=Ellipsis))],\n"
2241-
" orelse=[\n"
2242-
" Expr(\n"
2243-
" value=Constant(value=Ellipsis))])])"
22442228

22452229
#: ../../library/ast.rst:1209
22462230
msgid "The ``break`` and ``continue`` statements."

library/asyncio-task.po

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ msgid ""
2222
msgstr ""
2323
"Project-Id-Version: Python 3.13\n"
2424
"Report-Msgid-Bugs-To: \n"
25-
"POT-Creation-Date: 2025-03-21 14:18+0000\n"
25+
"POT-Creation-Date: 2025-04-18 14:18+0000\n"
2626
"PO-Revision-Date: 2021-06-28 00:55+0000\n"
2727
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
2828
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -2193,12 +2193,18 @@ msgstr "请求取消 Task 对象。"
21932193

21942194
#: ../../library/asyncio-task.rst:1339
21952195
msgid ""
2196-
"This arranges for a :exc:`CancelledError` exception to be thrown into the "
2197-
"wrapped coroutine on the next cycle of the event loop."
2198-
msgstr "这将安排在下一轮事件循环中抛出一个 :exc:`CancelledError` 异常给被封包的协程。"
2196+
"If the Task is already *done* or *cancelled*, return ``False``, otherwise, "
2197+
"return ``True``."
2198+
msgstr ""
21992199

22002200
#: ../../library/asyncio-task.rst:1342
22012201
msgid ""
2202+
"The method arranges for a :exc:`CancelledError` exception to be thrown into "
2203+
"the wrapped coroutine on the next cycle of the event loop."
2204+
msgstr ""
2205+
2206+
#: ../../library/asyncio-task.rst:1345
2207+
msgid ""
22022208
"The coroutine then has a chance to clean up or even deny the request by "
22032209
"suppressing the exception with a :keyword:`try` ... ... ``except "
22042210
"CancelledError`` ... :keyword:`finally` block. Therefore, unlike "
@@ -2213,22 +2219,22 @@ msgstr ""
22132219
":meth:`Task.cancel` 不保证 Task 会被取消,虽然完全抑制撤销并不常见也很不建议这样做。 "
22142220
"但是如果协程决定要抑制撤销,那么它需要额外调用 :meth:`Task.uncancel` 来捕获异常。"
22152221

2216-
#: ../../library/asyncio-task.rst:1352
2222+
#: ../../library/asyncio-task.rst:1355
22172223
msgid "Added the *msg* parameter."
22182224
msgstr "增加了 *msg* 形参。"
22192225

2220-
#: ../../library/asyncio-task.rst:1355
2226+
#: ../../library/asyncio-task.rst:1358
22212227
msgid ""
22222228
"The ``msg`` parameter is propagated from cancelled task to its awaiter."
22232229
msgstr "``msg`` 形参将从被取消的任务传播到其等待方。"
22242230

2225-
#: ../../library/asyncio-task.rst:1360
2231+
#: ../../library/asyncio-task.rst:1363
22262232
msgid ""
22272233
"The following example illustrates how coroutines can intercept the "
22282234
"cancellation request::"
22292235
msgstr "以下示例演示了协程是如何侦听取消请求的::"
22302236

2231-
#: ../../library/asyncio-task.rst:1363
2237+
#: ../../library/asyncio-task.rst:1366
22322238
msgid ""
22332239
"async def cancel_me():\n"
22342240
" print('cancel_me(): before sleep')\n"
@@ -2298,11 +2304,11 @@ msgstr ""
22982304
"# cancel_me(): after sleep\n"
22992305
"# main(): cancel_me is cancelled now"
23002306

2301-
#: ../../library/asyncio-task.rst:1399
2307+
#: ../../library/asyncio-task.rst:1402
23022308
msgid "Return ``True`` if the Task is *cancelled*."
23032309
msgstr "如果 Task 对象 *被取消* 则返回 ``True``。"
23042310

2305-
#: ../../library/asyncio-task.rst:1401
2311+
#: ../../library/asyncio-task.rst:1404
23062312
msgid ""
23072313
"The Task is *cancelled* when the cancellation was requested with "
23082314
":meth:`cancel` and the wrapped coroutine propagated the "
@@ -2311,21 +2317,21 @@ msgstr ""
23112317
"当使用 :meth:`cancel` 发出取消请求时 Task 会被 *取消*,其封包的协程将传播被抛入的 :exc:`CancelledError` "
23122318
"异常。"
23132319

2314-
#: ../../library/asyncio-task.rst:1407
2320+
#: ../../library/asyncio-task.rst:1410
23152321
msgid "Decrement the count of cancellation requests to this Task."
23162322
msgstr "递减对此任务的取消请求计数。"
23172323

2318-
#: ../../library/asyncio-task.rst:1409
2324+
#: ../../library/asyncio-task.rst:1412
23192325
msgid "Returns the remaining number of cancellation requests."
23202326
msgstr "返回剩余的取消请求数量。"
23212327

2322-
#: ../../library/asyncio-task.rst:1411
2328+
#: ../../library/asyncio-task.rst:1414
23232329
msgid ""
23242330
"Note that once execution of a cancelled task completed, further calls to "
23252331
":meth:`uncancel` are ineffective."
23262332
msgstr "请注意一旦被取消的任务执行完成,继续调用 :meth:`uncancel` 将是低效的。"
23272333

2328-
#: ../../library/asyncio-task.rst:1416
2334+
#: ../../library/asyncio-task.rst:1419
23292335
msgid ""
23302336
"This method is used by asyncio's internals and isn't expected to be used by "
23312337
"end-user code. In particular, if a Task gets successfully uncancelled, this"
@@ -2336,7 +2342,7 @@ msgstr ""
23362342
"此方法是供 asyncio 内部使用而不应被最终用户代码所使用。 特别地,在一个 Task 成功地保持未取消状态的时候使用,这可以允许结构化的并发元素如"
23372343
" :ref:`taskgroups` 和 :func:`asyncio.timeout` 继续运行,将取消操作隔离在相应的结构化代码块中。 例如::"
23382344

2339-
#: ../../library/asyncio-task.rst:1423
2345+
#: ../../library/asyncio-task.rst:1426
23402346
msgid ""
23412347
"async def make_request_with_timeout():\n"
23422348
" try:\n"
@@ -2360,7 +2366,7 @@ msgstr ""
23602366
" # 不受超时影响的外层代码:\n"
23612367
" await unrelated_code()"
23622368

2363-
#: ../../library/asyncio-task.rst:1434
2369+
#: ../../library/asyncio-task.rst:1437
23642370
msgid ""
23652371
"While the block with ``make_request()`` and ``make_another_request()`` might"
23662372
" get cancelled due to the timeout, ``unrelated_code()`` should continue "
@@ -2372,14 +2378,14 @@ msgstr ""
23722378
"``unrelated_code()`` 应当在超时的情况下继续运行。 这是通过 :meth:`uncancel` 实现的。 "
23732379
":class:`TaskGroup` 上下文管理器也会以类似的方式来使用 :func:`uncancel`。"
23742380

2375-
#: ../../library/asyncio-task.rst:1440
2381+
#: ../../library/asyncio-task.rst:1443
23762382
msgid ""
23772383
"If end-user code is, for some reason, suppressing cancellation by catching "
23782384
":exc:`CancelledError`, it needs to call this method to remove the "
23792385
"cancellation state."
23802386
msgstr "如果最终用户代码出于某种原因通过捕获 :exc:`CancelledError` 抑制撤销操作,那么它需要调用此方法来移除撤销状态。"
23812387

2382-
#: ../../library/asyncio-task.rst:1444
2388+
#: ../../library/asyncio-task.rst:1447
23832389
msgid ""
23842390
"When this method decrements the cancellation count to zero, the method "
23852391
"checks if a previous :meth:`cancel` call had arranged for "
@@ -2390,17 +2396,17 @@ msgstr ""
23902396
"当该方法将取消计数递减至零,该方法会检查之前的 :meth:`cancel` 调用是否已安排将 :exc:`CancelledError` "
23912397
"抛出到任务中。 如果尚未抛出,则该安排将被撤销(通过重置内部的 ``_must_cancel`` 旗标 )。"
23922398

2393-
#: ../../library/asyncio-task.rst:1450
2399+
#: ../../library/asyncio-task.rst:1453
23942400
msgid "Changed to rescind pending cancellation requests upon reaching zero."
23952401
msgstr "更改为在到达零值时撤回待处理的取消请求。"
23962402

2397-
#: ../../library/asyncio-task.rst:1455
2403+
#: ../../library/asyncio-task.rst:1458
23982404
msgid ""
23992405
"Return the number of pending cancellation requests to this Task, i.e., the "
24002406
"number of calls to :meth:`cancel` less the number of :meth:`uncancel` calls."
24012407
msgstr "返回对此 Task 的挂起请求次数,即对 :meth:`cancel` 的调用次数减去 :meth:`uncancel` 的调用次数。"
24022408

2403-
#: ../../library/asyncio-task.rst:1459
2409+
#: ../../library/asyncio-task.rst:1462
24042410
msgid ""
24052411
"Note that if this number is greater than zero but the Task is still "
24062412
"executing, :meth:`cancelled` will still return ``False``. This is because "
@@ -2411,7 +2417,7 @@ msgstr ""
24112417
"请注意如果该数字大于零但相应 Task 仍在执行,:meth:`cancelled` 仍将返回 ``False``。 这是因此该数字可通过调用 "
24122418
":meth:`uncancel` 来减少,这会导致任务在取消请求降到零时尚未被取消。"
24132419

2414-
#: ../../library/asyncio-task.rst:1465
2420+
#: ../../library/asyncio-task.rst:1468
24152421
msgid ""
24162422
"This method is used by asyncio's internals and isn't expected to be used by "
24172423
"end-user code. See :meth:`uncancel` for more details."

library/codecs.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2024, Python Software Foundation
2+
# Copyright (C) 2001-2025, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
@@ -14,7 +14,7 @@ msgid ""
1414
msgstr ""
1515
"Project-Id-Version: Python 3.13\n"
1616
"Report-Msgid-Bugs-To: \n"
17-
"POT-Creation-Date: 2024-10-11 14:17+0000\n"
17+
"POT-Creation-Date: 2025-04-18 14:18+0000\n"
1818
"PO-Revision-Date: 2021-06-28 00:56+0000\n"
1919
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n"
2020
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -1755,8 +1755,8 @@ msgstr "855, IBM855"
17551755

17561756
#: ../../library/codecs.rst:1106 ../../library/codecs.rst:1154
17571757
#: ../../library/codecs.rst:1219 ../../library/codecs.rst:1256
1758-
msgid "Bulgarian, Byelorussian, Macedonian, Russian, Serbian"
1759-
msgstr "保加利亚语,白俄罗斯语,马其顿语,俄语,塞尔维亚语"
1758+
msgid "Belarusian, Bulgarian, Macedonian, Russian, Serbian"
1759+
msgstr ""
17601760

17611761
#: ../../library/codecs.rst:1109
17621762
msgid "cp856"

0 commit comments

Comments
 (0)