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

Skip to content

Commit 82b421b

Browse files
[po] auto sync
1 parent 78da9a7 commit 82b421b

2 files changed

Lines changed: 22 additions & 11 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "92.54%", "updated_at": "2023-11-27T15:55:44Z"}
1+
{"translation": "92.57%", "updated_at": "2023-11-27T23:55:50Z"}

c-api/unicode.po

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,7 @@ msgstr ""
13391339
msgid ""
13401340
"In the case of an error, ``NULL`` is returned with an exception set and no "
13411341
"*size* is stored."
1342-
msgstr ""
1342+
msgstr "在发生错误的情况下,将返回 ``NULL`` 附带设置一个异常并且不会存储 *size* 值。"
13431343

13441344
#: ../../c-api/unicode.rst:984
13451345
msgid ""
@@ -1349,39 +1349,43 @@ msgid ""
13491349
"and pointers to it become invalid when the Unicode object is garbage "
13501350
"collected."
13511351
msgstr ""
1352+
"这将缓存 Unicode 对象中字符串的 UTF-8 表示形式,并且后续调用将返回指向同一缓存区的指针。 调用方不必负责释放该缓冲区。 缓冲区会在 "
1353+
"Unicode 对象被作为垃圾回收时被释放并使指向它的指针失效。"
13521354

13531355
#: ../../c-api/unicode.rst:991 ../../c-api/unicode.rst:1004
13541356
msgid "The return type is now ``const char *`` rather of ``char *``."
1355-
msgstr ""
1357+
msgstr "返回类型现在是 ``const char *`` 而不是 ``char *``。"
13561358

13571359
#: ../../c-api/unicode.rst:994
13581360
msgid "This function is a part of the :ref:`limited API <limited-c-api>`."
1359-
msgstr ""
1361+
msgstr "此函数是 :ref:`受限 API <limited-c-api>` 的组成部分。"
13601362

13611363
#: ../../c-api/unicode.rst:1000
13621364
msgid "As :c:func:`PyUnicode_AsUTF8AndSize`, but does not store the size."
1363-
msgstr ""
1365+
msgstr "类似于 :c:func:`PyUnicode_AsUTF8AndSize`,但不会存储大小值。"
13641366

13651367
#: ../../c-api/unicode.rst:1009
13661368
msgid "UTF-32 Codecs"
1367-
msgstr ""
1369+
msgstr "UTF-32 编解码器"
13681370

13691371
#: ../../c-api/unicode.rst:1011
13701372
msgid "These are the UTF-32 codec APIs:"
1371-
msgstr ""
1373+
msgstr "以下是 UTF-32 编解码器 API:"
13721374

13731375
#: ../../c-api/unicode.rst:1017
13741376
msgid ""
13751377
"Decode *size* bytes from a UTF-32 encoded buffer string and return the "
13761378
"corresponding Unicode object. *errors* (if non-``NULL``) defines the error "
13771379
"handling. It defaults to \"strict\"."
13781380
msgstr ""
1381+
"从 UTF-32 编码的缓冲区数据解码 *size* 个字节并返回相应的 Unicode 对象。 *errors* (如果不为 ``NULL``) "
1382+
"定义了错误处理方式。 默认为 \"strict\"。"
13791383

13801384
#: ../../c-api/unicode.rst:1021 ../../c-api/unicode.rst:1071
13811385
msgid ""
13821386
"If *byteorder* is non-``NULL``, the decoder starts decoding using the given "
13831387
"byte order::"
1384-
msgstr ""
1388+
msgstr "如果 *byteorder* 不为 ``NULL``,解码器将使用给定的字节序进行解码::"
13851389

13861390
#: ../../c-api/unicode.rst:1028
13871391
msgid ""
@@ -1390,20 +1394,22 @@ msgid ""
13901394
"is not copied into the resulting Unicode string. If ``*byteorder`` is "
13911395
"``-1`` or ``1``, any byte order mark is copied to the output."
13921396
msgstr ""
1397+
"如果 ``*byteorder`` 为零,且输入数据的前四个字节为字节序标记 (BOM),则解码器将切换为该字节序并且 BOM 将不会被拷贝到结果 "
1398+
"Unicode 字节串中。 如果 ``*byteorder`` 为 ``-1`` 或 ``1``,则字节序标记会被拷贝到输出中。"
13931399

13941400
#: ../../c-api/unicode.rst:1033
13951401
msgid ""
13961402
"After completion, *\\*byteorder* is set to the current byte order at the end"
13971403
" of input data."
1398-
msgstr ""
1404+
msgstr "在完成后,*\\*byteorder* 将在输入数据的末尾被设为当前字节序。"
13991405

14001406
#: ../../c-api/unicode.rst:1036 ../../c-api/unicode.rst:1087
14011407
msgid "If *byteorder* is ``NULL``, the codec starts in native order mode."
1402-
msgstr ""
1408+
msgstr "如果 *byteorder* 为 ``NULL``,编解码器将使用本机字节序。"
14031409

14041410
#: ../../c-api/unicode.rst:1038 ../../c-api/unicode.rst:1089
14051411
msgid "Return ``NULL`` if an exception was raised by the codec."
1406-
msgstr ""
1412+
msgstr "如果编解码器引发了异常则返回 ``NULL``。"
14071413

14081414
#: ../../c-api/unicode.rst:1044
14091415
msgid ""
@@ -1413,13 +1419,18 @@ msgid ""
14131419
"not divisible by four) as an error. Those bytes will not be decoded and the "
14141420
"number of bytes that have been decoded will be stored in *consumed*."
14151421
msgstr ""
1422+
"如果 *consumed* 为 ``NULL``,则行为类似于 :c:func:`PyUnicode_DecodeUTF32`。 如果 "
1423+
"*consumed* 不为 ``NULL``,则 :c:func:`PyUnicode_DecodeUTF32Stateful` 将不把末尾的不完整 "
1424+
"UTF-32 字节序列(如字节数不可被四整除)视为错误。 这些字节将不会被解码并且已被解码的字节数将存储在 *consumed* 中。"
14161425

14171426
#: ../../c-api/unicode.rst:1053
14181427
msgid ""
14191428
"Return a Python byte string using the UTF-32 encoding in native byte order. "
14201429
"The string always starts with a BOM mark. Error handling is \"strict\". "
14211430
"Return ``NULL`` if an exception was raised by the codec."
14221431
msgstr ""
1432+
"返回使用 UTF-32 编码格式本机字节序的 Python 字节串。 字节串将总是以 BOM 标记打头。 错误处理方式为 \"strict\"。 "
1433+
"如果编解码器引发了异常则返回 ``NULL``。"
14231434

14241435
#: ../../c-api/unicode.rst:1059
14251436
msgid "UTF-16 Codecs"

0 commit comments

Comments
 (0)