Skip to content

Commit ac945e9

Browse files
[po] auto sync
1 parent eda2ba0 commit ac945e9

File tree

5 files changed

+50
-8
lines changed

5 files changed

+50
-8
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.70%", "updated_at": "2025-05-31T10:55:35Z"}
1+
{"translation": "81.71%", "updated_at": "2025-06-01T13:04:55Z"}

extending/building.po

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#
66
# Translators:
77
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
8+
# Freesand Leo <yuqinju@163.com>, 2025
89
#
910
#, fuzzy
1011
msgid ""
@@ -13,7 +14,7 @@ msgstr ""
1314
"Report-Msgid-Bugs-To: \n"
1415
"POT-Creation-Date: 2025-05-30 14:58+0000\n"
1516
"PO-Revision-Date: 2025-05-08 05:09+0000\n"
16-
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
17+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
1718
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1819
"MIME-Version: 1.0\n"
1920
"Content-Type: text/plain; charset=UTF-8\n"
@@ -23,15 +24,15 @@ msgstr ""
2324

2425
#: ../../extending/building.rst:7
2526
msgid "Building C and C++ Extensions"
26-
msgstr "构建C/C++扩展"
27+
msgstr "构建 C/C++ 扩展"
2728

2829
#: ../../extending/building.rst:9
2930
msgid ""
3031
"A C extension for CPython is a shared library (e.g. a ``.so`` file on Linux,"
3132
" ``.pyd`` on Windows), which exports an *initialization function*."
3233
msgstr ""
33-
"一个CPython的C扩展是一个共享库(例如一个Linux上的 ``.so`` ,或者Windows上的 ``.pyd`` ),其会导出一个 "
34-
"*初始化函数* 。"
34+
"CPython 的 C 扩展是一个共享库 (例如 Linux 上的 ``.so``,或者 Windows上的 ``.pyd``),其会导出一个 "
35+
"*初始化函数*。"
3536

3637
#: ../../extending/building.rst:12
3738
msgid ""
@@ -64,6 +65,10 @@ msgid ""
6465
":samp:`PyInitU_{<name>}`, with ``<name>`` encoded using Python's *punycode* "
6566
"encoding with hyphens replaced by underscores. In Python::"
6667
msgstr ""
68+
"对于名称仅包含 ASCII 字符的模块,函数必须被命名为 :samp:`PyInit_{<name>}`,其中的 ``<name>`` "
69+
"将使用模块的名称来替换。 当使用 :ref:`multi-phase-initialization` 时,模块名称允许包含非 ASCII 字符。 "
70+
"在此情况下,初始化函数名称为 :samp:`PyInitU_{<name>}`,其中的 ``<name>`` 将使用 Python 的 "
71+
"*punycode* 编码格式来编码并将连字符替换为下划线。 在 Python 中::"
6772

6873
#: ../../extending/building.rst:32
6974
msgid ""

extending/embedding.po

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#
66
# Translators:
77
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
8+
# Freesand Leo <yuqinju@163.com>, 2025
89
#
910
#, fuzzy
1011
msgid ""
@@ -13,7 +14,7 @@ msgstr ""
1314
"Report-Msgid-Bugs-To: \n"
1415
"POT-Creation-Date: 2025-05-30 14:58+0000\n"
1516
"PO-Revision-Date: 2025-05-08 05:09+0000\n"
16-
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
17+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
1718
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1819
"MIME-Version: 1.0\n"
1920
"Content-Type: text/plain; charset=UTF-8\n"
@@ -604,6 +605,35 @@ msgid ""
604605
" return PyModuleDef_Init(&emb_module);\n"
605606
"}"
606607
msgstr ""
608+
"static int numargs=0;\n"
609+
"\n"
610+
"/* 返回应用程序命令行的参数数量 */\n"
611+
"static PyObject*\n"
612+
"emb_numargs(PyObject *self, PyObject *args)\n"
613+
"{\n"
614+
" if(!PyArg_ParseTuple(args, \":numargs\"))\n"
615+
" return NULL;\n"
616+
" return PyLong_FromLong(numargs);\n"
617+
"}\n"
618+
"\n"
619+
"static PyMethodDef emb_module_methods[] = {\n"
620+
" {\"numargs\", emb_numargs, METH_VARARGS,\n"
621+
" \"Return the number of arguments received by the process.\"},\n"
622+
" {NULL, NULL, 0, NULL}\n"
623+
"};\n"
624+
"\n"
625+
"static struct PyModuleDef emb_module = {\n"
626+
" .m_base = PyModuleDef_HEAD_INIT,\n"
627+
" .m_name = \"emb\",\n"
628+
" .m_size = 0,\n"
629+
" .m_methods = emb_module_methods,\n"
630+
"};\n"
631+
"\n"
632+
"static PyObject*\n"
633+
"PyInit_emb(void)\n"
634+
"{\n"
635+
" return PyModuleDef_Init(&emb_module);\n"
636+
"}"
607637

608638
#: ../../extending/embedding.rst:267
609639
msgid ""

extending/index.po

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#
66
# Translators:
77
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
8+
# Freesand Leo <yuqinju@163.com>, 2025
89
#
910
#, fuzzy
1011
msgid ""
@@ -13,7 +14,7 @@ msgstr ""
1314
"Report-Msgid-Bugs-To: \n"
1415
"POT-Creation-Date: 2025-05-30 14:58+0000\n"
1516
"PO-Revision-Date: 2025-05-08 05:09+0000\n"
16-
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
17+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
1718
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1819
"MIME-Version: 1.0\n"
1920
"Content-Type: text/plain; charset=UTF-8\n"
@@ -68,6 +69,8 @@ msgid ""
6869
" offer both simpler and more sophisticated approaches to creating C and C++ "
6970
"extensions for Python."
7071
msgstr ""
72+
"本指南仅介绍了作为此 CPython 版本的一部分提供的用于创建扩展的基本工具。 某些 :ref:`第三方工具 <c-api-tools>` "
73+
"提供了更简单或更复杂的方式来为 Python 创建 C 和 C++ 扩展。"
7174

7275
#: ../../extending/index.rst:35
7376
msgid "Creating extensions without third party tools"

howto/free-threading-extensions.po

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#
66
# Translators:
77
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
8+
# Freesand Leo <yuqinju@163.com>, 2025
89
#
910
#, fuzzy
1011
msgid ""
@@ -13,7 +14,7 @@ msgstr ""
1314
"Report-Msgid-Bugs-To: \n"
1415
"POT-Creation-Date: 2025-05-30 14:58+0000\n"
1516
"PO-Revision-Date: 2025-05-08 05:09+0000\n"
16-
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
17+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
1718
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1819
"MIME-Version: 1.0\n"
1920
"Content-Type: text/plain; charset=UTF-8\n"
@@ -498,6 +499,9 @@ msgid ""
498499
"free-threaded build if you set `CIBW_ENABLE to cpython-freethreading "
499500
"<https://cibuildwheel.pypa.io/en/stable/options/#enable>`_."
500501
msgstr ""
502+
"如果你设置了 `cpython-freethreading 的 CIBW_ENABLE "
503+
"<https://cibuildwheel.pypa.io/en/stable/options/#enable>`_ 则 "
504+
"`pypa/cibuildwheel <https://github.com/pypa/cibuildwheel>`_ 将支持自由线程构建版。"
501505

502506
#: ../../howto/free-threading-extensions.rst:255
503507
msgid "Limited C API and Stable ABI"

0 commit comments

Comments
 (0)