Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 20cba9c

Browse files
[po] auto sync
1 parent 68da026 commit 20cba9c

37 files changed

Lines changed: 2521 additions & 2528 deletions

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "91.05%", "updated_at": "2024-01-20T11:41:14Z"}
1+
{"translation": "90.73%", "updated_at": "2024-01-26T17:41:42Z"}

c-api/file.po

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.11\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-01-12 16:53+0000\n"
14+
"POT-Creation-Date: 2024-01-26 16:43+0000\n"
1515
"PO-Revision-Date: 2023-05-24 02:08+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2024\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -101,30 +101,31 @@ msgid ""
101101
msgstr "重写 :func:`io.open_code` 的正常行为,将其形参通过所提供的处理程序来传递。"
102102

103103
#: ../../c-api/file.rst:68
104+
msgid "The handler is a function of type:"
105+
msgstr ""
106+
107+
#: ../../c-api/file.rst:72
104108
msgid ""
105-
"The handler is a function of type :c:expr:`PyObject *(\\*)(PyObject *path, "
106-
"void *userData)`, where *path* is guaranteed to be "
107-
":c:type:`PyUnicodeObject`."
109+
"Equivalent of :c:expr:`PyObject *(\\*)(PyObject *path, void *userData)`, "
110+
"where *path* is guaranteed to be :c:type:`PyUnicodeObject`."
108111
msgstr ""
109-
"处理句柄是一个类型为 :c:expr:`PyObject *(\\*)(PyObject *path, void *userData)` 的函数,其中 "
110-
"*path* 会确保为 :c:type:`PyUnicodeObject`。"
111112

112-
#: ../../c-api/file.rst:71
113+
#: ../../c-api/file.rst:76
113114
msgid ""
114115
"The *userData* pointer is passed into the hook function. Since hook "
115116
"functions may be called from different runtimes, this pointer should not "
116117
"refer directly to Python state."
117118
msgstr "*userData* 指针会被传入钩子函数。 因于钩子函数可能由不同的运行时调用,该指针不应直接指向 Python 状态。"
118119

119-
#: ../../c-api/file.rst:75
120+
#: ../../c-api/file.rst:80
120121
msgid ""
121122
"As this hook is intentionally used during import, avoid importing new "
122123
"modules during its execution unless they are known to be frozen or available"
123124
" in ``sys.modules``."
124125
msgstr ""
125126
"鉴于这个钩子专门在导入期间使用的,请避免在新模块执行期间进行导入操作,除非已知它们为冻结状态或者是在 ``sys.modules`` 中可用。"
126127

127-
#: ../../c-api/file.rst:79
128+
#: ../../c-api/file.rst:84
128129
msgid ""
129130
"Once a hook has been set, it cannot be removed or replaced, and later calls "
130131
"to :c:func:`PyFile_SetOpenCodeHook` will fail. On failure, the function "
@@ -133,17 +134,17 @@ msgstr ""
133134
"一旦钩子被设定,它就不能被移除或替换,之后对 :c:func:`PyFile_SetOpenCodeHook` "
134135
"的调用也将失败,如果解释器已经被初始化,函数将返回 -1 并设置一个异常。"
135136

136-
#: ../../c-api/file.rst:83
137+
#: ../../c-api/file.rst:88
137138
msgid "This function is safe to call before :c:func:`Py_Initialize`."
138139
msgstr "此函数可以安全地在 :c:func:`Py_Initialize` 之前调用。"
139140

140-
#: ../../c-api/file.rst:85
141+
#: ../../c-api/file.rst:90
141142
msgid ""
142143
"Raises an :ref:`auditing event <auditing>` ``setopencodehook`` with no "
143144
"arguments."
144145
msgstr "引发一个 :ref:`审计事件 <auditing>` ``setopencodehook``,不附带任何参数。"
145146

146-
#: ../../c-api/file.rst:95
147+
#: ../../c-api/file.rst:100
147148
msgid ""
148149
"Write object *obj* to file object *p*. The only supported flag for *flags* "
149150
"is :c:macro:`Py_PRINT_RAW`; if given, the :func:`str` of the object is "
@@ -153,7 +154,7 @@ msgstr ""
153154
"将对象 *obj* 写入文件对象 *p*。 *flags* 唯一支持的旗标是 :c:macro:`Py_PRINT_RAW`;如果给定,则写入对象的 "
154155
":func:`str` 而不是 :func:`repr`。 成功时返回 ``0``,失败时返回 ``-1``;将设置适当的异常。"
155156

156-
#: ../../c-api/file.rst:103
157+
#: ../../c-api/file.rst:108
157158
msgid ""
158159
"Write string *s* to file object *p*. Return ``0`` on success or ``-1`` on "
159160
"failure; the appropriate exception will be set."
@@ -171,6 +172,6 @@ msgstr "文件"
171172
msgid "EOFError (built-in exception)"
172173
msgstr "EOFError (内置异常)"
173174

174-
#: ../../c-api/file.rst:93
175+
#: ../../c-api/file.rst:98
175176
msgid "Py_PRINT_RAW"
176177
msgstr "Py_PRINT_RAW"

c-api/memory.po

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2023, Python Software Foundation
2+
# Copyright (C) 2001-2024, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.11\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2023-10-27 15:22+0000\n"
14+
"POT-Creation-Date: 2024-01-26 16:43+0000\n"
1515
"PO-Revision-Date: 2023-05-24 02:09+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2023\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -384,21 +384,17 @@ msgstr "以下面向类型的宏为方便而提供。 注意 *TYPE* 可以指任
384384
#: ../../c-api/memory.rst:269
385385
msgid ""
386386
"Same as :c:func:`PyMem_Malloc`, but allocates ``(n * sizeof(TYPE))`` bytes "
387-
"of memory. Returns a pointer cast to :c:expr:`TYPE*`. The memory will not "
388-
"have been initialized in any way."
387+
"of memory. Returns a pointer cast to ``TYPE*``. The memory will not have "
388+
"been initialized in any way."
389389
msgstr ""
390-
"与 :c:func:`PyMem_Malloc` 相同,但会分配 ``(n * sizeof(TYPE))`` 字节的内存。 返回一个转换为 "
391-
":c:expr:`TYPE*` 的指针。 内存将不会以任何方式被初始化。"
392390

393391
#: ../../c-api/memory.rst:276
394392
msgid ""
395393
"Same as :c:func:`PyMem_Realloc`, but the memory block is resized to ``(n * "
396-
"sizeof(TYPE))`` bytes. Returns a pointer cast to :c:expr:`TYPE*`. On "
397-
"return, *p* will be a pointer to the new memory area, or ``NULL`` in the "
398-
"event of failure."
394+
"sizeof(TYPE))`` bytes. Returns a pointer cast to ``TYPE*``. On return, *p* "
395+
"will be a pointer to the new memory area, or ``NULL`` in the event of "
396+
"failure."
399397
msgstr ""
400-
"与 :c:func:`PyMem_Realloc` 相同,但内存块的大小被调整为 ``(n * sizeof(TYPE))`` 字节。 返回一个转换为 "
401-
":c:expr:`TYPE*` 的指针。 在返回时,*p* 将为一个指向新内存区域的指针,如果执行失败则为 ``NULL``。"
402398

403399
#: ../../c-api/memory.rst:281
404400
msgid ""
@@ -553,11 +549,10 @@ msgid "``\"pymalloc\"``"
553549
msgstr "``\"pymalloc\"``"
554550

555551
#: ../../c-api/memory.rst:382 ../../c-api/memory.rst:384
556-
#: ../../c-api/memory.rst:384 ../../c-api/memory.rst:384
557552
msgid "``malloc``"
558553
msgstr "``malloc``"
559554

560-
#: ../../c-api/memory.rst:382 ../../c-api/memory.rst:382
555+
#: ../../c-api/memory.rst:382
561556
msgid "``pymalloc``"
562557
msgstr "``pymalloc``"
563558

@@ -570,11 +565,10 @@ msgid "``\"pymalloc_debug\"``"
570565
msgstr "``\"pymalloc_debug\"``"
571566

572567
#: ../../c-api/memory.rst:383 ../../c-api/memory.rst:385
573-
#: ../../c-api/memory.rst:385 ../../c-api/memory.rst:385
574568
msgid "``malloc`` + debug"
575569
msgstr "``malloc`` + debug"
576570

577-
#: ../../c-api/memory.rst:383 ../../c-api/memory.rst:383
571+
#: ../../c-api/memory.rst:383
578572
msgid "``pymalloc`` + debug"
579573
msgstr "``pymalloc`` + debug"
580574

library/argparse.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.11\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-01-12 16:53+0000\n"
14+
"POT-Creation-Date: 2024-01-26 16:43+0000\n"
1515
"PO-Revision-Date: 2023-05-24 02:12+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2024\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -31,7 +31,7 @@ msgstr ":mod:`argparse` --- 命令行选项、参数和子命令解析器"
3131
msgid "**Source code:** :source:`Lib/argparse.py`"
3232
msgstr "**源代码:** :source:`Lib/argparse.py`"
3333

34-
#: ../../library/argparse.rstNone
34+
#: ../../library/argparse.rst-1
3535
msgid "Tutorial"
3636
msgstr "教程"
3737

@@ -1922,8 +1922,8 @@ msgstr ""
19221922
":class:`FileType` 对象以及 :data:`sys.stdout` 用于可写的 :class:`FileType` 对象::"
19231923

19241924
#: ../../library/argparse.rst:1926
1925-
msgid "The *encodings* and *errors* keyword arguments."
1926-
msgstr "*encodings* 和 *errors* 关键字参数。"
1925+
msgid "Added the *encodings* and *errors* parameters."
1926+
msgstr ""
19271927

19281928
#: ../../library/argparse.rst:1931
19291929
msgid "Argument groups"

0 commit comments

Comments
 (0)