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

Skip to content

Commit 9443b08

Browse files
[po] auto sync
1 parent 55b50a0 commit 9443b08

2 files changed

Lines changed: 26 additions & 16 deletions

File tree

c-api/method.po

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Translators:
77
# Shengjing Zhu <[email protected]>, 2018
88
# dhcn, 2018
9-
# Freesand Leo <[email protected]>, 2019
9+
# Freesand Leo <[email protected]>, 2020
1010
#
1111
#, fuzzy
1212
msgid ""
@@ -15,7 +15,7 @@ msgstr ""
1515
"Report-Msgid-Bugs-To: \n"
1616
"POT-Creation-Date: 2020-02-09 12:40+0000\n"
1717
"PO-Revision-Date: 2017-02-16 17:37+0000\n"
18-
"Last-Translator: Freesand Leo <[email protected]>, 2019\n"
18+
"Last-Translator: Freesand Leo <[email protected]>, 2020\n"
1919
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2020
"MIME-Version: 1.0\n"
2121
"Content-Type: text/plain; charset=UTF-8\n"
@@ -95,20 +95,20 @@ msgstr ""
9595

9696
#: ../../c-api/method.rst:79
9797
msgid "Return the function object associated with the method *meth*."
98-
msgstr ""
98+
msgstr "返回关联到方法 *meth* 的函数对象。"
9999

100100
#: ../../c-api/method.rst:84
101101
msgid ""
102102
"Macro version of :c:func:`PyMethod_Function` which avoids error checking."
103-
msgstr ""
103+
msgstr "宏版本的 :c:func:`PyMethod_Function`,略去了错误检测。"
104104

105105
#: ../../c-api/method.rst:89
106106
msgid "Return the instance associated with the method *meth*."
107-
msgstr ""
107+
msgstr "返回关联到方法 *meth* 的实例。"
108108

109109
#: ../../c-api/method.rst:94
110110
msgid "Macro version of :c:func:`PyMethod_Self` which avoids error checking."
111-
msgstr ""
111+
msgstr "宏版本的 :c:func:`PyMethod_Self`,略去了错误检测。"
112112

113113
#: ../../c-api/method.rst:99
114114
msgid "Clear the free list. Return the total number of freed items."

library/hashlib.po

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -542,48 +542,51 @@ msgid ""
542542
"*inner_size*: inner digest size (0 to 64 for BLAKE2b, 0 to 32 for BLAKE2s, 0"
543543
" in sequential mode)."
544544
msgstr ""
545+
"*inner_size*: 内部摘要大小 (对于 BLAKE2b 为 0 至 64,对于 BLAKE2s 为 0 至 32,连续模式下则为 0)。"
545546

546547
#: ../../library/hashlib.rst:373
547548
msgid ""
548549
"*last_node*: boolean indicating whether the processed node is the last one "
549550
"(`False` for sequential mode)."
550-
msgstr ""
551+
msgstr "*last_node*: 一个布尔值,指明所处理的节点是否为最后一个 (连续模式下则为 `False`)。"
551552

552553
#: ../../library/hashlib.rst:379
553554
msgid ""
554555
"See section 2.10 in `BLAKE2 specification "
555556
"<https://blake2.net/blake2_20130129.pdf>`_ for comprehensive review of tree "
556557
"hashing."
557558
msgstr ""
559+
"请参阅 `BLAKE2 规格描述 <https://blake2.net/blake2_20130129.pdf>`_ 第 2.10 "
560+
"节获取有关树形哈希的完整说明。"
558561

559562
#: ../../library/hashlib.rst:385
560563
msgid "Constants"
561564
msgstr "常数"
562565

563566
#: ../../library/hashlib.rst:390
564567
msgid "Salt length (maximum length accepted by constructors)."
565-
msgstr ""
568+
msgstr "盐值长度(构造器所接受的最大长度)。"
566569

567570
#: ../../library/hashlib.rst:396
568571
msgid ""
569572
"Personalization string length (maximum length accepted by constructors)."
570-
msgstr ""
573+
msgstr "个性化字符串长度(构造器所接受的最大长度)。"
571574

572575
#: ../../library/hashlib.rst:402
573576
msgid "Maximum key size."
574-
msgstr ""
577+
msgstr "最大密钥长度。"
575578

576579
#: ../../library/hashlib.rst:408
577580
msgid "Maximum digest size that the hash function can output."
578-
msgstr ""
581+
msgstr "哈希函数可输出的最大摘要长度。"
579582

580583
#: ../../library/hashlib.rst:412
581584
msgid "Examples"
582585
msgstr "示例"
583586

584587
#: ../../library/hashlib.rst:415
585588
msgid "Simple hashing"
586-
msgstr ""
589+
msgstr "简单哈希"
587590

588591
#: ../../library/hashlib.rst:417
589592
msgid ""
@@ -593,40 +596,47 @@ msgid ""
593596
"the object, and, finally, get the digest out of the object by calling "
594597
":meth:`digest` (or :meth:`hexdigest` for hex-encoded string)."
595598
msgstr ""
599+
"要计算某个数据的哈希值,你应该首先通过调用适当的构造器函数 (:func:`blake2b` 或 :func:`blake2s`) "
600+
"来构造一个哈希对象,然后通过在该对象上调用 :meth:`update` 来更新目标数据,最后通过调用 :meth:`digest` "
601+
"(或针对十六进制编码字符串的 :meth:`hexdigest`) 来获取该对象的摘要。"
596602

597603
#: ../../library/hashlib.rst:430
598604
msgid ""
599605
"As a shortcut, you can pass the first chunk of data to update directly to "
600606
"the constructor as the positional argument:"
601-
msgstr ""
607+
msgstr "作为快捷方式,你可以直接以位置参数的形式向构造器传入第一个数据块来直接更新:"
602608

603609
#: ../../library/hashlib.rst:437
604610
msgid ""
605611
"You can call :meth:`hash.update` as many times as you need to iteratively "
606612
"update the hash:"
607-
msgstr ""
613+
msgstr "你可以多次调用 :meth:`hash.update` 至你所想要的任意次数以迭代地更新哈希值:"
608614

609615
#: ../../library/hashlib.rst:450
610616
msgid "Using different digest sizes"
611-
msgstr ""
617+
msgstr "使用不同的摘要大小"
612618

613619
#: ../../library/hashlib.rst:452
614620
msgid ""
615621
"BLAKE2 has configurable size of digests up to 64 bytes for BLAKE2b and up to"
616622
" 32 bytes for BLAKE2s. For example, to replace SHA-1 with BLAKE2b without "
617623
"changing the size of output, we can tell BLAKE2b to produce 20-byte digests:"
618624
msgstr ""
625+
"BLAKE2 具有可配置的摘要大小,对于 BLAKE2b 最多 64 字节,对于 BLAKE2s 最多 32 字节。 例如,要使用 BLAKE2b "
626+
"来替代 SHA-1 而不改变输出大小,我们可以让 BLAKE2b 产生 20 个字节的摘要:"
619627

620628
#: ../../library/hashlib.rst:466
621629
msgid ""
622630
"Hash objects with different digest sizes have completely different outputs "
623631
"(shorter hashes are *not* prefixes of longer hashes); BLAKE2b and BLAKE2s "
624632
"produce different outputs even if the output length is the same:"
625633
msgstr ""
634+
"不同摘要大小的哈希对象具有完全不同的输出(较短哈希值 *并非* 较长哈希值的前缀);即使输出长度相同,BLAKE2b 和 BLAKE2s "
635+
"也会产生不同的输出:"
626636

627637
#: ../../library/hashlib.rst:482
628638
msgid "Keyed hashing"
629-
msgstr ""
639+
msgstr "密钥哈希"
630640

631641
#: ../../library/hashlib.rst:484
632642
msgid ""

0 commit comments

Comments
 (0)