Skip to content

Commit 1122815

Browse files
[po] auto sync
1 parent 7145921 commit 1122815

File tree

11 files changed

+113
-19
lines changed

11 files changed

+113
-19
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.24%", "updated_at": "2025-04-11T15:56:03Z"}
1+
{"translation": "81.27%", "updated_at": "2025-04-12T09:55:41Z"}

howto/curses.po

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
# ppcfish <ppcfish@gmail.com>, 2021
1010
# Xu Siyuan, 2021
1111
# ProgramRipper, 2023
12-
# Freesand Leo <yuqinju@163.com>, 2024
1312
# lian Wu (Wulian) <xiguawulian@gmail.com>, 2024
13+
# Freesand Leo <yuqinju@163.com>, 2025
1414
#
1515
#, fuzzy
1616
msgid ""
@@ -19,7 +19,7 @@ msgstr ""
1919
"Report-Msgid-Bugs-To: \n"
2020
"POT-Creation-Date: 2025-04-11 14:19+0000\n"
2121
"PO-Revision-Date: 2021-06-28 00:53+0000\n"
22-
"Last-Translator: lian Wu (Wulian) <xiguawulian@gmail.com>, 2024\n"
22+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
2323
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2424
"MIME-Version: 1.0\n"
2525
"Content-Type: text/plain; charset=UTF-8\n"
@@ -285,6 +285,21 @@ msgid ""
285285
"\n"
286286
"wrapper(main)"
287287
msgstr ""
288+
"from curses import wrapper\n"
289+
"\n"
290+
"def main(stdscr):\n"
291+
" # 清空屏幕\n"
292+
" stdscr.clear()\n"
293+
"\n"
294+
" # 当 i == 10 时这将引发 ZeroDivisionError。\n"
295+
" for i in range(0, 11):\n"
296+
" v = i-10\n"
297+
" stdscr.addstr(i, 0, '10 divided by {} is {}'.format(v, 10/v))\n"
298+
"\n"
299+
" stdscr.refresh()\n"
300+
" stdscr.getkey()\n"
301+
"\n"
302+
"wrapper(main)"
288303

289304
#: ../../howto/curses.rst:153
290305
msgid ""

library/contextlib.po

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ msgid ""
9999
"and doesn't implement a ``close()`` method for use with "
100100
"``contextlib.closing``."
101101
msgstr ""
102+
"尽管许多对象都原生支持在 with 语句中使用,但有时需要被管理的资源本身并不是上下文管理器,并且没有实现 ``close()`` 方法以配合 "
103+
"``contextlib.closing`` 使用。"
102104

103105
#: ../../library/contextlib.rst:54
104106
msgid ""

library/dataclasses.po

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,10 @@ msgid ""
352352
"is called. See the :term:`parameter` glossary entry for details. Also see "
353353
"the :const:`KW_ONLY` section."
354354
msgstr ""
355+
"*kw_only*: 如为真值 (默认值为 ``False``),则所有字段都将被标记为仅限关键字的。 "
356+
"如果一个字段被标记为仅限关键字的,则唯一的影响是由仅限关键字的字段生成的 :meth:`~object.__init__` 形参在 "
357+
":meth:`!__init__` 被调用时必须以关键字形式来指定。 详情参见 :term:`parameter` 术语表条目。 另请参阅 "
358+
":const:`KW_ONLY` 一节。"
355359

356360
#: ../../library/dataclasses.rst:182
357361
msgid "Keyword-only fields are not included in :attr:`!__match_args__`."

library/datetime.po

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2222,6 +2222,8 @@ msgid ""
22222222
"create a naive datetime from an aware datetime with no conversion of date "
22232223
"and time data."
22242224
msgstr ""
2225+
"返回一个具有同样属性的新的 :class:`datetime` 对象,但更新指定的形参。 请注意可以通过指定 ``tzinfo=None`` "
2226+
"基于一个感知型 datetime 创建一个简单型 datetime 而不必转换日期和时间数据。"
22252227

22262228
#: ../../library/datetime.rst:1323
22272229
msgid ""
@@ -3144,6 +3146,8 @@ msgid ""
31443146
"naive :class:`.time` from an aware :class:`.time`, without conversion of the"
31453147
" time data."
31463148
msgstr ""
3149+
"返回一个具有同样属性的新的 :class:`.time` 对象,但更新指定的形参。 请注意可以通过指定 ``tzinfo=None`` 基于一个感知型 "
3150+
":class:`.time` 创建一个简单型 :class:`.time`,而不必转换时间数据。"
31473151

31483152
#: ../../library/datetime.rst:1901
31493153
msgid ""

library/email.examples.po

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Translators:
77
# eric R <trencyclopedia@gmail.com>, 2021
88
# Alpha Du <alphanow@gmail.com>, 2021
9-
# Freesand Leo <yuqinju@163.com>, 2024
9+
# Freesand Leo <yuqinju@163.com>, 2025
1010
#
1111
#, fuzzy
1212
msgid ""
@@ -15,7 +15,7 @@ msgstr ""
1515
"Report-Msgid-Bugs-To: \n"
1616
"POT-Creation-Date: 2025-04-11 14:19+0000\n"
1717
"PO-Revision-Date: 2021-06-28 01:05+0000\n"
18-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n"
18+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
1919
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2020
"MIME-Version: 1.0\n"
2121
"Content-Type: text/plain; charset=UTF-8\n"
@@ -559,6 +559,61 @@ msgid ""
559559
"with smtplib.SMTP('localhost') as s:\n"
560560
" s.send_message(msg)\n"
561561
msgstr ""
562+
"#!/usr/bin/env python3\n"
563+
"\n"
564+
"import smtplib\n"
565+
"\n"
566+
"from email.message import EmailMessage\n"
567+
"from email.headerregistry import Address\n"
568+
"from email.utils import make_msgid\n"
569+
"\n"
570+
"# 创建基本的文本消息。\n"
571+
"msg = EmailMessage()\n"
572+
"msg['Subject'] = \"Pourquoi pas des asperges pour ce midi ?\"\n"
573+
"msg['From'] = Address(\"Pepé Le Pew\", \"pepe\", \"example.com\")\n"
574+
"msg['To'] = (Address(\"Penelope Pussycat\", \"penelope\", \"example.com\"),\n"
575+
" Address(\"Fabrette Pussycat\", \"fabrette\", \"example.com\"))\n"
576+
"msg.set_content(\"\"\"\\\n"
577+
"Salut!\n"
578+
"\n"
579+
"Cette recette [1] sera sûrement un très bon repas.\n"
580+
"\n"
581+
"[1] http://www.yummly.com/recipe/Roasted-Asparagus-Epicurious-203718\n"
582+
"\n"
583+
"--Pepé\n"
584+
"\"\"\")\n"
585+
"\n"
586+
"# 增加 html 版本。 这会将消息转换为一个 multipart/alternative 容器,\n"
587+
"# 原始文本消息作为第一部分而新的 html 消息作为第二部分。\n"
588+
"asparagus_cid = make_msgid()\n"
589+
"msg.add_alternative(\"\"\"\\\n"
590+
"<html>\n"
591+
" <head></head>\n"
592+
" <body>\n"
593+
" <p>Salut!</p>\n"
594+
" <p>Cette\n"
595+
" <a href=\"http://www.yummly.com/recipe/Roasted-Asparagus-Epicurious-203718\">\n"
596+
" recette\n"
597+
" </a> sera sûrement un très bon repas.\n"
598+
" </p>\n"
599+
" <img src=\"cid:{asparagus_cid}\">\n"
600+
" </body>\n"
601+
"</html>\n"
602+
"\"\"\".format(asparagus_cid=asparagus_cid[1:-1]), subtype='html')\n"
603+
"# 请注意我们需要将 <> 从 msgid 中去掉以便在 html 中使用。\n"
604+
"\n"
605+
"# 现在添加相关图像到 html 部分中。\n"
606+
"with open(\"roasted-asparagus.jpg\", 'rb') as img:\n"
607+
" msg.get_payload()[1].add_related(img.read(), 'image', 'jpeg',\n"
608+
" cid=asparagus_cid)\n"
609+
"\n"
610+
"# 创建我们将要发送的内容的本地副本。\n"
611+
"with open('outgoing.msg', 'wb') as f:\n"
612+
" f.write(bytes(msg))\n"
613+
"\n"
614+
"# 通过本地 SMTP 服务器发送消息。\n"
615+
"with smtplib.SMTP('localhost') as s:\n"
616+
" s.send_message(msg)\n"
562617

563618
#: ../../library/email.examples.rst:47
564619
msgid ""

library/gzip.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# 汪心禾 <wangxinhe06@gmail.com>, 2021
99
# 1lin24 <1lin24@sina.com>, 2021
1010
# ProgramRipper, 2023
11-
# Freesand Leo <yuqinju@163.com>, 2024
11+
# Freesand Leo <yuqinju@163.com>, 2025
1212
#
1313
#, fuzzy
1414
msgid ""
@@ -17,7 +17,7 @@ msgstr ""
1717
"Report-Msgid-Bugs-To: \n"
1818
"POT-Creation-Date: 2025-04-11 14:19+0000\n"
1919
"PO-Revision-Date: 2021-06-28 01:07+0000\n"
20-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n"
20+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
2121
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2222
"MIME-Version: 1.0\n"
2323
"Content-Type: text/plain; charset=UTF-8\n"
@@ -250,7 +250,7 @@ msgstr ":class:`GzipFile` 还提供了以下的方法和属性:"
250250
msgid ""
251251
"Read *n* uncompressed bytes without advancing the file position. The number "
252252
"of bytes returned may be more or less than requested."
253-
msgstr ""
253+
msgstr "读取 *n* 个未压缩字节而不前移文件指针位置。 所返回的字节数有可能多于或少于所请求的。"
254254

255255
#: ../../library/gzip.rst:127
256256
msgid ""

library/json.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,9 @@ msgid ""
834834
":class:`float`, :class:`bool` or ``None``. If *skipkeys* is true, such "
835835
"items are simply skipped."
836836
msgstr ""
837+
"如果 *skipkeys* 为假值(默认),则当尝试对不为 :class:`str`, :class:`int`, :class:`float`, "
838+
":class:`bool` 或 ``None`` 的键进行编码时将会引发 :exc:`TypeError`。 如果 *skipkeys* "
839+
"为真值,这样的条目将被直接跳过。"
837840

838841
#: ../../library/json.rst:492
839842
msgid ""

library/pdb.po

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,8 @@ msgid ""
10981098
"chained exceptions using ``exceptions`` command to list exceptions, and "
10991099
"``exceptions <number>`` to switch to that exception."
11001100
msgstr ""
1101+
"当将 ``pdb.pm()`` 或 ``Pdb.post_mortem(...)`` 用于串连的异常而不是回溯数据时,它允许用户使用 "
1102+
"``exceptions`` 命令在串连的异常间移动以列出异常,并使用 ``exceptions <number>`` 来切换到该异常。"
11011103

11021104
#: ../../library/pdb.rst:703
11031105
msgid ""

library/re.po

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# CCXXXI <ccxxxi@qq.com>, 2022
1616
# Chris Lau, 2022
1717
# lian Wu (Wulian) <xiguawulian@gmail.com>, 2024
18-
# Freesand Leo <yuqinju@163.com>, 2024
18+
# Freesand Leo <yuqinju@163.com>, 2025
1919
#
2020
#, fuzzy
2121
msgid ""
@@ -24,7 +24,7 @@ msgstr ""
2424
"Report-Msgid-Bugs-To: \n"
2525
"POT-Creation-Date: 2025-04-11 14:19+0000\n"
2626
"PO-Revision-Date: 2021-06-28 01:12+0000\n"
27-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n"
27+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
2828
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2929
"MIME-Version: 1.0\n"
3030
"Content-Type: text/plain; charset=UTF-8\n"
@@ -439,6 +439,8 @@ msgid ""
439439
"For example, ``[(+*)]`` will match any of the literal characters ``'('``, "
440440
"``'+'``, ``'*'``, or ``')'``."
441441
msgstr ""
442+
"除反斜杠外的特殊字符在集中中会失去其特殊含义。 例如,``[(+*)]`` 将匹配字符字面值 ``'('``, ``'+'``, ``'*'``, 或 "
443+
"``')'`` 中的任何一个。"
442444

443445
#: ../../library/re.rst:260
444446
msgid ""
@@ -451,6 +453,11 @@ msgid ""
451453
" not group references. Special sequences which do not match a single "
452454
"character such as ``\\A`` and ``\\Z`` are not allowed."
453455
msgstr ""
456+
"反斜杠或者用于转义集合中具有特殊含义的字符如 ``'-'``, ``']'``, ``'^'`` 及 ``'\\\\'`` "
457+
"本身或者用于提示代表单个字符的特殊序列如 ``\\xa0`` 或 ``\\n`` 或者用于字符类如 ``\\w`` 或 ``\\S`` (定义见下文)。"
458+
" 请注意 ``\\b`` 是表示单个 \"backspace\" 字符,而不是如在集合以外那样表示单词边界,还有数字转义符如 ``\\1`` "
459+
"将总是为八进制形式的转义,而不是分组引用。 不匹配单个字符的特殊转义符如 ``\\A`` 和 ``\\Z`` 是不被允许的。are not "
460+
"allowed."
454461

455462
#: ../../library/re.rst:273
456463
msgid ""

library/string.po

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ msgstr "``'+'``"
583583
msgid ""
584584
"Indicates that a sign should be used for both positive as well as negative "
585585
"numbers."
586-
msgstr ""
586+
msgstr "表示正负号应当同时用于正数与负数。"
587587

588588
#: ../../library/string.rst:388
589589
msgid "``'-'``"
@@ -593,7 +593,7 @@ msgstr "``'-'``"
593593
msgid ""
594594
"Indicates that a sign should be used only for negative numbers (this is the "
595595
"default behavior)."
596-
msgstr ""
596+
msgstr "表示正负号应当仅用于负数(这是默认的行为)。"
597597

598598
#: ../../library/string.rst:377 ../../library/string.rst:391
599599
msgid "space"
@@ -603,7 +603,7 @@ msgstr "space"
603603
msgid ""
604604
"Indicates that a leading space should be used on positive numbers, and a "
605605
"minus sign on negative numbers."
606-
msgstr ""
606+
msgstr "表示应当对正数使用前导空格,而对负数使用负号。"
607607

608608
#: ../../library/string.rst:398
609609
msgid ""
@@ -639,7 +639,7 @@ msgid ""
639639
"The *width* is a decimal integer defining the minimum total field width, "
640640
"including any prefixes, separators, and other formatting characters. If not "
641641
"specified, then the field width will be determined by the content."
642-
msgstr ""
642+
msgstr "*width* 是一个定义最小总字段宽度的十进制整数,包括任何任何前缀、分隔符和其他格式化字符。 如果未指定,则字段宽度将由内容确定。"
643643

644644
#: ../../library/string.rst:423
645645
msgid ""
@@ -661,22 +661,22 @@ msgstr "在 *width* 字段之前添加 ``'0'`` 不会再影响字符串的默认
661661
msgid ""
662662
"The *grouping* option after the *width* field specifies a digit group "
663663
"separator for the integral part of a number. It can be one of the following:"
664-
msgstr ""
664+
msgstr "在 *width* 字段之后的 *grouping* 选项指定用于数字的整数部分的数位组分隔符。 它可以为下列值之一:"
665665

666666
#: ../../library/string.rst:444
667667
msgid "``','``"
668-
msgstr ""
668+
msgstr "``','``"
669669

670670
#: ../../library/string.rst:444
671671
msgid ""
672672
"Inserts a comma every 3 digits for integer presentation type ``'d'`` and "
673673
"floating-point presentation types, excluding ``'n'``. For other presentation"
674674
" types, this option is not supported."
675-
msgstr ""
675+
msgstr "对于整数表示类型 ``'d'`` 和 ``'n'`` 以外的浮点数表示类型每 3 个数位插入一个逗号。 对于其他表示类型,此选项不受支持。"
676676

677677
#: ../../library/string.rst:450
678678
msgid "``'_'``"
679-
msgstr ""
679+
msgstr "``'_'``"
680680

681681
#: ../../library/string.rst:450
682682
msgid ""
@@ -686,11 +686,13 @@ msgid ""
686686
"inserted every 4 digits. For other presentation types, this option is not "
687687
"supported."
688688
msgstr ""
689+
"对于整数表示类型 ``'d'`` 和 ``'n'`` 以外的浮点数表示类型,每 3 个数位插入一个下划线。 对于整数表示类型 ``'b'``, "
690+
"``'o'``, ``'x'`` 和 ``'X'``,则每 4 个数位插入一个下划线。 对于其他表示类型,此选项不受支持。"
689691

690692
#: ../../library/string.rst:460
691693
msgid ""
692694
"For a locale aware separator, use the ``'n'`` presentation type instead."
693-
msgstr ""
695+
msgstr "想要能感知语言区域的分隔符,请改用 ``'n'`` 表示类型。"
694696

695697
#: ../../library/string.rst:462
696698
msgid "Added the ``','`` option (see also :pep:`378`)."

0 commit comments

Comments
 (0)