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

Skip to content

Commit 5cd0b9a

Browse files
[po] auto sync
1 parent f5ded8b commit 5cd0b9a

14 files changed

Lines changed: 1330 additions & 1346 deletions

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "93.83%", "updated_at": "2024-02-09T06:55:45Z"}
1+
{"translation": "93.70%", "updated_at": "2024-02-09T14:55:34Z"}

c-api/file.po

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ msgid ""
1313
msgstr ""
1414
"Project-Id-Version: Python 3.12\n"
1515
"Report-Msgid-Bugs-To: \n"
16-
"POT-Creation-Date: 2024-01-05 14:14+0000\n"
16+
"POT-Creation-Date: 2024-02-09 14:13+0000\n"
1717
"PO-Revision-Date: 2021-06-28 00:48+0000\n"
1818
"Last-Translator: Freesand Leo <[email protected]>, 2024\n"
1919
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -103,30 +103,31 @@ msgid ""
103103
msgstr "重写 :func:`io.open_code` 的正常行为,将其形参通过所提供的处理程序来传递。"
104104

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

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

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

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

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

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

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

158-
#: ../../c-api/file.rst:103
159+
#: ../../c-api/file.rst:108
159160
msgid ""
160161
"Write string *s* to file object *p*. Return ``0`` on success or ``-1`` on "
161162
"failure; the appropriate exception will be set."
@@ -173,6 +174,6 @@ msgstr "文件"
173174
msgid "EOFError (built-in exception)"
174175
msgstr "EOFError (内置异常)"
175176

176-
#: ../../c-api/file.rst:93
177+
#: ../../c-api/file.rst:98
177178
msgid "Py_PRINT_RAW"
178179
msgstr "Py_PRINT_RAW"

0 commit comments

Comments
 (0)