🌐 AI搜索 & 代理 主页
Skip to content

Commit a41a58d

Browse files
[po] auto sync
1 parent f8310c3 commit a41a58d

File tree

10 files changed

+13589
-13387
lines changed

10 files changed

+13589
-13387
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "99.75%", "updated_at": "2025-11-13T06:59:56Z"}
1+
{"translation": "99.73%", "updated_at": "2025-11-13T15:57:59Z"}

c-api/bytes.po

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
#
66
# Translators:
77
# python-doc bot, 2025
8+
# Freesand Leo <yuqinju@163.com>, 2025
89
#
910
#, fuzzy
1011
msgid ""
1112
msgstr ""
1213
"Project-Id-Version: Python 3.13\n"
1314
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-01-03 14:16+0000\n"
15+
"POT-Creation-Date: 2025-11-13 15:03+0000\n"
1516
"PO-Revision-Date: 2025-09-15 01:03+0000\n"
16-
"Last-Translator: python-doc bot, 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"
@@ -359,6 +360,61 @@ msgstr ""
359360
"``0``;*\\*bytes* 中的��址可能与其输入值不同。 如果重新分配失败,则位于 *\\*bytes* "
360361
"的原始字节串对象将被释放,*\\*bytes* 将被设为 ``NULL``,同时设置 :exc:`MemoryError`,然后返回 ``-1``。"
361362

363+
#: ../../c-api/bytes.rst:208
364+
msgid ""
365+
"Get the string representation of *bytes*. This function is currently used to"
366+
" implement :meth:`!bytes.__repr__` in Python."
367+
msgstr ""
368+
369+
#: ../../c-api/bytes.rst:211
370+
msgid ""
371+
"This function does not do type checking; it is undefined behavior to pass "
372+
"*bytes* as a non-bytes object or ``NULL``."
373+
msgstr ""
374+
375+
#: ../../c-api/bytes.rst:214
376+
msgid ""
377+
"If *smartquotes* is true, the representation will use a double-quoted string"
378+
" instead of single-quoted string when single-quotes are present in *bytes*. "
379+
"For example, the byte string ``'Python'`` would be represented as "
380+
"``b\"'Python'\"`` when *smartquotes* is true, or ``b'\\'Python\\''`` when it"
381+
" is false."
382+
msgstr ""
383+
384+
#: ../../c-api/bytes.rst:220
385+
msgid ""
386+
"On success, this function returns a :term:`strong reference` to a "
387+
":class:`str` object containing the representation. On failure, this returns "
388+
"``NULL`` with an exception set."
389+
msgstr ""
390+
391+
#: ../../c-api/bytes.rst:227
392+
msgid ""
393+
"Unescape a backslash-escaped string *s*. *s* must not be ``NULL``. *len* "
394+
"must be the size of *s*."
395+
msgstr ""
396+
397+
#: ../../c-api/bytes.rst:230
398+
msgid ""
399+
"*errors* must be one of ``\"strict\"``, ``\"replace\"``, or ``\"ignore\"``. "
400+
"If *errors* is ``NULL``, then ``\"strict\"`` is used by default."
401+
msgstr ""
402+
"*errors* 必须为 ``\"strict\"``, ``\"replace\"`` 或 ``\"ignore\"`` 之一。 如果 "
403+
"*errors* 为 ``NULL``,则默认使用 ``\"strict\"``。"
404+
405+
#: ../../c-api/bytes.rst:233
406+
msgid ""
407+
"On success, this function returns a :term:`strong reference` to a Python "
408+
":class:`bytes` object containing the unescaped string. On failure, this "
409+
"function returns ``NULL`` with an exception set."
410+
msgstr ""
411+
"成功时,此函数将返回一个指向包含未转义文本的 Python :class:`bytes` 对象的 :term:`strong reference`。 "
412+
"失败时,此函数将返回 ``NULL`` 并设置一个异常。"
413+
414+
#: ../../c-api/bytes.rst:237
415+
msgid "*unicode* and *recode_encoding* are now unused."
416+
msgstr "*unicode* 和 *recode_encoding* ���在未被使用。"
417+
362418
#: ../../c-api/bytes.rst:11
363419
msgid "object"
364420
msgstr "object -- 对象"

c-api/file.po

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
#
66
# Translators:
77
# python-doc bot, 2025
8+
# Freesand Leo <yuqinju@163.com>, 2025
89
#
910
#, fuzzy
1011
msgid ""
1112
msgstr ""
1213
"Project-Id-Version: Python 3.13\n"
1314
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-01-03 14:16+0000\n"
15+
"POT-Creation-Date: 2025-11-13 15:03+0000\n"
1516
"PO-Revision-Date: 2025-09-15 01:03+0000\n"
16-
"Last-Translator: python-doc bot, 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"
@@ -146,7 +147,34 @@ msgid ""
146147
"arguments."
147148
msgstr "引发一个不带参数的 :ref:`审计事件 <auditing>` ``setopencodehook``。"
148149

149-
#: ../../c-api/file.rst:101
150+
#: ../../c-api/file.rst:98
151+
msgid ""
152+
"Open *path* with the mode ``'rb'``. *path* must be a Python :class:`str` "
153+
"object. The behavior of this function may be overridden by "
154+
":c:func:`PyFile_SetOpenCodeHook` to allow for some preprocessing of the "
155+
"text."
156+
msgstr ""
157+
158+
#: ../../c-api/file.rst:103
159+
msgid "This is analogous to :func:`io.open_code` in Python."
160+
msgstr ""
161+
162+
#: ../../c-api/file.rst:105
163+
msgid ""
164+
"On success, this function returns a :term:`strong reference` to a Python "
165+
"file object. On failure, this function returns ``NULL`` with an exception "
166+
"set."
167+
msgstr ""
168+
169+
#: ../../c-api/file.rst:114
170+
msgid ""
171+
"Similar to :c:func:`PyFile_OpenCodeObject`, but *path* is a UTF-8 encoded "
172+
":c:expr:`const char*`."
173+
msgstr ""
174+
"类似于 :c:func:`PyFile_OpenCodeObject`,但 *path* 是一个 UTF-8 编码的 :c:expr:`const "
175+
"char*`。"
176+
177+
#: ../../c-api/file.rst:124
150178
msgid ""
151179
"Write object *obj* to file object *p*. The only supported flag for *flags* "
152180
"is :c:macro:`Py_PRINT_RAW`; if given, the :func:`str` of the object is "
@@ -156,7 +184,7 @@ msgstr ""
156184
"将对象 *obj* 写入文件对象 *p*。 *flags* 唯一支持的旗标是 :c:macro:`Py_PRINT_RAW`;如果给定,则写入对象的 "
157185
":func:`str` 而不是 :func:`repr`。 成功时返回 ``0``,失败时返回 ``-1``;将设置适当的异常。"
158186

159-
#: ../../c-api/file.rst:109
187+
#: ../../c-api/file.rst:132
160188
msgid ""
161189
"Write string *s* to file object *p*. Return ``0`` on success or ``-1`` on "
162190
"failure; the appropriate exception will be set."
@@ -174,6 +202,6 @@ msgstr "文件"
174202
msgid "EOFError (built-in exception)"
175203
msgstr "EOFError (内置异常)"
176204

177-
#: ../../c-api/file.rst:99
205+
#: ../../c-api/file.rst:122
178206
msgid "Py_PRINT_RAW (C macro)"
179207
msgstr "Py_PRINT_RAW (C 宏)"

0 commit comments

Comments
 (0)