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

Skip to content

Commit d7821cb

Browse files
[po] auto sync
1 parent 46f3459 commit d7821cb

15 files changed

Lines changed: 360 additions & 168 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "90.27%", "updated_at": "2023-12-08T16:42:43Z"}
1+
{"translation": "90.37%", "updated_at": "2023-12-09T02:42:08Z"}

c-api/set.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.11\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2023-12-01 16:44+0000\n"
14+
"POT-Creation-Date: 2023-12-08 16:33+0000\n"
1515
"PO-Revision-Date: 2023-05-24 02:09+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2023\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -207,6 +207,10 @@ msgid ""
207207
":exc:`SystemError` if *set* is not an instance of :class:`set` or its "
208208
"subtype."
209209
msgstr ""
210+
"如果找到并已删除则返回 ``1``,如未找到(无操作)则返回 ``0``,如果遇到错误则返回 ``-1``。 对于不存在的键不会引发 "
211+
":exc:`KeyError`。 如果 *key* 为不可哈希对象则会引发 :exc:`TypeError`。 与 Python "
212+
":meth:`~frozenset.discard` 方法不同,该函数不会自动将不可哈希的集合转换为临时的冻结集合。 如果 *set* 不是 "
213+
":class:`set` 或其子类的实例则会引发 :exc:`SystemError`。"
210214

211215
#: ../../c-api/set.rst:158
212216
msgid ""

c-api/typeobj.po

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.11\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2023-09-29 14:44+0000\n"
14+
"POT-Creation-Date: 2023-12-08 16:33+0000\n"
1515
"PO-Revision-Date: 2023-05-24 02:09+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2023\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -439,7 +439,8 @@ msgstr ":c:member:`~PyTypeObject.tp_dict`"
439439
#: ../../c-api/typeobj.rst:113 ../../c-api/typeobj.rst:132
440440
#: ../../c-api/typeobj.rst:134 ../../c-api/typeobj.rst:136
441441
#: ../../c-api/typeobj.rst:138 ../../c-api/typeobj.rst:140
442-
#: ../../c-api/typeobj.rst:339 ../../c-api/typeobj.rst:0
442+
#: ../../c-api/typeobj.rst:339 ../../c-api/typeobj.rst:344
443+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
443444
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
444445
#: ../../c-api/typeobj.rst:354 ../../c-api/typeobj.rst:0
445446
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
@@ -458,15 +459,16 @@ msgstr ":c:member:`~PyTypeObject.tp_dict`"
458459
#: ../../c-api/typeobj.rst:410 ../../c-api/typeobj.rst:412
459460
#: ../../c-api/typeobj.rst:412 ../../c-api/typeobj.rst:414
460461
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
461-
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:429
462-
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
463-
#: ../../c-api/typeobj.rst:433 ../../c-api/typeobj.rst:0
462+
#: ../../c-api/typeobj.rst:427 ../../c-api/typeobj.rst:0
463+
#: ../../c-api/typeobj.rst:429 ../../c-api/typeobj.rst:0
464+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:433
464465
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
465-
#: ../../c-api/typeobj.rst:438 ../../c-api/typeobj.rst:0
466-
#: ../../c-api/typeobj.rst:444 ../../c-api/typeobj.rst:0
466+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:438
467+
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:444
467468
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
468469
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
469470
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:0
471+
#: ../../c-api/typeobj.rst:0
470472
msgid ":c:type:`PyObject` *"
471473
msgstr ":c:type:`PyObject` *"
472474

@@ -947,9 +949,8 @@ msgstr "__int__"
947949
msgid ":c:member:`~PyNumberMethods.nb_reserved`"
948950
msgstr ":c:member:`~PyNumberMethods.nb_reserved`"
949951

950-
#: ../../c-api/typeobj.rst:277 ../../c-api/typeobj.rst:344
951-
#: ../../c-api/typeobj.rst:346 ../../c-api/typeobj.rst:0
952-
#: ../../c-api/typeobj.rst:0 ../../c-api/typeobj.rst:427
952+
#: ../../c-api/typeobj.rst:277 ../../c-api/typeobj.rst:346
953+
#: ../../c-api/typeobj.rst:0
953954
msgid "void *"
954955
msgstr "void *"
955956

@@ -1830,6 +1831,8 @@ msgid ""
18301831
":exc:`TypeError`. This is the same as setting it to "
18311832
":c:func:`PyObject_HashNotImplemented`."
18321833
msgstr ""
1834+
"当该字段(*和* :c:member:`~PyTypeObject.tp_richcompare`)都未设置,尝试对该对象取哈希会引发 "
1835+
":exc:`TypeError`。这与将其设为 :c:func:`PyObject_HashNotImplemented` 相同。"
18331836

18341837
#: ../../c-api/typeobj.rst:889
18351838
msgid ""
@@ -1841,12 +1844,18 @@ msgid ""
18411844
" on a class at the Python level will result in the ``tp_hash`` slot being "
18421845
"set to :c:func:`PyObject_HashNotImplemented`."
18431846
msgstr ""
1847+
"此字段可被显式设为 :c:func:`PyObject_HashNotImplemented` 以阻止从父类型继承哈希方法。在 Python "
1848+
"层面这被解释为 ``__hash__ = None`` 的等价物,使得 ``isinstance(o, collections.Hashable)`` "
1849+
"正确返回 ``False``.。请注意反过来也是如此:在 Python 层面设置一个类的 ``__hash__ = None`` 会使得 "
1850+
"``tp_hash`` 槽位被设置为 :c:func:`PyObject_HashNotImplemented`。"
18441851

18451852
#: ../../c-api/typeobj.rst:899 ../../c-api/typeobj.rst:1490
18461853
msgid ""
18471854
"Group: :c:member:`~PyTypeObject.tp_hash`, "
18481855
":c:member:`~PyTypeObject.tp_richcompare`"
18491856
msgstr ""
1857+
"分组: :c:member:`~PyTypeObject.tp_hash`, "
1858+
":c:member:`~PyTypeObject.tp_richcompare`"
18501859

18511860
#: ../../c-api/typeobj.rst:901
18521861
msgid ""

c-api/unicode.po

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,24 +1766,31 @@ msgid ""
17661766
"decode trailing lead byte and the number of bytes that have been decoded "
17671767
"will be stored in *consumed*."
17681768
msgstr ""
1769+
"如果 *consumed* 为 ``NULL``,则行为类似于 :c:func:`PyUnicode_DecodeMBCS`。 如果 "
1770+
"*consumed* 不为 ``NULL``,则 :c:func:`PyUnicode_DecodeMBCSStateful` "
1771+
"将不会解码末尾的不完整字节并且已被解码的字节数将存储在 *consumed* 中。"
17691772

17701773
#: ../../c-api/unicode.rst:1385
17711774
msgid ""
17721775
"Encode a Unicode object using MBCS and return the result as Python bytes "
17731776
"object. Error handling is \"strict\". Return ``NULL`` if an exception was "
17741777
"raised by the codec."
17751778
msgstr ""
1779+
"使用 MBCS 编码 Unicode 对象并将结果作为 Python 字节串对象返回。 错误处理方式为 \"strict\"。 "
1780+
"如果编解码器引发了异常则将返回 ``NULL``。"
17761781

17771782
#: ../../c-api/unicode.rst:1392
17781783
msgid ""
17791784
"Encode the Unicode object using the specified code page and return a Python "
17801785
"bytes object. Return ``NULL`` if an exception was raised by the codec. Use "
17811786
":c:macro:`!CP_ACP` code page to get the MBCS encoder."
17821787
msgstr ""
1788+
"使用指定的代码页编码 Unicode 对象并返回一个 Python 字节串对象。 如果编解码器引发了异常则返回 ``NULL``。 使用 "
1789+
":c:macro:`!CP_ACP` 代码页来获取 MBCS 解码器。"
17831790

17841791
#: ../../c-api/unicode.rst:1400
17851792
msgid "Methods & Slots"
1786-
msgstr ""
1793+
msgstr "方法和槽位"
17871794

17881795
#: ../../c-api/unicode.rst:1406
17891796
msgid "Methods and Slot Functions"
@@ -1794,15 +1801,15 @@ msgid ""
17941801
"The following APIs are capable of handling Unicode objects and strings on "
17951802
"input (we refer to them as strings in the descriptions) and return Unicode "
17961803
"objects or integers as appropriate."
1797-
msgstr ""
1804+
msgstr "以下 API 可以处理输入的 Unicode 对象和字符串(在描述中我们称其为字符串)并返回适当的 Unicode 对象或整数值。"
17981805

17991806
#: ../../c-api/unicode.rst:1412
18001807
msgid "They all return ``NULL`` or ``-1`` if an exception occurs."
1801-
msgstr ""
1808+
msgstr "如果发生异常它们都将返回 ``NULL`` 或 ``-1``。"
18021809

18031810
#: ../../c-api/unicode.rst:1417
18041811
msgid "Concat two strings giving a new Unicode string."
1805-
msgstr ""
1812+
msgstr "拼接两个字符串得到一个新的 Unicode 字符串。"
18061813

18071814
#: ../../c-api/unicode.rst:1422
18081815
msgid ""
@@ -1812,6 +1819,8 @@ msgid ""
18121819
"negative, no limit is set. Separators are not included in the resulting "
18131820
"list."
18141821
msgstr ""
1822+
"拆分一个字符串得到一个 Unicode 字符串的列表。 如果 *sep* 为 ``NULL``,则将根据空格来拆分所有子字符串。 "
1823+
"否则,将根据指定的分隔符来拆分。 最多拆分数为 *maxsplit*。 如为负值,则没有限制。 分隔符不包括在结果列表中。"
18151824

18161825
#: ../../c-api/unicode.rst:1430
18171826
msgid ""
@@ -1824,7 +1833,7 @@ msgstr ""
18241833
msgid ""
18251834
"Join a sequence of strings using the given *separator* and return the "
18261835
"resulting Unicode string."
1827-
msgstr ""
1836+
msgstr "使用给定的 *separator* 合并一个字符串列表并返回结果 Unicode 字符串。"
18281837

18291838
#: ../../c-api/unicode.rst:1444
18301839
msgid ""
@@ -1874,13 +1883,13 @@ msgstr ""
18741883
msgid ""
18751884
"Compare two strings and return ``-1``, ``0``, ``1`` for less than, equal, "
18761885
"and greater than, respectively."
1877-
msgstr ""
1886+
msgstr "比较两个字符串并返回 ``-1``, ``0``, ``1`` 分别表示小于、等于和大于。"
18781887

18791888
#: ../../c-api/unicode.rst:1494
18801889
msgid ""
18811890
"This function returns ``-1`` upon failure, so one should call "
18821891
":c:func:`PyErr_Occurred` to check for errors."
1883-
msgstr ""
1892+
msgstr "此函数执行失败时返回 ``-1``,因此应当调用 :c:func:`PyErr_Occurred` 来检查错误。"
18841893

18851894
#: ../../c-api/unicode.rst:1500
18861895
msgid ""
@@ -1892,35 +1901,37 @@ msgstr ""
18921901

18931902
#: ../../c-api/unicode.rst:1505
18941903
msgid "This function does not raise exceptions."
1895-
msgstr ""
1904+
msgstr "此函数不会引发异常。"
18961905

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

19011910
#: ../../c-api/unicode.rst:1512
19021911
msgid "``NULL`` in case an exception was raised"
1903-
msgstr ""
1912+
msgstr "``NULL`` 用于引发了异常的情况"
19041913

19051914
#: ../../c-api/unicode.rst:1513
19061915
msgid ":c:data:`Py_True` or :c:data:`Py_False` for successful comparisons"
1907-
msgstr ""
1916+
msgstr ":c:data:`Py_True` 或 :c:data:`Py_False` 用于成功完成比较的情况"
19081917

19091918
#: ../../c-api/unicode.rst:1514
19101919
msgid ":c:data:`Py_NotImplemented` in case the type combination is unknown"
1911-
msgstr ""
1920+
msgstr ":c:data:`Py_NotImplemented` 用于类型组合未知的情况"
19121921

19131922
#: ../../c-api/unicode.rst:1516
19141923
msgid ""
19151924
"Possible values for *op* are :c:macro:`Py_GT`, :c:macro:`Py_GE`, "
19161925
":c:macro:`Py_EQ`, :c:macro:`Py_NE`, :c:macro:`Py_LT`, and :c:macro:`Py_LE`."
19171926
msgstr ""
1927+
"可能的 *op* 值有 :c:macro:`Py_GT`, :c:macro:`Py_GE`, :c:macro:`Py_EQ`, "
1928+
":c:macro:`Py_NE`, :c:macro:`Py_LT`, 和 :c:macro:`Py_LE`。"
19181929

19191930
#: ../../c-api/unicode.rst:1522
19201931
msgid ""
19211932
"Return a new string object from *format* and *args*; this is analogous to "
19221933
"``format % args``."
1923-
msgstr ""
1934+
msgstr "根据 *format* 和 *args* 返回一个新的字符串对象;这等同于 ``format % args``。"
19241935

19251936
#: ../../c-api/unicode.rst:1528
19261937
msgid ""
@@ -1955,3 +1966,5 @@ msgid ""
19551966
"object that has been interned, or a new (\"owned\") reference to an earlier "
19561967
"interned string object with the same value."
19571968
msgstr ""
1969+
":c:func:`PyUnicode_FromString` 和 :c:func:`PyUnicode_InternInPlace` "
1970+
"的组合操作,返回一个已内部化的新 Unicode 字符串对象,或一个指向具有相同值的原有内部化字符串对象的新的(“拥有的”)引用。"

extending/newtypes.po

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.11\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2023-12-01 16:44+0000\n"
14+
"POT-Creation-Date: 2023-12-08 16:33+0000\n"
1515
"PO-Revision-Date: 2023-05-24 02:10+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2023\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -391,6 +391,9 @@ msgid ""
391391
" the descriptor from the class object, and get the doc string using its "
392392
":attr:`!__doc__` attribute."
393393
msgstr ""
394+
"使用 :c:member:`~PyTypeObject.tp_members` "
395+
"表来构建用于运行时的描述器还有一个有趣的优点是任何以这种方式定义的属性都可以简单地通过在表中提供文本来设置一个相关联的文档字符串。 "
396+
"一个应用程序可以使用自省 API 从类对象获取描述器,并使用其 :attr:`!__doc__` 属性来获取文档字符串。"
394397

395398
#: ../../extending/newtypes.rst:326
396399
msgid ""
@@ -537,6 +540,9 @@ msgid ""
537540
" which is why you should be careful to avoid returning it when hash "
538541
"computation is successful, as seen above."
539542
msgstr ""
543+
":c:type:`!Py_hash_t` 是一个宽度取决于具体平台的有符号整数类型。 从 "
544+
":c:member:`~PyTypeObject.tp_hash` 返回 ``-1`` "
545+
"表示发生了错误,这就是为什么你应当注意避免在哈希运算成功时返回它,如上面所演示的那样。"
540546

541547
#: ../../extending/newtypes.rst:485
542548
msgid ""

howto/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.11\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2023-11-10 16:49+0000\n"
14+
"POT-Creation-Date: 2023-12-08 16:33+0000\n"
1515
"PO-Revision-Date: 2023-05-24 02:11+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2023\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -430,7 +430,7 @@ msgstr "不建议为旗标使用基于名称的方式,因为未命名的别名
430430

431431
#: ../../howto/enum.rst:508
432432
msgid "Functional API"
433-
msgstr "功能性 API"
433+
msgstr "函数式 API"
434434

435435
#: ../../howto/enum.rst:510
436436
msgid ""

0 commit comments

Comments
 (0)