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

Commiteda2ba0

Browse files
[po] auto sync
1 parent3304749 commiteda2ba0

File tree

11 files changed

+1183
-1093
lines changed

11 files changed

+1183
-1093
lines changed

‎.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation":"81.68%","updated_at":"2025-05-30T15:55:35Z"}
1+
{"translation":"81.70%","updated_at":"2025-05-31T10:55:35Z"}

‎c-api/allocation.po

Lines changed: 3 additions & 2 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:08+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"
@@ -108,7 +109,7 @@ msgstr ""
108109

109110
#:../../c-api/allocation.rst:79
110111
msgid":ref:`moduleobjects`"
111-
msgstr""
112+
msgstr":ref:`moduleobjects`"
112113

113114
#:../../c-api/allocation.rst:80
114115
msgid"To allocate and create extension modules."

‎c-api/code.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:08+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"
@@ -248,6 +249,8 @@ msgid ""
248249
"the destruction of *co* takes place, so the prior state of *co* can be "
249250
"inspected."
250251
msgstr""
252+
"如果 *event* 为 ``PY_CODE_EVENT_CREATE``,则回调会在 *co* 完全初始化之后被唤起。 在其他情况下,回调会在 "
253+
"*co* 的销毁执行之前被唤起,因此可以检查 *co* 在之前的状态。"
251254

252255
#:../../c-api/code.rst:189
253256
msgid""

‎c-api/function.po

Lines changed: 6 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:08+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"
@@ -234,6 +235,10 @@ msgid ""
234235
" behavior depending on optimization decisions, it does not change the "
235236
"semantics of the Python code being executed."
236237
msgstr""
238+
"如果 *event* 是 ``PyFunction_EVENT_CREATE``,则回调会在 *func* 完成初始化之后被唤起。 "
239+
"在其他情况下,回调会在对 *func* 的修改执行之前被唤起,这样就可以对 *func* 之前的状态进行检查。 "
240+
"如有可能函数对象的创建允许被运行时执行优化。 在此情况下将不发出任何事件。 "
241+
"虽然根据不同的优化决定这会产生可被观察到的运行时行为变化,但是它不会改变所执行的 Python 代码的语义。"
237242

238243
#:../../c-api/function.rst:180
239244
msgid""

‎c-api/intro.po

Lines changed: 14 additions & 2 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:08+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"
@@ -232,6 +233,17 @@ msgid ""
232233
" return PyModuleDef_Init(&spam_module);\n"
233234
"}"
234235
msgstr""
236+
"static struct PyModuleDef spam_module = {\n"
237+
" .m_base = PyModuleDef_HEAD_INIT,\n"
238+
" .m_name =\"spam\",\n"
239+
" ...\n"
240+
"};\n"
241+
"\n"
242+
"PyMODINIT_FUNC\n"
243+
"PyInit_spam(void)\n"
244+
"{\n"
245+
" return PyModuleDef_Init(&spam_module);\n"
246+
"}"
235247

236248
#:../../c-api/intro.rst:134
237249
msgid"Return the absolute value of ``x``."
@@ -1354,7 +1366,7 @@ msgstr "推荐的第三方工具"
13541366
msgid""
13551367
"The following third party tools offer both simpler and more sophisticated "
13561368
"approaches to creating C, C++ and Rust extensions for Python:"
1357-
msgstr""
1369+
msgstr"下列第三方工具提供了为 Python 创建 C, C++ 和 Rust 扩展的更简单或更复杂的方式:"
13581370

13591371
#:../../c-api/intro.rst:847
13601372
msgid"`Cython <https://cython.org/>`_"

‎extending/newtypes_tutorial.po

Lines changed: 54 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"
@@ -136,6 +137,58 @@ msgid ""
136137
" return PyModuleDef_Init(&custom_module);\n"
137138
"}\n"
138139
msgstr""
140+
"#define PY_SSIZE_T_CLEAN\n"
141+
"#include <Python.h>\n"
142+
"\n"
143+
"typedef struct {\n"
144+
" PyObject_HEAD\n"
145+
" /* 这里添加类型专属的字段。 */\n"
146+
"} CustomObject;\n"
147+
"\n"
148+
"static PyTypeObject CustomType = {\n"
149+
" .ob_base = PyVarObject_HEAD_INIT(NULL, 0)\n"
150+
" .tp_name =\"custom.Custom\",\n"
151+
" .tp_doc = PyDoc_STR(\"Custom objects\"),\n"
152+
" .tp_basicsize = sizeof(CustomObject),\n"
153+
" .tp_itemsize = 0,\n"
154+
" .tp_flags = Py_TPFLAGS_DEFAULT,\n"
155+
" .tp_new = PyType_GenericNew,\n"
156+
"};\n"
157+
"\n"
158+
"static int\n"
159+
"custom_module_exec(PyObject *m)\n"
160+
"{\n"
161+
" if (PyType_Ready(&CustomType) < 0) {\n"
162+
" return -1;\n"
163+
" }\n"
164+
"\n"
165+
" if (PyModule_AddObjectRef(m,\"Custom\", (PyObject *) &CustomType) < 0) {\n"
166+
" return -1;\n"
167+
" }\n"
168+
"\n"
169+
" return 0;\n"
170+
"}\n"
171+
"\n"
172+
"static PyModuleDef_Slot custom_module_slots[] = {\n"
173+
" {Py_mod_exec, custom_module_exec},\n"
174+
" // 使用静态类型时就使用这个\n"
175+
" {Py_mod_multiple_interpreters, Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED},\n"
176+
" {0, NULL}\n"
177+
"};\n"
178+
"\n"
179+
"static PyModuleDef custom_module = {\n"
180+
" .m_base = PyModuleDef_HEAD_INIT,\n"
181+
" .m_name =\"custom\",\n"
182+
" .m_doc =\"Example module that creates an extension type.\",\n"
183+
" .m_size = 0,\n"
184+
" .m_slots = custom_module_slots,\n"
185+
"};\n"
186+
"\n"
187+
"PyMODINIT_FUNC\n"
188+
"PyInit_custom(void)\n"
189+
"{\n"
190+
" return PyModuleDef_Init(&custom_module);\n"
191+
"}\n"
139192

140193
#:../../extending/newtypes_tutorial.rst:50
141194
msgid""

‎library/ctypes.po

Lines changed: 4 additions & 2 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"
@@ -3664,14 +3665,15 @@ msgstr "此函数会创建一个可变的字符缓冲区。 返回的对象是
36643665
msgid""
36653666
"If *size* is given (and not ``None``), it must be an :class:`int`. It "
36663667
"specifies the size of the returned array."
3667-
msgstr""
3668+
msgstr"如果给出了 *size* (并且不为 ``None``),则它必须是一个 :class:`int`。 它指明所返回数组的大小。"
36683669

36693670
#:../../library/ctypes.rst:1952
36703671
msgid""
36713672
"If the *init* argument is given, it must be :class:`bytes`. It is used to "
36723673
"initialize the array items. Bytes not initialized this way are set to zero "
36733674
"(NUL)."
36743675
msgstr""
3676+
"如果给出了 *init* 参数,则它必须为 :class:`bytes`。 它会被用于初始化数组项。 不按此方式初始化的字节串将被设为零 (NUL)。"
36753677

36763678
#:../../library/ctypes.rst:1956
36773679
msgid""

‎library/logging.handlers.po

Lines changed: 5 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"
@@ -504,7 +505,7 @@ msgstr "将记录输出到文件,以适应上文所描述的轮换。"
504505
msgid""
505506
"See if the supplied record would cause the file to exceed the configured "
506507
"size limit."
507-
msgstr""
508+
msgstr"确定所提供的记录是否会导致文件超出已配置的大小限制。"
508509

509510
#:../../library/logging.handlers.rst:362
510511
msgid"TimedRotatingFileHandler"
@@ -708,13 +709,13 @@ msgstr "将记录输出到文件,以适应上文所描述的轮换。"
708709
msgid""
709710
"Returns a list of filenames which should be deleted as part of rollover. "
710711
"These"
711-
msgstr""
712+
msgstr"返回一个由应当作为轮转的一部分被删除的文件名组成的列表。 这些"
712713

713714
#:../../library/logging.handlers.rst:469
714715
msgid""
715716
"See if enough time has passed for a rollover to occur and if it has, compute"
716717
" the next rollover time."
717-
msgstr""
718+
msgstr"确定是否经过了足够的时间使轮转应当发生,并在确实如此时计算下一次轮转的时间。"
718719

719720
#:../../library/logging.handlers.rst:475
720721
msgid"SocketHandler"

‎library/math.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ msgstr ":mod:`!math` --- 数学函数"
3030
msgid""
3131
"This module provides access to common mathematical functions and constants, "
3232
"including those defined by the C standard."
33-
msgstr""
33+
msgstr"该模块提供了对通用数学函数和常量的访问,包括由 C 标准所定义的。"
3434

3535
#:../../library/math.rst:16
3636
msgid""

‎library/multiprocessing.po

Lines changed: 6 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"
@@ -1817,6 +1818,8 @@ msgid ""
18171818
"frozen to produce an executable. (Has been tested with **py2exe**, "
18181819
"**PyInstaller** and **cx_Freeze**.)"
18191820
msgstr""
1821+
"增加对于使用 :mod:`multiprocessing` 的程序已被冻结以产生可执行文件的支持。 (针对 **py2exe**, "
1822+
"**PyInstaller** 和 **cx_Freeze** 时行了测试。)"
18201823

18211824
#:../../library/multiprocessing.rst:1048
18221825
msgid""
@@ -1858,6 +1861,8 @@ msgid ""
18581861
"interpreter (the program has not been frozen), then ``freeze_support()`` has"
18591862
" no effect."
18601863
msgstr""
1864+
"当启动方法不是 *spawn* 时调用 ``freeze_support()`` 不会有效果。 此外,如果该模块被 Python "
1865+
"解释器正常运行(程序未被冻结),则 ``freeze_support()`` 也不会有效果。"
18611866

18621867
#:../../library/multiprocessing.rst:1070
18631868
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp