Skip to content

Commit 6b4fae0

Browse files
[po] auto sync
1 parent aff9459 commit 6b4fae0

File tree

5 files changed

+30
-17
lines changed

5 files changed

+30
-17
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "90.63%", "updated_at": "2023-12-03T10:32:09Z"}
1+
{"translation": "90.66%", "updated_at": "2023-12-09T03:31:10Z"}

c-api/typeobj.po

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.10\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2023-09-29 15:13+0000\n"
14+
"POT-Creation-Date: 2023-12-08 18:45+0000\n"
1515
"PO-Revision-Date: 2022-11-05 17:21+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2023\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -1788,6 +1788,10 @@ msgid ""
17881788
" on a class at the Python level will result in the ``tp_hash`` slot being "
17891789
"set to :c:func:`PyObject_HashNotImplemented`."
17901790
msgstr ""
1791+
"此字段可被显式设为 :c:func:`PyObject_HashNotImplemented` 以阻止从父类型继承哈希方法。在 Python "
1792+
"层面这被解释为 ``__hash__ = None`` 的等价物,使得 ``isinstance(o, collections.Hashable)`` "
1793+
"正确返回 ``False``.。请注意反过来也是如此:在 Python 层面设置一个类的 ``__hash__ = None`` 会使得 "
1794+
"``tp_hash`` 槽位被设置为 :c:func:`PyObject_HashNotImplemented`。"
17911795

17921796
#: ../../c-api/typeobj.rst:898 ../../c-api/typeobj.rst:1485
17931797
msgid "Group: :attr:`tp_hash`, :attr:`tp_richcompare`"

c-api/unicode.po

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.10\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2023-12-01 19:01+0000\n"
14+
"POT-Creation-Date: 2023-12-08 18:45+0000\n"
1515
"PO-Revision-Date: 2022-11-05 17:21+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2023\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -1931,13 +1931,18 @@ msgid ""
19311931
"decode trailing lead byte and the number of bytes that have been decoded "
19321932
"will be stored in *consumed*."
19331933
msgstr ""
1934+
"如果 *consumed* 为 ``NULL``,则行为类似于 :c:func:`PyUnicode_DecodeMBCS`。 如果 "
1935+
"*consumed* 不为 ``NULL``,则 :c:func:`PyUnicode_DecodeMBCSStateful` "
1936+
"将不会解码末尾的不完整字节并且已被解码的字节数将存储在 *consumed* 中。"
19341937

19351938
#: ../../c-api/unicode.rst:1551
19361939
msgid ""
19371940
"Encode a Unicode object using MBCS and return the result as Python bytes "
19381941
"object. Error handling is \"strict\". Return ``NULL`` if an exception was "
19391942
"raised by the codec."
19401943
msgstr ""
1944+
"使用 MBCS 编码 Unicode 对象并将结果作为 Python 字节串对象返回。 错误处理方式为 \"strict\"。 "
1945+
"如果编解码器引发了异常则将返回 ``NULL``。"
19411946

19421947
#: ../../c-api/unicode.rst:1558
19431948
msgid ""
@@ -1962,7 +1967,7 @@ msgstr ""
19621967

19631968
#: ../../c-api/unicode.rst:1578
19641969
msgid "Methods & Slots"
1965-
msgstr ""
1970+
msgstr "方法和槽位"
19661971

19671972
#: ../../c-api/unicode.rst:1584
19681973
msgid "Methods and Slot Functions"
@@ -1973,15 +1978,15 @@ msgid ""
19731978
"The following APIs are capable of handling Unicode objects and strings on "
19741979
"input (we refer to them as strings in the descriptions) and return Unicode "
19751980
"objects or integers as appropriate."
1976-
msgstr ""
1981+
msgstr "以下 API 可以处理输入的 Unicode 对象和字符串(在描述中我们称其为字符串)并返回适当的 Unicode 对象或整数值。"
19771982

19781983
#: ../../c-api/unicode.rst:1590
19791984
msgid "They all return ``NULL`` or ``-1`` if an exception occurs."
1980-
msgstr ""
1985+
msgstr "如果发生异常它们都将返回 ``NULL`` 或 ``-1``。"
19811986

19821987
#: ../../c-api/unicode.rst:1595
19831988
msgid "Concat two strings giving a new Unicode string."
1984-
msgstr ""
1989+
msgstr "拼接两个字符串得到一个新的 Unicode 字符串。"
19851990

19861991
#: ../../c-api/unicode.rst:1600
19871992
msgid ""
@@ -1991,6 +1996,8 @@ msgid ""
19911996
"negative, no limit is set. Separators are not included in the resulting "
19921997
"list."
19931998
msgstr ""
1999+
"拆分一个字符串得到一个 Unicode 字符串的列表。 如果 *sep* 为 ``NULL``,则将根据空格来拆分所有子字符串。 "
2000+
"否则,将根据指定的分隔符来拆分。 最多拆分数为 *maxsplit*。 如为负值,则没有限制。 分隔符不包括在结果列表中。"
19942001

19952002
#: ../../c-api/unicode.rst:1608
19962003
msgid ""
@@ -2003,7 +2010,7 @@ msgstr ""
20032010
msgid ""
20042011
"Join a sequence of strings using the given *separator* and return the "
20052012
"resulting Unicode string."
2006-
msgstr ""
2013+
msgstr "使用给定的 *separator* 合并一个字符串列表并返回结果 Unicode 字符串。"
20072014

20082015
#: ../../c-api/unicode.rst:1622
20092016
msgid ""
@@ -2051,13 +2058,13 @@ msgstr ""
20512058
msgid ""
20522059
"Compare two strings and return ``-1``, ``0``, ``1`` for less than, equal, "
20532060
"and greater than, respectively."
2054-
msgstr ""
2061+
msgstr "比较两个字符串并返回 ``-1``, ``0``, ``1`` 分别表示小于、等于和大于。"
20552062

20562063
#: ../../c-api/unicode.rst:1672
20572064
msgid ""
20582065
"This function returns ``-1`` upon failure, so one should call "
20592066
":c:func:`PyErr_Occurred` to check for errors."
2060-
msgstr ""
2067+
msgstr "此函数执行失败时返回 ``-1``,因此应当调用 :c:func:`PyErr_Occurred` 来检查错误。"
20612068

20622069
#: ../../c-api/unicode.rst:1678
20632070
msgid ""
@@ -2069,15 +2076,15 @@ msgstr ""
20692076

20702077
#: ../../c-api/unicode.rst:1683
20712078
msgid "This function does not raise exceptions."
2072-
msgstr ""
2079+
msgstr "此函数不会引发异常。"
20732080

20742081
#: ../../c-api/unicode.rst:1688
20752082
msgid "Rich compare two Unicode strings and return one of the following:"
20762083
msgstr "对两个 Unicode 字符串执行富比较并返回以下值之一:"
20772084

20782085
#: ../../c-api/unicode.rst:1690
20792086
msgid "``NULL`` in case an exception was raised"
2080-
msgstr ""
2087+
msgstr "``NULL`` 用于引发了异常的情况"
20812088

20822089
#: ../../c-api/unicode.rst:1691
20832090
msgid ":const:`Py_True` or :const:`Py_False` for successful comparisons"
@@ -2097,7 +2104,7 @@ msgstr ""
20972104
msgid ""
20982105
"Return a new string object from *format* and *args*; this is analogous to "
20992106
"``format % args``."
2100-
msgstr ""
2107+
msgstr "根据 *format* 和 *args* 返回一个新的字符串对象;这等同于 ``format % args``。"
21012108

21022109
#: ../../c-api/unicode.rst:1706
21032110
msgid ""
@@ -2131,3 +2138,5 @@ msgid ""
21312138
"object that has been interned, or a new (\"owned\") reference to an earlier "
21322139
"interned string object with the same value."
21332140
msgstr ""
2141+
":c:func:`PyUnicode_FromString` 和 :c:func:`PyUnicode_InternInPlace` "
2142+
"的组合操作,返回一个已内部化的新 Unicode 字符串对象,或一个指向具有相同值的原有内部化字符串对象的新的(“拥有的”)引用。"

library/enum.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.10\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2023-09-01 15:12+0000\n"
14+
"POT-Creation-Date: 2023-12-08 18:45+0000\n"
1515
"PO-Revision-Date: 2022-11-05 17:22+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2023\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -435,7 +435,7 @@ msgstr "通过在枚举类中定义 :meth:`__reduce_ex__` 可以对 Enum 成员
435435

436436
#: ../../library/enum.rst:462
437437
msgid "Functional API"
438-
msgstr "功能性 API"
438+
msgstr "函数式 API"
439439

440440
#: ../../library/enum.rst:464
441441
msgid ""

library/importlib.metadata.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.10\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2023-07-29 03:05+0000\n"
14+
"POT-Creation-Date: 2023-12-08 18:45+0000\n"
1515
"PO-Revision-Date: 2022-11-05 17:22+0000\n"
1616
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2023\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -102,7 +102,7 @@ msgstr ""
102102

103103
#: ../../library/importlib.metadata.rst:72
104104
msgid "Functional API"
105-
msgstr "功能性 API"
105+
msgstr "函数式 API"
106106

107107
#: ../../library/importlib.metadata.rst:74
108108
msgid "This package provides the following functionality via its public API."

0 commit comments

Comments
 (0)