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

Skip to content

Commit f86aed4

Browse files
[po] auto sync
1 parent 328bc3a commit f86aed4

2 files changed

Lines changed: 29 additions & 13 deletions

File tree

c-api/bytes.po

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
#
66
# Translators:
77
# jacky <[email protected]>, 2019
8-
# Freesand Leo <[email protected]>, 2019
98
# allenjuly7 <[email protected]>, 2019
109
# sgqy <[email protected]>, 2019
1110
# Vegetables <[email protected]>, 2019
1211
# ppcfish <[email protected]>, 2019
1312
# Shengjing Zhu <[email protected]>, 2019
1413
# 昌伟 任 <[email protected]>, 2019
14+
# Freesand Leo <[email protected]>, 2020
1515
#
1616
#, fuzzy
1717
msgid ""
@@ -20,7 +20,7 @@ msgstr ""
2020
"Report-Msgid-Bugs-To: \n"
2121
"POT-Creation-Date: 2020-02-09 12:40+0000\n"
2222
"PO-Revision-Date: 2017-02-16 17:33+0000\n"
23-
"Last-Translator: 昌伟 任 <small_pupil@126.com>, 2019\n"
23+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2020\n"
2424
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2525
"MIME-Version: 1.0\n"
2626
"Content-Type: text/plain; charset=UTF-8\n"
@@ -68,13 +68,16 @@ msgid ""
6868
" and ``NULL`` on failure. The parameter *v* must not be ``NULL``; it will "
6969
"not be checked."
7070
msgstr ""
71+
"成功时返回一个以字符串 *v* 的副本为值的新字节串对象,失败时返回 ``NULL``。 形参 *v* 不可为 ``NULL``;它不会被检查。"
7172

7273
#: ../../c-api/bytes.rst:46
7374
msgid ""
7475
"Return a new bytes object with a copy of the string *v* as value and length "
7576
"*len* on success, and ``NULL`` on failure. If *v* is ``NULL``, the contents"
7677
" of the bytes object are uninitialized."
7778
msgstr ""
79+
"成功时返回一个以字符串 *v* 的副本为值且长度为 *len* 的新字节串对象,失败时返回 ``NULL``。 如果 *v* 为 "
80+
"``NULL``,则不初始化字节串对象的内容。"
7881

7982
#: ../../c-api/bytes.rst:53
8083
msgid ""
@@ -85,6 +88,9 @@ msgid ""
8588
"characters in the *format* string. The following format characters are "
8689
"allowed:"
8790
msgstr ""
91+
"接受一个 C :c:func:`printf` 风格的 *format* 字符串和可变数量的参数,计算结果 Python "
92+
"字节串对象的大小并返回参数值经格式化后的字节串对象。 可变数量的参数必须均为 C 类型并且必须恰好与 *format* 字符串中的格式字符相对应。 "
93+
"允许使用下列格式字符串:"
8894

8995
#: ../../c-api/bytes.rst:68
9096
msgid "Format Characters"
@@ -213,26 +219,28 @@ msgstr ":attr:`%s`"
213219

214220
#: ../../c-api/bytes.rst:99
215221
msgid "const char\\*"
216-
msgstr ""
222+
msgstr "const char\\*"
217223

218224
#: ../../c-api/bytes.rst:99
219225
msgid "A null-terminated C character array."
220-
msgstr ""
226+
msgstr "以 null 为终止符的 C 字符数组。"
221227

222228
#: ../../c-api/bytes.rst:102
223229
msgid ":attr:`%p`"
224230
msgstr ":attr:`%p`"
225231

226232
#: ../../c-api/bytes.rst:102
227233
msgid "const void\\*"
228-
msgstr ""
234+
msgstr "const void\\*"
229235

230236
#: ../../c-api/bytes.rst:102
231237
msgid ""
232238
"The hex representation of a C pointer. Mostly equivalent to "
233239
"``printf(\"%p\")`` except that it is guaranteed to start with the literal "
234240
"``0x`` regardless of what the platform's ``printf`` yields."
235241
msgstr ""
242+
"一个 C 指针的十六进制表示形式。 基本等价于 ``printf(\"%p\")`` 但它会确保以字面值 ``0x`` 开头,不论系统平台上 "
243+
"``printf`` 的输出是什么。"
236244

237245
#: ../../c-api/bytes.rst:111
238246
msgid ""
@@ -264,7 +272,7 @@ msgstr "返回字节对象*o*中字节的长度。"
264272

265273
#: ../../c-api/bytes.rst:137
266274
msgid "Macro form of :c:func:`PyBytes_Size` but without error checking."
267-
msgstr ""
275+
msgstr "宏版本的 :c:func:`PyBytes_Size` 但是不带错误检测。"
268276

269277
#: ../../c-api/bytes.rst:142
270278
msgid ""
@@ -276,23 +284,29 @@ msgid ""
276284
"deallocated. If *o* is not a bytes object at all, "
277285
":c:func:`PyBytes_AsString` returns ``NULL`` and raises :exc:`TypeError`."
278286
msgstr ""
287+
"返回对应 *o* 的内容的指针。 该指针指向 *o* 的内部缓冲区,其中包含 ``len(o) + 1`` 个字节。 "
288+
"缓冲区的最后一个字节总是为空,不论是否存在其他空字节。 该数据不可通过任何形式来修改,除非是刚使用 "
289+
"``PyBytes_FromStringAndSize(NULL, size)`` 创建该对象。 它不可被撤销分配。 如果 *o* "
290+
"根本不是一个字节串对象,则 :c:func:`PyBytes_AsString` 将返回 ``NULL`` 并引发 :exc:`TypeError`。"
279291

280292
#: ../../c-api/bytes.rst:154
281293
msgid "Macro form of :c:func:`PyBytes_AsString` but without error checking."
282-
msgstr ""
294+
msgstr "宏版本的 :c:func:`PyBytes_AsString` 但是不带错误检测。"
283295

284296
#: ../../c-api/bytes.rst:159
285297
msgid ""
286298
"Return the null-terminated contents of the object *obj* through the output "
287299
"variables *buffer* and *length*."
288-
msgstr ""
300+
msgstr "通过输出变量 *buffer* 和 *length* 返回以 null 为终止符的对象 *obj* 的内容。"
289301

290302
#: ../../c-api/bytes.rst:162
291303
msgid ""
292304
"If *length* is ``NULL``, the bytes object may not contain embedded null "
293305
"bytes; if it does, the function returns ``-1`` and a :exc:`ValueError` is "
294306
"raised."
295307
msgstr ""
308+
"如果 *length* 为 ``NULL``,字节串对象就不包含嵌入的空字节;如果包含,则该函数将返回 ``-1`` 并引发 "
309+
":exc:`ValueError`。"
296310

297311
#: ../../c-api/bytes.rst:166
298312
msgid ""

c-api/unicode.po

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Zombie110year <[email protected]>, 2019
88
# Vegetables <[email protected]>, 2019
99
# ppcfish <[email protected]>, 2019
10-
# Freesand Leo <[email protected]>, 2019
10+
# Freesand Leo <[email protected]>, 2020
1111
#
1212
#, fuzzy
1313
msgid ""
@@ -16,7 +16,7 @@ msgstr ""
1616
"Report-Msgid-Bugs-To: \n"
1717
"POT-Creation-Date: 2020-02-09 12:40+0000\n"
1818
"PO-Revision-Date: 2017-02-16 17:39+0000\n"
19-
"Last-Translator: Freesand Leo <[email protected]>, 2019\n"
19+
"Last-Translator: Freesand Leo <[email protected]>, 2020\n"
2020
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2121
"MIME-Version: 1.0\n"
2222
"Content-Type: text/plain; charset=UTF-8\n"
@@ -625,26 +625,28 @@ msgstr ":attr:`%s`"
625625

626626
#: ../../c-api/unicode.rst:493
627627
msgid "const char\\*"
628-
msgstr ""
628+
msgstr "const char\\*"
629629

630630
#: ../../c-api/unicode.rst:493
631631
msgid "A null-terminated C character array."
632-
msgstr ""
632+
msgstr "以 null 为终止符的 C 字符数组。"
633633

634634
#: ../../c-api/unicode.rst:496
635635
msgid ":attr:`%p`"
636636
msgstr ":attr:`%p`"
637637

638638
#: ../../c-api/unicode.rst:496
639639
msgid "const void\\*"
640-
msgstr ""
640+
msgstr "const void\\*"
641641

642642
#: ../../c-api/unicode.rst:496
643643
msgid ""
644644
"The hex representation of a C pointer. Mostly equivalent to "
645645
"``printf(\"%p\")`` except that it is guaranteed to start with the literal "
646646
"``0x`` regardless of what the platform's ``printf`` yields."
647647
msgstr ""
648+
"一个 C 指针的十六进制表示形式。 基本等价于 ``printf(\"%p\")`` 但它会确保以字面值 ``0x`` 开头,不论系统平台上 "
649+
"``printf`` 的输出是什么。"
648650

649651
#: ../../c-api/unicode.rst:504
650652
msgid ":attr:`%A`"

0 commit comments

Comments
 (0)