Skip to content

Commit 840e305

Browse files
[po] auto sync
1 parent 84434d9 commit 840e305

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+12204
-2353
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "96.05%", "updated_at": "2024-08-31T10:57:04Z"}
1+
{"translation": "88.39%", "updated_at": "2024-08-31T11:57:13Z"}

c-api/exceptions.po

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# 文博 周 <zhouwenbonwpu@mail.nwpu.edu.cn>, 2021
1515
# Dai Xu <daixu61@hotmail.com>, 2022
1616
# cdarlint <cdarling@126.com>, 2022
17-
# Bryan不可思议, 2023
17+
# ProgramRipper, 2023
1818
# WH-2099 <wh2099@outlook.com>, 2023
1919
# jaystone776 <1732865113@qq.com>, 2023
2020
# 云line, 2023
@@ -25,7 +25,7 @@ msgid ""
2525
msgstr ""
2626
"Project-Id-Version: Python 3.13\n"
2727
"Report-Msgid-Bugs-To: \n"
28-
"POT-Creation-Date: 2024-05-11 18:37+0000\n"
28+
"POT-Creation-Date: 2024-08-31 10:59+0000\n"
2929
"PO-Revision-Date: 2021-06-28 00:48+0000\n"
3030
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n"
3131
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -85,13 +85,11 @@ msgstr ""
8585

8686
#: ../../c-api/exceptions.rst:37
8787
msgid ""
88-
"The error indicator is **not** the result of :func:`sys.exc_info()`. The "
88+
"The error indicator is **not** the result of :func:`sys.exc_info`. The "
8989
"former corresponds to an exception that is not yet caught (and is therefore "
9090
"still propagating), while the latter returns an exception after it is caught"
9191
" (and has therefore stopped propagating)."
9292
msgstr ""
93-
"错误指示器 **不是** :func:`sys.exc_info()` "
94-
"的执行结果。前者对应尚未捕获的异常(异常还在传播),而后者在捕获异常后返回这个异常(异常已经停止传播)。"
9593

9694
#: ../../c-api/exceptions.rst:44
9795
msgid "Printing and clearing"
@@ -596,6 +594,17 @@ msgstr "此函数会被需要捕获异常的代码,或需要临时保存和恢
596594
msgid "For example::"
597595
msgstr "例如:"
598596

597+
#: ../../c-api/exceptions.rst:451
598+
msgid ""
599+
"{\n"
600+
" PyObject *exc = PyErr_GetRaisedException();\n"
601+
"\n"
602+
" /* ... code that might produce other errors ... */\n"
603+
"\n"
604+
" PyErr_SetRaisedException(exc);\n"
605+
"}"
606+
msgstr ""
607+
599608
#: ../../c-api/exceptions.rst:459
600609
msgid ""
601610
":c:func:`PyErr_GetHandledException`, to save the exception currently being "
@@ -634,6 +643,18 @@ msgid ""
634643
"exceptions or save and restore the error indicator temporarily."
635644
msgstr "此函数通常只被需要捕获异常或临时保存和恢复错误指示符的旧式代码所使用。"
636645

646+
#: ../../c-api/exceptions.rst:495
647+
msgid ""
648+
"{\n"
649+
" PyObject *type, *value, *traceback;\n"
650+
" PyErr_Fetch(&type, &value, &traceback);\n"
651+
"\n"
652+
" /* ... code that might produce other errors ... */\n"
653+
"\n"
654+
" PyErr_Restore(type, value, traceback);\n"
655+
"}"
656+
msgstr ""
657+
637658
#: ../../c-api/exceptions.rst:509
638659
msgid "Use :c:func:`PyErr_SetRaisedException` instead."
639660
msgstr "请改用 :c:func:`PyErr_SetRaisedException`。"
@@ -691,6 +712,13 @@ msgstr ""
691712
"此函数 *不会* 隐式地在异常值上设置 :attr:`~BaseException.__traceback__` 属性。 "
692713
"如果想要适当地设置回溯,还需要以下附加代码片段::"
693714

715+
#: ../../c-api/exceptions.rst:550
716+
msgid ""
717+
"if (tb != NULL) {\n"
718+
" PyException_SetTraceback(val, tb);\n"
719+
"}"
720+
msgstr ""
721+
694722
#: ../../c-api/exceptions.rst:557
695723
msgid ""
696724
"Retrieve the active exception instance, as would be returned by "

c-api/import.po

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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-05-31 14:14+0000\n"
17+
"POT-Creation-Date: 2024-08-31 10:59+0000\n"
1818
"PO-Revision-Date: 2021-06-28 00:48+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"
@@ -51,7 +51,7 @@ msgstr ""
5151
"在导入锁被另一线程掌控时此函数会立即失败。 但是从 Python 3.3 "
5252
"起,锁方案在大多数情况下都已切换为针对每个模块加锁,所以此函数的特殊行为已无必要。"
5353

54-
#: ../../c-api/import.rst:30
54+
#: ../../c-api/import.rst:29
5555
msgid "Use :c:func:`PyImport_ImportModule` instead."
5656
msgstr "使用 :c:func:`PyImport_ImportModule` 来代替。"
5757

@@ -277,9 +277,9 @@ msgstr ""
277277

278278
#: ../../c-api/import.rst:192
279279
msgid ""
280-
"Uses :func:`!imp.source_from_cache()` in calculating the source path if only"
281-
" the bytecode path is provided."
282-
msgstr "如果只提供了字节码路径则会使用 :func:`!imp.source_from_cache()` 来计算源路径。"
280+
"Uses :func:`!imp.source_from_cache` in calculating the source path if only "
281+
"the bytecode path is provided."
282+
msgstr ""
283283

284284
#: ../../c-api/import.rst:195
285285
msgid "No longer uses the removed :mod:`!imp` module."
@@ -370,6 +370,16 @@ msgstr ""
370370
"这是针对已冻结模块描述器的结构类型定义,与由 :program:`freeze` 工具所生成的一致 (请参看 Python 源代码发行版中的 "
371371
":file:`Tools/freeze/`)。 其定义可在 :file:`Include/import.h` 中找到::"
372372

373+
#: ../../c-api/import.rst:270
374+
msgid ""
375+
"struct _frozen {\n"
376+
" const char *name;\n"
377+
" const unsigned char *code;\n"
378+
" int size;\n"
379+
" bool is_package;\n"
380+
"};"
381+
msgstr ""
382+
373383
#: ../../c-api/import.rst:277
374384
msgid ""
375385
"The new ``is_package`` field indicates whether the module is a package or "

deprecations/index.po

Lines changed: 3 additions & 7 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: 2024-08-30 14:16+0000\n"
16+
"POT-Creation-Date: 2024-08-31 10:59+0000\n"
1717
"PO-Revision-Date: 2024-07-29 04:07+0000\n"
1818
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n"
1919
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -308,14 +308,10 @@ msgstr ""
308308
msgid ""
309309
":class:`locale`: :func:`locale.getdefaultlocale` was deprecated in Python "
310310
"3.11 and originally planned for removal in Python 3.13 (:gh:`90817`), but "
311-
"removal has been postponed to Python 3.15. Use :func:`locale.setlocale()`, "
312-
":func:`locale.getencoding()` and :func:`locale.getlocale()` instead. "
311+
"removal has been postponed to Python 3.15. Use :func:`locale.setlocale`, "
312+
":func:`locale.getencoding` and :func:`locale.getlocale` instead. "
313313
"(Contributed by Hugo van Kemenade in :gh:`111187`.)"
314314
msgstr ""
315-
":class:`locale`: :func:`locale.getdefaultlocale` 在 Python 3.11 中已被弃用并且原计划在 "
316-
"Python 3.13 中移除 (:gh:`90817`),但移除时间已被推迟至 Python 3.15。 请改用 "
317-
":func:`locale.setlocale()`, :func:`locale.getencoding()` 和 "
318-
":func:`locale.getlocale()`。 (由 Hugo van Kemenade 在 :gh:`111187` 中贡献。)"
319315

320316
#: ../../deprecations/pending-removal-in-3.15.rst:16
321317
msgid ""

deprecations/pending-removal-in-3.13.po

Lines changed: 2 additions & 6 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: 2024-08-16 14:15+0000\n"
14+
"POT-Creation-Date: 2024-08-31 10:59+0000\n"
1515
"PO-Revision-Date: 2024-07-26 14:16+0000\n"
1616
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -187,12 +187,8 @@ msgstr "``read_text()``"
187187

188188
#: ../../deprecations/pending-removal-in-3.13.rst:51
189189
msgid ""
190-
"Use :func:`importlib.resources.files()` instead. Refer to `importlib-"
190+
"Use :func:`importlib.resources.files` instead. Refer to `importlib-"
191191
"resources: Migrating from Legacy <https://importlib-"
192192
"resources.readthedocs.io/en/latest/using.html#migrating-from-legacy>`_ "
193193
"(:gh:`106531`)"
194194
msgstr ""
195-
"请改用 :func:`importlib.resources.files()`。 参见 `importlib-resources: Migrating "
196-
"from Legacy <https://importlib-"
197-
"resources.readthedocs.io/en/latest/using.html#migrating-from-legacy>`_ "
198-
"(:gh:`106531`)"

deprecations/pending-removal-in-3.15.po

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.13\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2024-08-16 14:15+0000\n"
15+
"POT-Creation-Date: 2024-08-31 10:59+0000\n"
1616
"PO-Revision-Date: 2024-07-20 00:54+0000\n"
1717
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n"
1818
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -41,14 +41,10 @@ msgstr ""
4141
msgid ""
4242
":class:`locale`: :func:`locale.getdefaultlocale` was deprecated in Python "
4343
"3.11 and originally planned for removal in Python 3.13 (:gh:`90817`), but "
44-
"removal has been postponed to Python 3.15. Use :func:`locale.setlocale()`, "
45-
":func:`locale.getencoding()` and :func:`locale.getlocale()` instead. "
44+
"removal has been postponed to Python 3.15. Use :func:`locale.setlocale`, "
45+
":func:`locale.getencoding` and :func:`locale.getlocale` instead. "
4646
"(Contributed by Hugo van Kemenade in :gh:`111187`.)"
4747
msgstr ""
48-
":class:`locale`: :func:`locale.getdefaultlocale` 在 Python 3.11 中已被弃用并且原计划在 "
49-
"Python 3.13 中移除 (:gh:`90817`),但移除时间已被推迟至 Python 3.15。 请改用 "
50-
":func:`locale.setlocale()`, :func:`locale.getencoding()` 和 "
51-
":func:`locale.getlocale()`。 (由 Hugo van Kemenade 在 :gh:`111187` 中贡献。)"
5248

5349
#: ../../deprecations/pending-removal-in-3.15.rst:16
5450
msgid ""

0 commit comments

Comments
 (0)