Skip to content

Commit ee8178d

Browse files
[po] auto sync
1 parent a39adae commit ee8178d

9 files changed

Lines changed: 12663 additions & 12591 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.02%", "updated_at": "2025-03-21T14:56:00Z"}
1+
{"translation": "81.04%", "updated_at": "2025-03-21T15:55:59Z"}

c-api/typeobj.po

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,8 @@ msgid ""
12071207
":file:`Include/cpython/object.h`. For convenience of reference, this "
12081208
"repeats the definition found there:"
12091209
msgstr ""
1210+
"针对 :c:type:`PyTypeObject` 的结构定义可以在 :file:`Include/cpython/object.h` 中找到。 "
1211+
"为了方便参考,这里复述了其中的定义:"
12101212

12111213
#: ../../c-api/typeobj.rst:481
12121214
msgid ""
@@ -1512,7 +1514,7 @@ msgstr ""
15121514
msgid ""
15131515
"This field should be accessed using the :c:func:`Py_SIZE()` and "
15141516
":c:func:`Py_SET_SIZE()` macros."
1515-
msgstr ""
1517+
msgstr "该字段应当使用 :c:func:`Py_SIZE()` 和 :c:func:`Py_SET_SIZE()` 宏来访问。"
15161518

15171519
#: ../../c-api/typeobj.rst:549
15181520
msgid "PyTypeObject Slots"
@@ -3883,6 +3885,17 @@ msgid ""
38833885
" PyErr_SetRaisedException(exc);\n"
38843886
"}"
38853887
msgstr ""
3888+
"static void\n"
3889+
"local_finalize(PyObject *self)\n"
3890+
"{\n"
3891+
" /* 保存当前异常,如果有的话。 */\n"
3892+
" PyObject *exc = PyErr_GetRaisedException();\n"
3893+
"\n"
3894+
" /* ... */\n"
3895+
"\n"
3896+
" /* 恢复保存的异常。 */\n"
3897+
" PyErr_SetRaisedException(exc);\n"
3898+
"}"
38863899

38873900
#: ../../c-api/typeobj.rst:2173
38883901
msgid ""

glossary.po

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1675,11 +1675,11 @@ msgstr ""
16751675

16761676
#: ../../glossary.rst:789
16771677
msgid "lexical analyzer"
1678-
msgstr ""
1678+
msgstr "lexical analyzer -- 词法分析器"
16791679

16801680
#: ../../glossary.rst:792
16811681
msgid "Formal name for the *tokenizer*; see :term:`token`."
1682-
msgstr ""
1682+
msgstr "*分词器* 的正式名称;参见 :term:`token`。"
16831683

16841684
#: ../../glossary.rst:793
16851685
msgid "list"
@@ -2740,12 +2740,13 @@ msgid ""
27402740
"<lexical>` (also called the *tokenizer*). Names, numbers, strings, "
27412741
"operators, newlines and similar are represented by tokens."
27422742
msgstr ""
2743+
"一个源代码小单元,由 :ref:`词法分析器 <lexical>` (或称 *分词器*) 生成。 名称、数字、字符串、运算符、换行符等均由词元来表示。"
27432744

27442745
#: ../../glossary.rst:1292
27452746
msgid ""
27462747
"The :mod:`tokenize` module exposes Python's lexical analyzer. The "
27472748
":mod:`token` module contains information on the various types of tokens."
2748-
msgstr ""
2749+
msgstr ":mod:`tokenize` 模块对外暴露了 Python 的词法分析器。 :mod:`token` 模块包含了有关各种词元类型的信息。"
27492750

27502751
#: ../../glossary.rst:1295
27512752
msgid "triple-quoted string"

0 commit comments

Comments
 (0)