8000 [po] auto sync · python/python-docs-zh-cn@9e97765 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9e97765

Browse files
[po] auto sync
1 parent 600fc66 commit 9e97765

File tree

5 files changed

+35
-9
lines changed

5 files changed

+35
-9
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.06%", "updated_at": "2025-03-14T16:55:53Z"}
1+
{"translation": "81.08%", "updated_at": "2025-03-17T01:19:43Z"}

library/argparse.po

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ msgid ""
2020
msgstr ""
2121
"Project-Id-Version: Python 3.13\n"
2222
"Report-Msgid-Bugs-To: \n"
23-
"POT-Creation-Date: 2025-03-07 14:18+0000\n"
23+
"POT-Creation-Date: 2025-03-14 14:17+0000\n"
2424
"PO-Revision-Date: 2021-06-28 00:54+0000\n"
2525
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
2626
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -1000,6 +1000,8 @@ msgid ""
10001000
"displays the parser's help message. If ``-h`` or ``--help`` is supplied at "
10011001
"the command line, the :class:`!ArgumentParser` help will be printed."
10021002
msgstr ""
1003+
"在默认情况下,:class:`ArgumentParser` 对象会添加一个简单地显示解析器的帮助消息的选项。 如果在命令行中提供了 ``-h`` 或 "
1004+
"``--help``,则会打印 :class:`!ArgumentParser` 帮助消息。"
10031005

10041006
#: ../../library/argparse.rst:522
10051007
msgid ""
@@ -1065,6 +1067,8 @@ msgid ""
10651067
"will print a *message* to :data:`sys.stderr` and exit with a status code of "
10661068
"2."
10671069
msgstr ""
1070+
"通常,当你向 :class:`ArgumentParser` :meth:`~ArgumentParser.parse_args` "
1071+
"方法传入一个无效的参数列表时,它会将 *message* 打印到 :data:`sys.stderr` 并附带状态码 2 退出程序。"
10681072

10691073
#: ../../library/argparse.rst:555
10701074
msgid ""

library/asyncio-subprocess.po

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ msgstr "杀掉子进程。"
442442
msgid ""
443443
"On POSIX systems this method sends :py:data:`~signal.SIGKILL` to the child "
444444
"process."
445-
msgstr ""
445+
msgstr "在 POSIX 系统中此方法会发送 :py:data:`~signal.SIGKILL` 给子进程。"
446446

447447
#: ../../library/asyncio-subprocess.rst:269
448448
msgid "On Windows this method is an alias for :meth:`terminate`."
@@ -453,18 +453,24 @@ msgid ""
453453
"Standard input stream (:class:`~asyncio.StreamWriter`) or ``None`` if the "
454454
"process was created with ``stdin=None``."
455455
msgstr ""
456+
"标准输入流 (:class:`~asyncio.StreamWriter`) 或者如果进程创建时设置了 ``stdin=None`` 则为 "
457+
"``None``。"
456458

457459
#: ../../library/asyncio-subprocess.rst:278
458460
msgid ""
459461
"Standard output stream (:class:`~asyncio.StreamReader`) or ``None`` if the "
460462
"process was created with ``stdout=None``."
461463
msgstr ""
464+
"标准输出流 (:class:`~asyncio.StreamReader`) 或者如果进程创建时设置了 ``stdout=None`` 则为 "
465+
"``None``。"
462466

463467
#: ../../library/asyncio-subprocess.rst:283
464468
msgid ""
465469
"Standard error stream (:class:`~asyncio.StreamReader`) or ``None`` if the "
466470
"process was created with ``stderr=None``."
467471
msgstr ""
472+
"标准错误流 (:class:`~asyncio.StreamReader`) 或者如果进程创建时设置了 ``stderr=None`` 则为 "
473+
"``None``。"
468474

469475
#: ../../library/asyncio-subprocess.rst:288
470476
msgid ""
@@ -487,6 +493,8 @@ msgid ""
487493
":func:`~asyncio.create_subprocess_shell` function, this attribute is the PID"
488494
" of the spawned shell."
489495
msgstr ""
496+
"请注意对于由 :func:`~asyncio.create_subprocess_shell` 函数所创建的进程,这个属性将是所生成的 shell 的 "
497+
"PID。"
490498

491499
#: ../../library/asyncio-subprocess.rst:304
492500
msgid "Return code of the process when it exits."

library/pdb.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ msgstr "你还可以从命令行唤起 :mod:`pdb` 来调试其他脚本。 例
161161

162162
#: ../../library/pdb.rst:83
163163
msgid "python -m pdb [-c command] (-m module | pyfile) [args ...]"
164-
msgstr ""
164+
msgstr "python -m pdb [-c command] (-m module | pyfile) [args ...]"
165165

166166
#: ../../library/pdb.rst:85
167167
msgid ""
@@ -179,21 +179,21 @@ msgstr ""
179179
msgid ""
180180
"To execute commands as if given in a :file:`.pdbrc` file; see "
181181
":ref:`debugger-commands`."
182-
msgstr ""
182+
msgstr "要以在 :file:`.pdbrc` 文件中所给出形式来执行命令;请参阅 :ref:`debugger-commands`。"
183183

184184
#: ../../library/pdb.rst:96
185185
msgid "Added the ``-c`` option."
186-
msgstr ""
186+
msgstr "增加了 ``-c`` 选项。"
187187

188188
#: ../../library/pdb.rst:101
189189
msgid ""
190190
"To execute modules similar to the way ``python -m`` does. As with a script, "
191191
"the debugger will pause execution just before the first line of the module."
192-
msgstr ""
192+
msgstr "要以类似于 ``python -m`` 的方式来执行模块。 就像一个脚本那样,调试器将在模块的第一行之前暂停执行。"
193193

194194
#: ../../library/pdb.rst:104
195195
msgid "Added the ``-m`` option."
196-
msgstr ""
196+
msgstr "增加了 ``-m`` 选项。"
197197

198198
#: ../../library/pdb.rst:107
199199
msgid ""

library/typing.po

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2616,6 +2616,8 @@ msgid ""
26162616
"order of the metadata elements is preserved and matters for equality "
26172617
"checks::"
26182618
msgstr ""
2619+
"传给 ``Annotated`` 的第一个参数必须是合法的类型。 可以将多个元数据元素作为支持可变参数的 ``Annotated`` 来提供。 "
2620+
"元数据元素的顺序将被保留并会影响相等性检测::"
26192621

26202622
#: ../../library/typing.rst:1375
26212623
msgid ""
@@ -2628,6 +2630,14 @@ msgid ""
26282630
"\n"
26292631
"assert a1 != a2 # Order matters"
26302632
msgstr ""
2633+
"@dataclass\n"
2634+
"class ctype:\n"
2635+
" kind: str\n"
2636+
"\n"
2637+
"a1 = Annotated[int, ValueRange(3, 10), ctype(\"char\")]\n"
2638+
"a2 = Annotated[int, ctype(\"char\"), ValueRange(3, 10)]\n"
2639+
"\n"
2640+
"assert a1 != a2 # 顺序会有影响"
26312641

26322642
#: ../../library/typing.rst:1384
26332643
msgid ""
@@ -2701,12 +2711,16 @@ msgid ""
27012711
"type Variadic[*Ts] = Annotated[*Ts, Ann1] = Annotated[T1, T2, T3, ..., Ann1]"
27022712
" # NOT valid"
27032713
msgstr ""
2714+
"type Variadic[*Ts] = Annotated[*Ts, Ann1] = Annotated[T1, T2, T3, ..., Ann1]"
2715+
" # 不合法"
27042716

27052717
#: ../../library/typing.rst:1419
27062718
msgid ""
27072719
"where ``T1``, ``T2``, ... are :class:`TypeVars <TypeVar>`. This is invalid "
27082720
"as only one type should be passed to Annotated."
27092721
msgstr ""
2722+
"其中 ``T1``, ``T2`` ... 都是 :class:`TypeVars <TypeVar>`。 这是不合法的因为只能传递一种类型给 "
2723+
"Annotated。"
27102724

27112725
#: ../../library/typing.rst:1422
27122726
msgid ""
@@ -2759,7 +2773,7 @@ msgstr ""
27592773
msgid ""
27602774
"If you want to retrieve the original type wrapped by ``Annotated``, use the "
27612775
":attr:`!__origin__` attribute:"
2762-
msgstr ""
2776+
msgstr "如果你想要获取由 ``Annotated`` 包装的原始类型,请使用 :attr:`!__origin__` 属性:"
27632777

27642778
#: ../../library/typing.rst:1450
27652779
msgid ""

0 commit comments

Comments
 (0)
0