Skip to content

Commit 947052e

Browse files
[po] auto sync
1 parent 80157de commit 947052e

11 files changed

Lines changed: 14852 additions & 14587 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "99.80%", "updated_at": "2025-11-13T08:17:39Z"}
1+
{"translation": "99.78%", "updated_at": "2025-11-13T15:16:30Z"}

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.14\n"
1314
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-05-09 14:19+0000\n"
15+
"POT-Creation-Date: 2025-11-13 14:15+0000\n"
1516
"PO-Revision-Date: 2025-09-16 00:00+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"
@@ -384,6 +385,61 @@ msgstr ""
384385
"``0``;*\\*bytes* 中的地址可能与其输入值不同。 如果重新分配失败,则位于 *\\*bytes* "
385386
"的原始字节串对象将被释放,*\\*bytes* 将被设为 ``NULL``,同时设置 :exc:`MemoryError`,然后返回 ``-1``。"
386387

388+
#: ../../c-api/bytes.rst:226
389+
msgid ""
390+
"Get the string representation of *bytes*. This function is currently used to"
391+
" implement :meth:`!bytes.__repr__` in Python."
392+
msgstr ""
393+
394+
#: ../../c-api/bytes.rst:229
395+
msgid ""
396+
"This function does not do type checking; it is undefined behavior to pass "
397+
"*bytes* as a non-bytes object or ``NULL``."
398+
msgstr ""
399+
400+
#: ../../c-api/bytes.rst:232
401+
msgid ""
402+
"If *smartquotes* is true, the representation will use a double-quoted string"
403+
" instead of single-quoted string when single-quotes are present in *bytes*. "
404+
"For example, the byte string ``'Python'`` would be represented as "
405+
"``b\"'Python'\"`` when *smartquotes* is true, or ``b'\\'Python\\''`` when it"
406+
" is false."
407+
msgstr ""
408+
409+
#: ../../c-api/bytes.rst:238
410+
msgid ""
411+
"On success, this function returns a :term:`strong reference` to a "
412+
":class:`str` object containing the representation. On failure, this returns "
413+
"``NULL`` with an exception set."
414+
msgstr ""
415+
416+
#: ../../c-api/bytes.rst:245
417+
msgid ""
418+
"Unescape a backslash-escaped string *s*. *s* must not be ``NULL``. *len* "
419+
"must be the size of *s*."
420+
msgstr ""
421+
422+
#: ../../c-api/bytes.rst:248
423+
msgid ""
424+
"*errors* must be one of ``\"strict\"``, ``\"replace\"``, or ``\"ignore\"``. "
425+
"If *errors* is ``NULL``, then ``\"strict\"`` is used by default."
426+
msgstr ""
427+
"*errors* 必须为 ``\"strict\"``, ``\"replace\"`` 或 ``\"ignore\"`` 之一。 如果 "
428+
"*errors* 为 ``NULL``,则默认使用 ``\"strict\"``。"
429+
430+
#: ../../c-api/bytes.rst:251
431+
msgid ""
432+
"On success, this function returns a :term:`strong reference` to a Python "
433+
":class:`bytes` object containing the unescaped string. On failure, this "
434+
"function returns ``NULL`` with an exception set."
435+
msgstr ""
436+
"成功时,此函数将返回一个指向包含未转义文本的 Python :class:`bytes` 对象的 :term:`strong reference`。 "
437+
"失败时,此函数将返回 ``NULL`` 并设置一个异常。"
438+
439+
#: ../../c-api/bytes.rst:255
440+
msgid "*unicode* and *recode_encoding* are now unused."
441+
msgstr "*unicode* 和 *recode_encoding* 现在未被使用。"
442+
387443
#: ../../c-api/bytes.rst:11
388444
msgid "object"
389445
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.14\n"
1314
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-05-09 14:19+0000\n"
15+
"POT-Creation-Date: 2025-11-13 14:15+0000\n"
1516
"PO-Revision-Date: 2025-09-16 00:00+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)