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

Skip to content

Commit ee4811b

Browse files
[po] auto sync
1 parent 67c63f4 commit ee4811b

2 files changed

Lines changed: 23 additions & 5 deletions

File tree

c-api/exceptions.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
# Pandaaaa906 <[email protected]>, 2019
1212
# ppcfish <[email protected]>, 2019
1313
# Yi Cao <[email protected]>, 2020
14-
# Freesand Leo <[email protected]>, 2020
1514
# jsgang <[email protected]>, 2020
15+
# Freesand Leo <[email protected]>, 2021
1616
#
1717
#, fuzzy
1818
msgid ""
@@ -21,7 +21,7 @@ msgstr ""
2121
"Report-Msgid-Bugs-To: \n"
2222
"POT-Creation-Date: 2021-01-01 16:02+0000\n"
2323
"PO-Revision-Date: 2019-09-01 03:39+0000\n"
24-
"Last-Translator: jsgang <jsgang9@gmail.com>, 2020\n"
24+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2021\n"
2525
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2626
"MIME-Version: 1.0\n"
2727
"Content-Type: text/plain; charset=UTF-8\n"
@@ -563,7 +563,7 @@ msgstr ""
563563

564564
#: ../../c-api/exceptions.rst:538
565565
msgid "On Windows, the function now also supports socket handles."
566-
msgstr ""
566+
msgstr "在 Windows 上,此函数现在也支持套接字处理。"
567567

568568
#: ../../c-api/exceptions.rst:543
569569
msgid "Exception Classes"

library/signal.po

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,7 @@ msgid ""
581581
"the fd to wake up when a signal arrives, but then they differ in how they "
582582
"determine *which* signal or signals have arrived."
583583
msgstr ""
584+
"使用此函数有两种通常的方式。 在两种方式下,当有信号到达时你都是用 fd 来唤醒,但之后它们在确定达到的一个或多个信号 *which* 时存在差异。"
584585

585586
#: ../../library/signal.rst:438
586587
msgid ""
@@ -592,6 +593,9 @@ msgid ""
592593
"then you should set ``warn_on_full_buffer=True``, which will at least cause "
593594
"a warning to be printed to stderr when signals are lost."
594595
msgstr ""
596+
"在第一种方式下,我们从 fd 的缓冲区读取数据,这些字节值会给你信号编号。 这种方式很简单,但在少数情况下会发生问题:通常 fd "
597+
"将有缓冲区空间大小限制,如果信号到达得太多且太快,缓冲区可能会爆满,有些信号可能丢失。 如果你使用此方式,则你应当设置 "
598+
"``warn_on_full_buffer=True``,当信号丢失时这至少能将警告消息打印到 stderr。"
595599

596600
#: ../../library/signal.rst:447
597601
msgid ""
@@ -602,34 +606,42 @@ msgid ""
602606
"``warn_on_full_buffer=False``, so that your users are not confused by "
603607
"spurious warning messages."
604608
msgstr ""
609+
"在第二种方式下,我们 *只会* 将唤醒 fd 用于唤醒,而忽略实际的字节值。 在此情况下,我们所关心的只有 fd "
610+
"的缓冲区为空还是不为空;爆满的缓冲区完全不会导致问题。 如果你使用此方式,则你应当设置 "
611+
"``warn_on_full_buffer=False``,这样你的用户就不会被虚假的警告消息所迷惑。"
605612

606613
#: ../../library/signal.rst:454
607614
msgid "On Windows, the function now also supports socket handles."
608-
msgstr ""
615+
msgstr "在 Windows 上,此函数现在也支持套接字处理。"
609616

610617
#: ../../library/signal.rst:457
611618
msgid "Added ``warn_on_full_buffer`` parameter."
612-
msgstr ""
619+
msgstr "添加了 ``warn_on_full_buffer`` 形参。"
613620

614621
#: ../../library/signal.rst:462
615622
msgid ""
616623
"Change system call restart behaviour: if *flag* is :const:`False`, system "
617624
"calls will be restarted when interrupted by signal *signalnum*, otherwise "
618625
"system calls will be interrupted. Returns nothing."
619626
msgstr ""
627+
"更改系统调用重启行为:如果 *flag* 为 :const:`False`,系统调用将在被信号 *signalnum* "
628+
"中断时重启,否则系统调用将被中断。 返回空值。"
620629

621630
#: ../../library/signal.rst:468
622631
msgid ""
623632
":ref:`Availability <availability>`: Unix. See the man page "
624633
":manpage:`siginterrupt(3)` for further information."
625634
msgstr ""
635+
":ref:`可用性 <availability>`: Unix。 更多信息请参见手册页面 :manpage:`siginterrupt(3)`。"
626636

627637
#: ../../library/signal.rst:469
628638
msgid ""
629639
"Note that installing a signal handler with :func:`signal` will reset the "
630640
"restart behaviour to interruptible by implicitly calling "
631641
":c:func:`siginterrupt` with a true *flag* value for the given signal."
632642
msgstr ""
643+
"请注意用 :func:`signal` 安装信号处理程序将重启行为重置为可通过显式调用 :c:func:`siginterrupt` 并为给定信号的 "
644+
"*flag* 设置真值来实现中断。"
633645

634646
#: ../../library/signal.rst:476
635647
msgid ""
@@ -640,6 +652,10 @@ msgid ""
640652
":func:`getsignal` above). (See the Unix man page :manpage:`signal(2)` for "
641653
"further information.)"
642654
msgstr ""
655+
"将信号 *signalnum* 的处理程序设为函数 *handler*。 *handler* 可以为接受两个参数(见下)的 Python "
656+
"可调用对象,或者为特殊值 :const:`signal.SIG_IGN` 或 :const:`signal.SIG_DFL` 之一。 "
657+
"之前的信号处理程序将被返回(参见上文 :func:`getsignal` 的描述)。 (更多信息请参阅 Unix 手册页面 "
658+
":manpage:`signal(2)`。)"
643659

644660
#: ../../library/signal.rst:486
645661
msgid ""
@@ -648,6 +664,8 @@ msgid ""
648664
"objects, see the :ref:`description in the type hierarchy <frame-objects>` or"
649665
" see the attribute descriptions in the :mod:`inspect` module)."
650666
msgstr ""
667+
"*handler* 将附带两个参数调用:信号编号和当前堆栈帧 (``None`` 或一个帧对象;有关帧对象的描述请参阅 :ref:`类型层级结构描述 "
668+
"<frame-objects>` 或者参阅 :mod:`inspect` 模块中的属性描述)。"
651669

652670
#: ../../library/signal.rst:491
653671
msgid ""

0 commit comments

Comments
 (0)