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

Skip to content

Commit cc85aa1

Browse files
[po] auto sync
1 parent 107e029 commit cc85aa1

File tree

7 files changed

+301
-99
lines changed

7 files changed

+301
-99
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "88.36%", "updated_at": "2024-08-31T11:47:14Z"}
1+
{"translation": "88.39%", "updated_at": "2024-09-01T07:47:17Z"}

c-api/tuple.po

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-08-30 14:55+0000\n"
14+
"POT-Creation-Date: 2024-08-31 11:30+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:32+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2024\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -53,7 +53,7 @@ msgstr "如果 *p* 是一个 tuple 对象但不是 tuple 类型的子类型的
5353
msgid ""
5454
"Return a new tuple object of size *len*, or ``NULL`` with an exception set "
5555
"on failure."
56-
msgstr ""
56+
msgstr "返回一个长度为 *len* 的新元组对象,或者失败时返回 ``NULL`` 并设置一个异常。"
5757

5858
#: ../../c-api/tuple.rst:42
5959
msgid ""
@@ -62,16 +62,18 @@ msgid ""
6262
"pointing to Python objects. ``PyTuple_Pack(2, a, b)`` is equivalent to "
6363
"``Py_BuildValue(\"(OO)\", a, b)``."
6464
msgstr ""
65+
"返回一个长度为 *n* 的新元组对象,或者失败时返回 ``NULL`` 并设置一个异常。 元组值初始化为指向 Python 对象的后续 *n* 个 C "
66+
"参数。 ``PyTuple_Pack(2, a, b)`` 等价于 ``Py_BuildValue(\"(OO)\", a, b)``。"
6567

6668
#: ../../c-api/tuple.rst:50
6769
msgid ""
6870
"Take a pointer to a tuple object, and return the size of that tuple. On "
6971
"error, return ``-1`` and with an exception set."
70-
msgstr ""
72+
msgstr "接受一个指向元组对象的指针,并返回该元组的大小。 失败时,返回 ``-1`` 并设置一个异常。"
7173

7274
#: ../../c-api/tuple.rst:56
7375
msgid "Like :c:func:`PyTuple_Size`, but without error checking."
74-
msgstr ""
76+
msgstr "类似于 :c:func:`PyTuple_Size`,但是不带错误检测。"
7577

7678
#: ../../c-api/tuple.rst:61
7779
msgid ""
@@ -101,13 +103,13 @@ msgstr "类似于 :c:func:`PyTuple_GetItem`,但不检查其参数。"
101103
msgid ""
102104
"Return the slice of the tuple pointed to by *p* between *low* and *high*, or"
103105
" ``NULL`` with an exception set on failure."
104-
msgstr ""
106+
msgstr "返回一个 *p* 指向的元组的 *low* 和 *high* 之间的切片,或者失败时返回 ``NULL`` 并设置一个异常。"
105107

106108
#: ../../c-api/tuple.rst:81
107109
msgid ""
108110
"This is the equivalent of the Python expression ``p[low:high]``. Indexing "
109111
"from the end of the tuple is not supported."
110-
msgstr ""
112+
msgstr "这等价于 Python 表达式 ``p[low:high]``。 不支持从元组末尾进行索引。"
111113

112114
#: ../../c-api/tuple.rst:87
113115
msgid ""
@@ -185,7 +187,7 @@ msgstr ""
185187

186188
#: ../../c-api/tuple.rst:139 ../../c-api/tuple.rst:207
187189
msgid "Return ``NULL`` with an exception set on failure."
188-
msgstr ""
190+
msgstr "失败时返回 ``NULL`` 并设置一个异常。"
189191

190192
#: ../../c-api/tuple.rst:144
191193
msgid "Initializes a struct sequence type *type* from *desc* in place."
@@ -196,6 +198,7 @@ msgid ""
196198
"Like :c:func:`PyStructSequence_InitType`, but returns ``0`` on success and "
197199
"``-1`` with an exception set on failure."
198200
msgstr ""
201+
"类似于 :c:func:`PyStructSequence_InitType`,但成功时返回 ``0`` 而失败时返回 ``-1`` 并设置一个异常。"
199202

200203
#: ../../c-api/tuple.rst:157
201204
msgid "Contains the meta information of a struct sequence type to create."

library/array.po

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ msgid ""
1414
msgstr ""
1515
"Project-Id-Version: Python 3.12\n"
1616
"Report-Msgid-Bugs-To: \n"
17-
"POT-Creation-Date: 2024-08-30 14:55+0000\n"
17+
"POT-Creation-Date: 2024-08-31 11:30+0000\n"
1818
"PO-Revision-Date: 2024-05-11 00:33+0000\n"
1919
"Last-Translator: Freesand Leo <[email protected]>, 2024\n"
2020
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -255,9 +255,9 @@ msgid ""
255255
"otherwise, the initializer's iterator is passed to the :meth:`extend` method"
256256
" to add initial items to the array."
257257
msgstr ""
258-
"如果给定了一个 :class:`bytes` 或 :class:`bytearray` 对象,则将 *initializer* 传给新数组的 "
259-
":meth:`frombytes` 方法;如果给定了一个 Unicode 字符串,则将 *initializer* 传给 "
260-
":meth:`fromunicode` 方法;在其他情况下,则将 *initializer* 的迭代器传给 :meth:`extend` "
258+
"如果给出一个 :class:`bytes` 或 :class:`bytearray` 对象,则将 initializer 传给新数组的 "
259+
":meth:`frombytes` 方法;如果给出一个 Unicode 字符串,则将 initializer 传给 "
260+
":meth:`fromunicode` 方法;在其他情况下,则将 initializer 的迭代器传给 :meth:`extend` "
261261
"方法以向数组添加初始条目。"
262262

263263
#: ../../library/array.rst:90
@@ -466,6 +466,18 @@ msgstr ""
466466
"import array`` 语句引入 :class:`~array.array` 类。 若数组对象包括 Inf 或 NaN 浮点值,则相对应的 "
467467
"``inf`` 和 ``nan`` 变量必须被定义。 举例如下::"
468468

469+
#: ../../library/array.rst:259
470+
msgid ""
471+
"array('l')\n"
472+
"array('u', 'hello \\u2641')\n"
473+
"array('l', [1, 2, 3, 4, 5])\n"
474+
"array('d', [1.0, 2.0, 3.14, -inf, nan])"
475+
msgstr ""
476+
"array('l')\n"
477+
"array('u', 'hello \\u2641')\n"
478+
"array('l', [1, 2, 3, 4, 5])\n"
479+
"array('d', [1.0, 2.0, 3.14, -inf, nan])"
480+
469481
#: ../../library/array.rst:267
470482
msgid "Module :mod:`struct`"
471483
msgstr ":mod:`struct` 模块"

library/smtplib.po

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.12\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2024-08-09 17:14+0000\n"
14+
"POT-Creation-Date: 2024-08-31 11:30+0000\n"
1515
"PO-Revision-Date: 2024-05-11 00:33+0000\n"
1616
"Last-Translator: Rafael Fontenelle <[email protected]>, 2024\n"
1717
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -101,6 +101,16 @@ msgstr ""
101101
":class:`SMTP` 类支持 :keyword:`with` 语句。当这样使用时,:keyword:`!with` 语句一退出就会自动发出 "
102102
"SMTP ``QUIT`` 命令。例如::"
103103

104+
#: ../../library/smtplib.rst:52
105+
msgid ""
106+
">>> from smtplib import SMTP\n"
107+
">>> with SMTP(\"domain.org\") as smtp:\n"
108+
"... smtp.noop()\n"
109+
"...\n"
110+
"(250, b'Ok')\n"
111+
">>>"
112+
msgstr ""
113+
104114
#: ../../library/smtplib.rst:59 ../../library/smtplib.rst:61
105115
msgid ""
106116
"All commands will raise an :ref:`auditing event <auditing>` "
@@ -526,6 +536,10 @@ msgid ""
526536
"*authobject* must be a callable object taking an optional single argument::"
527537
msgstr "*authobject* 必须为接受一个可选的单独参数的可调用对象::"
528538

539+
#: ../../library/smtplib.rst:356
540+
msgid "data = authobject(challenge=None)"
541+
msgstr "data = authobject(challenge=None)"
542+
529543
#: ../../library/smtplib.rst:358
530544
msgid ""
531545
"If optional keyword argument *initial_response_ok* is true, ``authobject()``"
@@ -856,6 +870,36 @@ msgstr ""
856870
"请注意包括在消息中的标头必须包括在输入的消息中;这个例子不对 :rfc:`822` 标头进行任何处理。 具体来说,'To' 和 'From' "
857871
"地址必须显式地包括在消息标头中::"
858872

873+
#: ../../library/smtplib.rst:561
874+
msgid ""
875+
"import smtplib\n"
876+
"\n"
877+
"def prompt(title):\n"
878+
" return input(title).strip()\n"
879+
"\n"
880+
"from_addr = prompt(\"From: \")\n"
881+
"to_addrs = prompt(\"To: \").split()\n"
882+
"print(\"Enter message, end with ^D (Unix) or ^Z (Windows):\")\n"
883+
"\n"
884+
"# Add the From: and To: headers at the start!\n"
885+
"lines = [f\"From: {from_addr}\", f\"To: {', '.join(to_addrs)}\", \"\"]\n"
886+
"while True:\n"
887+
" try:\n"
888+
" line = input()\n"
889+
" except EOFError:\n"
890+
" break\n"
891+
" else:\n"
892+
" lines.append(line)\n"
893+
"\n"
894+
"msg = \"\\r\\n\".join(lines)\n"
895+
"print(\"Message length is\", len(msg))\n"
896+
"\n"
897+
"server = smtplib.SMTP(\"localhost\")\n"
898+
"server.set_debuglevel(1)\n"
899+
"server.sendmail(from_addr, to_addrs, msg)\n"
900+
"server.quit()"
901+
msgstr ""
902+
859903
#: ../../library/smtplib.rst:590
860904
msgid ""
861905
"In general, you will want to use the :mod:`email` package's features to "

library/stdtypes.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ msgstr ""
13151315
msgid ""
13161316
"The use of the bitwise inversion operator ``~`` is deprecated and will raise"
13171317
" an error in Python 3.16."
1318-
msgstr ""
1318+
msgstr "使用按位取反运算符 ``~`` 已被弃用并将在 Python 3.16 中引发错误。"
13191319

13201320
#: ../../library/stdtypes.rst:837
13211321
msgid ""

0 commit comments

Comments
 (0)