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

Skip to content

Commit d5984e9

Browse files
[po] auto sync
1 parent ae14c58 commit d5984e9

1 file changed

Lines changed: 31 additions & 14 deletions

File tree

library/asyncio-protocol.po

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,8 @@ msgid ""
549549
"dependent target address). If *addr* is :const:`None`, the data is sent to "
550550
"the target address given on transport creation."
551551
msgstr ""
552+
"将 *data* 字节串发送到 *addr* (基于传输的目标地址) 所给定的远端对等方。 如果 *addr* 为 "
553+
":const:`None`,则将数据发送到传输创建时给定的目标地址。"
552554

553555
#: ../../library/asyncio-protocol.rst:366
554556
msgid ""
@@ -557,49 +559,57 @@ msgid ""
557559
"protocol's :meth:`protocol.connection_lost() <BaseProtocol.connection_lost>`"
558560
" method will eventually be called with :const:`None` as its argument."
559561
msgstr ""
562+
"立即关闭传输,不会等待已提交的操作执行完毕。 已缓存的数据将会丢失。 不会接收更多的数据。 协议的 "
563+
":meth:`protocol.connection_lost() <BaseProtocol.connection_lost>` 方法最终将附带 "
564+
":const:`None` 作为参数被调用。"
560565

561566
#: ../../library/asyncio-protocol.rst:376
562567
msgid "Subprocess Transports"
563568
msgstr "子进程传输"
564569

565570
#: ../../library/asyncio-protocol.rst:380
566571
msgid "Return the subprocess process id as an integer."
567-
msgstr ""
572+
msgstr "将子进程的进程 ID 以整数形式返回。"
568573

569574
#: ../../library/asyncio-protocol.rst:384
570575
msgid ""
571576
"Return the transport for the communication pipe corresponding to the integer"
572577
" file descriptor *fd*:"
573-
msgstr ""
578+
msgstr "返回对应于整数文件描述符 *fd* 的通信管道的传输:"
574579

575580
#: ../../library/asyncio-protocol.rst:387
576581
msgid ""
577582
"``0``: readable streaming transport of the standard input (*stdin*), or "
578583
":const:`None` if the subprocess was not created with ``stdin=PIPE``"
579584
msgstr ""
585+
"``0``: 标准输入 (*stdin*) 的可读流式传输,如果子进程创建时未设置 ``stdin=PIPE`` 则为 :const:`None`"
580586

581587
#: ../../library/asyncio-protocol.rst:389
582588
msgid ""
583589
"``1``: writable streaming transport of the standard output (*stdout*), or "
584590
":const:`None` if the subprocess was not created with ``stdout=PIPE``"
585591
msgstr ""
592+
"``1``: 标准输出 (*stdout*) 的可写流式传输,如果子进程创建时未设置 ``stdout=PIPE`` 则为 :const:`None`"
586593

587594
#: ../../library/asyncio-protocol.rst:391
588595
msgid ""
589596
"``2``: writable streaming transport of the standard error (*stderr*), or "
590597
":const:`None` if the subprocess was not created with ``stderr=PIPE``"
591598
msgstr ""
599+
"``2``: 标准错误 (*stderr*) 的可写流式传输,如果子进程创建时未设置 ``stderr=PIPE`` 则为 :const:`None`"
592600

593601
#: ../../library/asyncio-protocol.rst:393
594602
msgid "other *fd*: :const:`None`"
595-
msgstr ""
603+
msgstr "其他 *fd*: :const:`None`"
596604

597605
#: ../../library/asyncio-protocol.rst:397
598606
msgid ""
599607
"Return the subprocess return code as an integer or :const:`None` if it "
600608
"hasn't returned, which is similar to the :attr:`subprocess.Popen.returncode`"
601609
" attribute."
602610
msgstr ""
611+
"返回整数形式的进程返回码,或者如果还未返回则为 :const:`None`,这类似于 "
612+
":attr:`subprocess.Popen.returncode` 属性。"
603613

604614
#: ../../library/asyncio-protocol.rst:403
605615
msgid "Kill the subprocess."
@@ -610,16 +620,17 @@ msgid ""
610620
"On POSIX systems, the function sends SIGKILL to the subprocess. On Windows, "
611621
"this method is an alias for :meth:`terminate`."
612622
msgstr ""
623+
"在 POSIX 系统中,函数会发送 SIGKILL 到子进程。 在 Windows 中,此方法是 :meth:`terminate` 的别名。"
613624

614625
#: ../../library/asyncio-protocol.rst:408
615626
msgid "See also :meth:`subprocess.Popen.kill`."
616-
msgstr ""
627+
msgstr "另请参见 :meth:`subprocess.Popen.kill`。"
617628

618629
#: ../../library/asyncio-protocol.rst:412
619630
msgid ""
620631
"Send the *signal* number to the subprocess, as in "
621632
":meth:`subprocess.Popen.send_signal`."
622-
msgstr ""
633+
msgstr "发送 *signal* 编号到子进程,与 :meth:`subprocess.Popen.send_signal` 一样。"
623634

624635
#: ../../library/asyncio-protocol.rst:417
625636
msgid "Stop the subprocess."
@@ -631,20 +642,22 @@ msgid ""
631642
"the Windows API function TerminateProcess() is called to stop the "
632643
"subprocess."
633644
msgstr ""
645+
"在 POSIX 系统中,此方法会发送 SIGTERM 到子进程。 在 Windows 中,则会调用 Windows API 函数 "
646+
"TerminateProcess() 来停止子进程。"
634647

635648
#: ../../library/asyncio-protocol.rst:423
636649
msgid "See also :meth:`subprocess.Popen.terminate`."
637-
msgstr ""
650+
msgstr "另请参见 :meth:`subprocess.Popen.terminate`。"
638651

639652
#: ../../library/asyncio-protocol.rst:427
640653
msgid "Kill the subprocess by calling the :meth:`kill` method."
641-
msgstr ""
654+
msgstr "通过调用 :meth:`kill` 方法来杀死子进程。"
642655

643656
#: ../../library/asyncio-protocol.rst:429
644657
msgid ""
645658
"If the subprocess hasn't returned yet, and close transports of *stdin*, "
646659
"*stdout*, and *stderr* pipes."
647-
msgstr ""
660+
msgstr "如果子进程尚未返回,并关闭 *stdin*, *stdout* 和 *stderr* 管道的传输。"
648661

649662
#: ../../library/asyncio-protocol.rst:436
650663
msgid "Protocols"
@@ -660,6 +673,8 @@ msgid ""
660673
"implement network protocols. Those classes are meant to be used together "
661674
"with :ref:`transports <asyncio-transport>`."
662675
msgstr ""
676+
"asyncio 提供了一组抽象基类,它们应当被用于实现网络协议。 这些类被设计为与 :ref:`传输 <asyncio-transport>` "
677+
"配合使用。"
663678

664679
#: ../../library/asyncio-protocol.rst:446
665680
msgid ""
@@ -668,44 +683,46 @@ msgid ""
668683
"certain events, for example when some data is received. A base protocol "
669684
"method should be called by the corresponding transport."
670685
msgstr ""
686+
"抽象基础协议类的子类可以实现其中的部分或全部方法。 所有这些方法都是回调:它们由传输或特定事件调用,例如当数据被接收的时候。 "
687+
"基础协议方法应当由相应的传输来调用。"
671688

672689
#: ../../library/asyncio-protocol.rst:453
673690
msgid "Base Protocols"
674691
msgstr "基础协议"
675692

676693
#: ../../library/asyncio-protocol.rst:457
677694
msgid "Base protocol with methods that all protocols share."
678-
msgstr ""
695+
msgstr "带有所有协议的共享方法的基础协议。"
679696

680697
#: ../../library/asyncio-protocol.rst:461
681698
msgid ""
682699
"The base class for implementing streaming protocols (TCP, Unix sockets, "
683700
"etc)."
684-
msgstr ""
701+
msgstr "用于实现流式协议(TCP, Unix 套接字等等)的基类。"
685702

686703
#: ../../library/asyncio-protocol.rst:466
687704
msgid ""
688705
"A base class for implementing streaming protocols with manual control of the"
689706
" receive buffer."
690-
msgstr ""
707+
msgstr "用于实现可对接收缓冲区进行手动控制的流式协议的基类。"
691708

692709
#: ../../library/asyncio-protocol.rst:471
693710
msgid "The base class for implementing datagram (UDP) protocols."
694-
msgstr ""
711+
msgstr "用于实现数据报(UDP)协议的基类。"
695712

696713
#: ../../library/asyncio-protocol.rst:475
697714
msgid ""
698715
"The base class for implementing protocols communicating with child processes"
699716
" (unidirectional pipes)."
700-
msgstr ""
717+
msgstr "用于实现与子进程通信(单向管道)的协议的基类。"
701718

702719
#: ../../library/asyncio-protocol.rst:480
703720
msgid "Base Protocol"
704721
msgstr "基础协议"
705722

706723
#: ../../library/asyncio-protocol.rst:482
707724
msgid "All asyncio protocols can implement Base Protocol callbacks."
708-
msgstr ""
725+
msgstr "所有 asyncio 协议均可实现基础协议回调。"
709726

710727
#: ../../library/asyncio-protocol.rst:485
711728
msgid "Connection Callbacks"

0 commit comments

Comments
 (0)