Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3265526

Browse files
committed
force update 3.14 po files
1 parent98cdaa7 commit3265526

File tree

8 files changed

+68
-37
lines changed

8 files changed

+68
-37
lines changed

‎deprecations/c-api-pending-removal-in-3.15.po

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,8 @@ msgid ""
8282
" Note that some codecs (for example,\"base64\") may return a type other "
8383
"than :class:`bytes`, such as :class:`str`."
8484
msgstr""
85-
":c:func:`!PyUnicode_AsEncodedUnicode`: Use :c:func:`PyCodec_Encode` instead;"
86-
" Note that some codecs (for example,\"base64\") may return a type other "
87-
"than :class:`bytes`, such as :class:`str`."
85+
":c:func:`!PyUnicode_AsEncodedUnicode`: 使用 :c:func:`PyCodec_Encode` "
86+
"代替;请注意,某些编解码器(如\"base64\")可能返回 :class:`bytes` 之外的类型,如 :class:`str`。"
8887

8988
#:../../deprecations/c-api-pending-removal-in-3.15.rst:23
9089
msgid"Python initialization functions, deprecated in Python 3.13:"
@@ -143,8 +142,8 @@ msgid ""
143142
":c:func:`Py_GetPythonHome`: Use :c:func:`PyConfig_Get(\"home\") "
144143
"<PyConfig_Get>` or the :envvar:`PYTHONHOME` environment variable instead."
145144
msgstr""
146-
":c:func:`Py_GetPythonHome`:Use :c:func:`PyConfig_Get(\"home\") "
147-
"<PyConfig_Get>`or the:envvar:`PYTHONHOME`environment variable instead."
145+
":c:func:`Py_GetPythonHome`:使用 :c:func:`PyConfig_Get(\"home\") "
146+
"<PyConfig_Get>`:envvar:`PYTHONHOME`环境变量代替。"
148147

149148
#:../../deprecations/c-api-pending-removal-in-3.15.rst:49
150149
msgid""
@@ -380,6 +379,5 @@ msgid ""
380379
":c:type:`PyConfig` to set these options. Or :c:func:`PyConfig_Get` can be "
381380
"used to get these options at runtime."
382381
msgstr""
383-
"The :c:func:`Py_InitializeFromConfig` API should be used with "
384-
":c:type:`PyConfig` to set these options. Or :c:func:`PyConfig_Get` can be "
385-
"used to get these options at runtime."
382+
":c:func:`Py_InitializeFromConfig` API 应与 :c:type:`PyConfig` 一起使用,以设置这些选项。 "
383+
"或者使用 :c:func:`PyConfig_Get` 在运行时获取这些选项。"

‎deprecations/pending-removal-in-3.15.po

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#
66
# Translators:
77
# Freesand Leo <yuqinju@163.com>, 2025
8+
# Alpha Du <alphanow@gmail.com>, 2025
89
#
910
#,fuzzy
1011
msgid ""
@@ -13,7 +14,7 @@ msgstr ""
1314
"Report-Msgid-Bugs-To:\n"
1415
"POT-Creation-Date:2025-05-09 14:19+0000\n"
1516
"PO-Revision-Date:2024-07-20 00:54+0000\n"
16-
"Last-Translator:Freesand Leo <yuqinju@163.com>, 2025\n"
17+
"Last-Translator:Alpha Du <alphanow@gmail.com>, 2025\n"
1718
"Language-Team:Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1819
"MIME-Version:1.0\n"
1920
"Content-Type:text/plain; charset=UTF-8\n"
@@ -222,6 +223,6 @@ msgid ""
222223
"3.10. Use :meth:`~zipimport.zipimporter.exec_module` instead. (Contributed "
223224
"by Jiahao Li in :gh:`125746`.)"
224225
msgstr""
225-
":meth:`~zipimport.zipimporter.load_module`has been deprecated sincePython "
226-
"3.10. Use:meth:`~zipimport.zipimporter.exec_module`instead. (Contributed "
227-
"by Jiahao Li in :gh:`125746`.)"
226+
":meth:`~zipimport.zipimporter.load_module`Python 3.10 "
227+
"起已被弃用。请改用:meth:`~zipimport.zipimporter.exec_module`。(由李佳昊在 :gh:`125746` "
228+
"中贡献。)"

‎library/inspect.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -332,13 +332,13 @@ msgstr "此帧所看到的局部命名空间"
332332

333333
#:../../library/inspect.rst:153
334334
msgid"f_generator"
335-
msgstr""
335+
msgstr"f_generator"
336336

337337
#:../../library/inspect.rst:153
338338
msgid""
339339
"returns the generator or coroutine object that owns this frame, or ``None`` "
340340
"if the frame is of a regular function"
341-
msgstr""
341+
msgstr"返回拥有该帧的生成器或协程,或者如果该帧是属于常规函数则返回 ``None``"
342342

343343
#:../../library/inspect.rst:159
344344
msgid"f_trace"
@@ -350,16 +350,16 @@ msgstr "此帧的追踪函数,或 ``None``"
350350

351351
#:../../library/inspect.rst:162
352352
msgid"f_trace_lines"
353-
msgstr""
353+
msgstr"f_trace_lines"
354354

355355
#:../../library/inspect.rst:162
356356
msgid""
357357
"indicate whether a tracing event is triggered for each source source line"
358-
msgstr""
358+
msgstr"指明一个追踪事件是否针对每个源代码行触发"
359359

360360
#:../../library/inspect.rst:167
361361
msgid"f_trace_opcodes"
362-
msgstr""
362+
msgstr"f_trace_opcodes"
363363

364364
#:../../library/inspect.rst:167
365365
msgid"indicate whether per-opcode events are requested"

‎library/pdb.po

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ msgid ""
457457
"The *colorize* argument, if set to ``True``, will enable colorized output in"
458458
" the debugger, if color is supported. This will highlight source code "
459459
"displayed in pdb."
460-
msgstr""
460+
msgstr"*colorize* 参数如果设为 ``True``,将在调试器中启用彩色输出,如果支持彩色的话。 这将在 pdb 中高亮显示源代码。"
461461

462462
#:../../library/pdb.rst:279
463463
msgid"Example call to enable tracing with *skip*::"
@@ -488,22 +488,24 @@ msgstr "*readrc* 参数。"
488488

489489
#:../../library/pdb.rst:295
490490
msgid"Added the *mode* argument."
491-
msgstr""
491+
msgstr"增加了 *mode* 参数。"
492492

493493
#:../../library/pdb.rst:298
494494
msgid"Added the *backend* argument."
495-
msgstr""
495+
msgstr"增加了 *backend* 参数。"
496496

497497
#:../../library/pdb.rst:301
498498
msgid"Added the *colorize* argument."
499-
msgstr""
499+
msgstr"增加了 *colorize* 参数。"
500500

501501
#:../../library/pdb.rst:304
502502
msgid""
503503
"Inline breakpoints like :func:`breakpoint` or :func:`pdb.set_trace` will "
504504
"always stop the program at calling frame, ignoring the *skip* pattern (if "
505505
"any)."
506506
msgstr""
507+
"内联中断点如 :func:`breakpoint` 或 :func:`pdb.set_trace` 总是会在调用方帧上停止程序,忽略 *skip* "
508+
"模式(如果有的话)。"
507509

508510
#:../../library/pdb.rst:313
509511
msgid"See the documentation for the functions explained above."

‎library/turtle.po

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,8 @@ msgid ""
373373
"manager` instead of :func:`begin_fill` and :func:`end_fill` to automatically"
374374
" begin and end fill. Here is an example::"
375375
msgstr""
376+
"从 Python 3.14 开始,你可以使用 :func:`fill` :term:`context manager` 来代替 "
377+
":func:`begin_fill` 和 :func:`end_fill` 以自动开始和结束填充。 下面是一个示例::"
376378

377379
#:../../library/turtle.rst:223
378380
msgid""
@@ -383,10 +385,16 @@ msgid ""
383385
"\n"
384386
"forward(200)"
385387
msgstr""
388+
"with fill():\n"
389+
" for i in range(4):\n"
390+
" forward(100)\n"
391+
" right(90)\n"
392+
"\n"
393+
"forward(200)"
386394

387395
#:../../library/turtle.rst:230
388396
msgid"The code above is equivalent to::"
389-
msgstr""
397+
msgstr"上面的代码等价于::"
390398

391399
#:../../library/turtle.rst:232
392400
msgid""
@@ -398,6 +406,13 @@ msgid ""
398406
"\n"
399407
"forward(200)"
400408
msgstr""
409+
"begin_fill()\n"
410+
"for i in range(4):\n"
411+
" forward(100)\n"
412+
" right(90)\n"
413+
"end_fill()\n"
414+
"\n"
415+
"forward(200)"
401416

402417
#:../../library/turtle.rst:242
403418
msgid"Use the ``turtle`` module namespace"
@@ -728,7 +743,7 @@ msgstr ":func:`filling` 是否填充"
728743

729744
#:../../library/turtle.rst:0
730745
msgid":func:`fill`"
731-
msgstr""
746+
msgstr":func:`fill`"
732747

733748
#:../../library/turtle.rst:0
734749
msgid":func:`begin_fill`"

‎library/typing.po

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
# Nyuan Zhang, 2024
1919
# Alpha Du <alphanow@gmail.com>, 2024
2020
# cdarlint <cdarling@126.com>, 2025
21+
# 宋彥筠, 2025
2122
# Freesand Leo <yuqinju@163.com>, 2025
2223
#
2324
#,fuzzy
@@ -2225,6 +2226,10 @@ msgid ""
22252226
"Union)``. For compatibility with earlier versions of Python, use "
22262227
"``get_origin(obj) is typing.Union or get_origin(obj) is types.UnionType``."
22272228
msgstr""
2229+
":class:`types.UnionType` 现在是 :class:`Union` 的别名,``Union[int, str]`` 和 ``int "
2230+
"| str`` 都会创建相同类的实例。如果要在运行时检查对象是否为 ``Union`` 类型,请使用 ``isinstance(obj, "
2231+
"Union)``。为保持与早期 Python 版本的兼容性,可以使用 ``get_origin(obj) is typing.Union or "
2232+
"get_origin(obj) is types.UnionType``。"
22282233

22292234
#:../../library/typing.rst:1140
22302235
msgid"``Optional[X]`` is equivalent to ``X | None`` (or ``Union[X, None]``)."
@@ -2409,40 +2414,43 @@ msgstr ""
24092414

24102415
#:../../library/typing.rst:1239
24112416
msgid"Additional details:"
2412-
msgstr""
2417+
msgstr"额外细节:"
24132418

24142419
#:../../library/typing.rst:1241
24152420
msgid"The arguments must be literal values and there must be at least one."
2416-
msgstr""
2421+
msgstr"参数应当为字面量,且至少要指定一个参数。"
24172422

24182423
#:../../library/typing.rst:1243
24192424
msgid"Nested ``Literal`` types are flattened, e.g.::"
2420-
msgstr""
2425+
msgstr"嵌套的 ``Literal`` 类型会被展平,例如:"
24212426

24222427
#:../../library/typing.rst:1245
24232428
msgid"assert Literal[Literal[1, 2], 3] == Literal[1, 2, 3]"
2424-
msgstr""
2429+
msgstr"assert Literal[Literal[1, 2], 3] == Literal[1, 2, 3]"
24252430

24262431
#:../../library/typing.rst:1247
24272432
msgid""
24282433
"However, this does not apply to ``Literal`` types referenced through a type "
24292434
"alias, to avoid forcing evaluation of the underlying "
24302435
":class:`TypeAliasType`::"
24312436
msgstr""
2437+
"但是,这不适用于通过类型别名引用的 ``Literal`` 类型,以避免对下层 :class:`TypeAliasType` 的强制求值::"
24322438

24332439
#:../../library/typing.rst:1250
24342440
msgid""
24352441
"type A = Literal[1, 2]\n"
24362442
"assert Literal[A, 3] != Literal[1, 2, 3]"
24372443
msgstr""
2444+
"type A = Literal[1, 2]\n"
2445+
"assert Literal[A, 3] != Literal[1, 2, 3]"
24382446

24392447
#:../../library/typing.rst:1255
24402448
msgid"assert Literal[1, 2, 1] == Literal[1, 2]"
2441-
msgstr""
2449+
msgstr"assert Literal[1, 2, 1] == Literal[1, 2]"
24422450

24432451
#:../../library/typing.rst:1257
24442452
msgid"When comparing literals, the argument order is ignored, e.g.::"
2445-
msgstr""
2453+
msgstr"在比较字面值时,参数顺序会被忽略,例如::"
24462454

24472455
#:../../library/typing.rst:1259
24482456
msgid"assert Literal[1, 2] == Literal[2, 1]"
@@ -3577,6 +3585,9 @@ msgid ""
35773585
"can be passed to :func:`annotationlib.call_evaluate_function` to evaluate "
35783586
"the value in a different format."
35793587
msgstr""
3588+
"一个与 :attr:`~TypeVar.__bound__` 属性对应的\\:term\\:`求值函数`。当直接调用时,该方法只支持 "
3589+
":attr:`~annotationlib.Format.VALUE` 格式(等同于直接访问 :attr:`~TypeVar.__bound__` "
3590+
"属性),但是,可以将该方法对象传递给 :func:`annotationlib.call_evaluate_function` 以不同格式求取值。"
35803591

35813592
#:../../library/typing.rst:1891
35823593
msgid"A tuple containing the constraints of the type variable, if any."

‎library/unittest.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1647,7 +1647,7 @@ msgstr "``not isinstance(a, b)``"
16471647

16481648
#:../../library/unittest.rst:886
16491649
msgid":meth:`assertIsSubclass(a, b) <TestCase.assertIsSubclass>`"
1650-
msgstr""
1650+
msgstr":meth:`assertIsSubclass(a, b) <TestCase.assertIsSubclass>`"
16511651

16521652
#:../../library/unittest.rst:886
16531653
msgid"``issubclass(a, b)``"
@@ -1662,11 +1662,11 @@ msgstr "3.14"
16621662

16631663
#:../../library/unittest.rst:889
16641664
msgid":meth:`assertNotIsSubclass(a, b) <TestCase.assertNotIsSubclass>`"
1665-
msgstr""
1665+
msgstr":meth:`assertNotIsSubclass(a, b) <TestCase.assertNotIsSubclass>`"
16661666

16671667
#:../../library/unittest.rst:889
16681668
msgid"``not issubclass(a, b)``"
1669-
msgstr""
1669+
msgstr"``not issubclass(a, b)``"
16701670

16711671
#:../../library/unittest.rst:893
16721672
msgid""
@@ -2198,11 +2198,11 @@ msgstr "*a* 和 *b* 具有同样数量的相同元素,无论其顺序如何。
21982198

21992199
#:../../library/unittest.rst:1228
22002200
msgid":meth:`assertStartsWith(a, b) <TestCase.assertStartsWith>`"
2201-
msgstr""
2201+
msgstr":meth:`assertStartsWith(a, b) <TestCase.assertStartsWith>`"
22022202

22032203
#:../../library/unittest.rst:1228
22042204
msgid"``a.startswith(b)``"
2205-
msgstr""
2205+
msgstr"``a.startswith(b)``"
22062206

22072207
#:../../library/unittest.rst:1231
22082208
msgid":meth:`assertNotStartsWith(a, b) <TestCase.assertNotStartsWith>`"

‎reference/datamodel.po

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,6 +1513,8 @@ msgid ""
15131513
"The :term:`annotate function` for this module, or ``None`` if the module has"
15141514
" no annotations. See also: :attr:`~object.__annotate__` attributes."
15151515
msgstr""
1516+
"针对该模块的 :term:`annotate function`,或者如果模块没有标注则为 ``None``。 另请参阅: "
1517+
":attr:`~object.__annotate__` 属性。"
15161518

15171519
#:../../reference/datamodel.rst:1115
15181520
msgid"Module dictionaries"
@@ -1648,6 +1650,8 @@ msgid ""
16481650
"collected during class body execution. See also: :attr:`__annotations__ "
16491651
"attributes <object.__annotations__>`."
16501652
msgstr""
1653+
"一个包含在类体执行期间收集的 :term:`变量标注 <variable annotation>` 的字典。 另请参阅: "
1654+
":attr:`__annotations__ attributes <object.__annotations__>`。"
16511655

16521656
#:../../reference/datamodel.rst:1230
16531657
msgid""
@@ -5859,7 +5863,7 @@ msgstr "__annotations__ (函数属性)"
58595863

58605864
#:../../reference/datamodel.rst:577
58615865
msgid"__annotate__ (function attribute)"
5862-
msgstr""
5866+
msgstr"__annotate__ (函数属性)"
58635867

58645868
#:../../reference/datamodel.rst:577
58655869
msgid"__kwdefaults__ (function attribute)"
@@ -5967,7 +5971,7 @@ msgstr "__annotations__ (模块属性)"
59675971

59685972
#:../../reference/datamodel.rst:893
59695973
msgid"__annotate__ (module attribute)"
5970-
msgstr""
5974+
msgstr"__annotate__ (模块属性)"
59715975

59725976
#:../../reference/datamodel.rst:1119
59735977
msgid"__dict__ (module attribute)"
@@ -6019,7 +6023,7 @@ msgstr "__annotations__ (类属性)"
60196023

60206024
#:../../reference/datamodel.rst:1181
60216025
msgid"__annotate__ (class attribute)"
6022-
msgstr""
6026+
msgstr"__annotate__ (类属性)"
60236027

60246028
#:../../reference/datamodel.rst:1181
60256029
msgid"__type_params__ (class attribute)"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp