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

Skip to content

Commit 96ec2c8

Browse files
committed
[po] auto sync bot
1 parent 2ef16ef commit 96ec2c8

9 files changed

Lines changed: 65 additions & 36 deletions

File tree

library/asyncio-eventloop.po

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
# ww song <[email protected]>, 2018
99
# Yinuo Huang <[email protected]>, 2018
1010
# Fred <[email protected]>, 2018
11-
# Freesand Leo <[email protected]>, 2019
12-
# Meng Du <[email protected]>, 2019
1311
# Pan Felix <[email protected]>, 2019
12+
# Freesand Leo <[email protected]>, 2019
1413
#
1514
#, fuzzy
1615
msgid ""
@@ -19,7 +18,7 @@ msgstr ""
1918
"Report-Msgid-Bugs-To: \n"
2019
"POT-Creation-Date: 2019-01-01 10:14+0900\n"
2120
"PO-Revision-Date: 2017-02-16 17:48+0000\n"
22-
"Last-Translator: Pan Felix <tinylambda@gmail.com>, 2019\n"
21+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2019\n"
2322
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2423
"MIME-Version: 1.0\n"
2524
"Content-Type: text/plain; charset=UTF-8\n"
@@ -50,69 +49,77 @@ msgid ""
5049
"authors of lower-level code, libraries, and frameworks, who need finer "
5150
"control over the event loop behavior."
5251
msgstr ""
52+
"应用开发者通常应当使用高层级的 asyncio 函数,例如 :func:`asyncio.run`,应当很少有必要引用循环对象或调用其方法。 "
53+
"本节所针对的主要是低层级代码、库和框架的编写者,他们需要更细致地控制事件循环行为。"
5354

5455
#: ../../library/asyncio-eventloop.rst:22
5556
msgid "Obtaining the Event Loop"
56-
msgstr ""
57+
msgstr "获取事件循环"
5758

5859
#: ../../library/asyncio-eventloop.rst:23
5960
msgid ""
6061
"The following low-level functions can be used to get, set, or create an "
6162
"event loop:"
62-
msgstr ""
63+
msgstr "以下低层级函数可被用于获取、设置或创建事件循环:"
6364

6465
#: ../../library/asyncio-eventloop.rst:28
6566
msgid "Return the running event loop in the current OS thread."
66-
msgstr ""
67+
msgstr "返回当前 OS 线程中正在运行的事件循环。"
6768

6869
#: ../../library/asyncio-eventloop.rst:30
6970
msgid ""
7071
"If there is no running event loop a :exc:`RuntimeError` is raised. This "
7172
"function can only be called from a coroutine or a callback."
72-
msgstr ""
73+
msgstr "如果没有正在运行的事件循环则会引发 :exc:`RuntimeError`。 此函数只能由协程或回调来调用。"
7374

7475
#: ../../library/asyncio-eventloop.rst:37
7576
msgid ""
7677
"Get the current event loop. If there is no current event loop set in the "
7778
"current OS thread and :func:`set_event_loop` has not yet been called, "
7879
"asyncio will create a new event loop and set it as the current one."
7980
msgstr ""
81+
"获取当前事件循环。 如果当前 OS 线程没有设置当前事件循环并且 :func:`set_event_loop` 还没有被调用,asyncio "
82+
"将创建一个新的事件循环并将其设置为当前循环。"
8083

8184
#: ../../library/asyncio-eventloop.rst:42
8285
msgid ""
8386
"Because this function has rather complex behavior (especially when custom "
8487
"event loop policies are in use), using the :func:`get_running_loop` function"
8588
" is preferred to :func:`get_event_loop` in coroutines and callbacks."
8689
msgstr ""
90+
"由于此函数具有相当复杂的行为(特别是在使用了自定义事件循环策略的时候),更推荐在协程和回调中使用 :func:`get_running_loop` "
91+
"函数而非 :func:`get_event_loop`。"
8792

8893
#: ../../library/asyncio-eventloop.rst:47
8994
msgid ""
9095
"Consider also using the :func:`asyncio.run` function instead of using lower "
9196
"level functions to manually create and close an event loop."
92-
msgstr ""
97+
msgstr "应该考虑使用 :func:`asyncio.run` 函数而非使用低层级函数来手动创建和关闭事件循环。"
9398

9499
#: ../../library/asyncio-eventloop.rst:52
95100
msgid "Set *loop* as a current event loop for the current OS thread."
96-
msgstr ""
101+
msgstr "将 *loop* 设置为当前 OS 线程的当前事件循环。"
97102

98103
#: ../../library/asyncio-eventloop.rst:56
99104
msgid "Create a new event loop object."
100-
msgstr ""
105+
msgstr "创建一个新的事件循环。"
101106

102107
#: ../../library/asyncio-eventloop.rst:58
103108
msgid ""
104109
"Note that the behaviour of :func:`get_event_loop`, :func:`set_event_loop`, "
105110
"and :func:`new_event_loop` functions can be altered by :ref:`setting a "
106111
"custom event loop policy <asyncio-policies>`."
107112
msgstr ""
113+
"请注意 :func:`get_event_loop`, :func:`set_event_loop` 以及 :func:`new_event_loop`"
114+
" 函数的行为可以通过 :ref:`设置自定义事件循环策略 <asyncio-policies>` 来改变。"
108115

109116
#: ../../library/asyncio-eventloop.rst:64
110117
msgid "Contents"
111118
msgstr "内容"
112119

113120
#: ../../library/asyncio-eventloop.rst:65
114121
msgid "This documentation page contains the following sections:"
115-
msgstr ""
122+
msgstr "本文档包含下列小节:"
116123

117124
#: ../../library/asyncio-eventloop.rst:67
118125
msgid ""
@@ -674,9 +681,9 @@ msgid ""
674681
"specified, *local_addr* and *remote_addr* should be omitted (must be "
675682
":const:`None`)."
676683
msgstr ""
677-
"*sock* 可选择通过指定此值用于使用一个预先存在的,已经处于连接状态的 "
678-
":class:`socket.socket`对象,并将其提供给此传输对象使用。如果指定了这个值, *local_addr* 和 "
679-
"*remote_addr* 就应该被忽略(必须为 :const:`None`。"
684+
"*sock* 可选择通过指定此值用于使用一个预先存在的,已经处于连接状态的 :class:`socket.socket` "
685+
"对象,并将其提供给此传输对象使用。如果指定了这个值, *local_addr* 和 *remote_addr* 就应该被忽略 (必须为 "
686+
":const:`None`)。"
680687

681688
#: ../../library/asyncio-eventloop.rst:479
682689
msgid ""
@@ -688,8 +695,8 @@ msgid ""
688695
"See :ref:`UDP echo client protocol <asyncio-udp-echo-client-protocol>` and "
689696
":ref:`UDP echo server protocol <asyncio-udp-echo-server-protocol>` examples."
690697
msgstr ""
691-
"参见 :ref:`UDP echo客户端协议 <asyncio-udp-echo-client-protocol>` 和 :ref:`UDP "
692-
"echo服务端协议 <asyncio-udp-echo-server-protocol>` 的例子。"
698+
"参见 :ref:`UDP echo 客户端协议 <asyncio-udp-echo-client-protocol>` 和 :ref:`UDP "
699+
"echo 服务端协议 <asyncio-udp-echo-server-protocol>` 的例子。"
693700

694701
#: ../../library/asyncio-eventloop.rst:484
695702
msgid ""
@@ -726,7 +733,7 @@ msgstr ""
726733
#: ../../library/asyncio-eventloop.rst:628
727734
#: ../../library/asyncio-eventloop.rst:984
728735
msgid ":ref:`Availability <availability>`: Unix."
729-
msgstr ":ref:`Availability <availability>`: Unix."
736+
msgstr ":ref:`可用性 <availability>`: Unix"
730737

731738
#: ../../library/asyncio-eventloop.rst:515
732739
msgid "The *path* parameter can now be a :term:`path-like object`."
@@ -785,7 +792,7 @@ msgstr ""
785792

786793
#: ../../library/asyncio-eventloop.rst:557
787794
msgid "*flags* is a bitmask for :meth:`getaddrinfo`."
788-
msgstr "*flags* 是用于 :met:`getaddrinfo` 的位掩码。"
795+
msgstr "*flags* 是用于 :meth:`getaddrinfo` 的位掩码。"
789796

790797
#: ../../library/asyncio-eventloop.rst:559
791798
msgid ""
@@ -811,8 +818,8 @@ msgid ""
811818
" port as other existing endpoints are bound to, so long as they all set this"
812819
" flag when being created. This option is not supported on Windows."
813820
msgstr ""
814-
"*reuse_port* "
815-
"告知内核,只要在创建的时候都设置了这个标志,就允许此端点绑定到其它端点列表所绑定的同样的端口上。这个选项在Windows上是不支持的。"
821+
"*reuse_port* 告知内核,只要在创建的时候都设置了这个标志,就允许此端点绑定到其它端点列表所绑定的同样的端口上。这个选项在 Windows "
822+
"上是不支持的。"
816823

817824
#: ../../library/asyncio-eventloop.rst:578
818825
msgid ""
@@ -896,7 +903,7 @@ msgstr ""
896903
msgid ""
897904
"*ssl* can be set to an :class:`~ssl.SSLContext` to enable SSL over the "
898905
"accepted connections."
899-
msgstr "*ssl* 可被设置为一个 :class:`~ssl.SSLContext` 以在接受的连接上启用SSL。"
906+
msgstr "*ssl* 可被设置为一个 :class:`~ssl.SSLContext` 以在接受的连接上启用 SSL。"
900907

901908
#: ../../library/asyncio-eventloop.rst:656
902909
msgid ""

library/asyncio-llapi-index.po

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2018, Python Software Foundation
2+
# Copyright (C) 2001-2019, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
6+
# Translators:
7+
# Jerry Chen <[email protected]>, 2018
8+
# Fred <[email protected]>, 2018
9+
# kily zhou <[email protected]>, 2018
10+
# Freesand Leo <[email protected]>, 2019
11+
#
612
#, fuzzy
713
msgid ""
814
msgstr ""
915
"Project-Id-Version: Python 3.7\n"
1016
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2018-09-21 09:14+0900\n"
12-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13-
"Last-Translator: kily zhou <keeliizhou@gmail.com>, 2018\n"
17+
"POT-Creation-Date: 2019-01-01 10:14+0900\n"
18+
"PO-Revision-Date: 2018-09-18 00:23+0000\n"
19+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2019\n"
1420
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1521
"MIME-Version: 1.0\n"
1622
"Content-Type: text/plain; charset=UTF-8\n"
@@ -28,7 +34,7 @@ msgstr ""
2834

2935
#: ../../library/asyncio-llapi-index.rst:12
3036
msgid "Obtaining the Event Loop"
31-
msgstr ""
37+
msgstr "获取事件循环"
3238

3339
#: ../../library/asyncio-llapi-index.rst:18
3440
msgid ":func:`asyncio.get_running_loop`"

library/asyncio-protocol.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ msgstr "内容"
9696

9797
#: ../../library/asyncio-protocol.rst:52
9898
msgid "This documentation page contains the following sections:"
99-
msgstr ""
99+
msgstr "本文档包含下列小节:"
100100

101101
#: ../../library/asyncio-protocol.rst:54
102102
msgid ""

whatsnew/3.2.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ msgstr ""
12111211

12121212
#: ../../whatsnew/3.2.rst:1111
12131213
msgid "io"
1214-
msgstr ""
1214+
msgstr "io"
12151215

12161216
#: ../../whatsnew/3.2.rst:1113
12171217
msgid ""

whatsnew/3.3.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2082,7 +2082,7 @@ msgstr ""
20822082

20832083
#: ../../whatsnew/3.3.rst:1476
20842084
msgid "io"
2085-
msgstr ""
2085+
msgstr "io"
20862086

20872087
#: ../../whatsnew/3.3.rst:1478
20882088
msgid ""

whatsnew/3.4.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ msgstr ""
13221322

13231323
#: ../../whatsnew/3.4.rst:981
13241324
msgid "importlib"
1325-
msgstr ""
1325+
msgstr "importlib"
13261326

13271327
#: ../../whatsnew/3.4.rst:983
13281328
msgid ""

whatsnew/3.5.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,7 +1534,7 @@ msgstr ""
15341534

15351535
#: ../../whatsnew/3.5.rst:1263
15361536
msgid "importlib"
1537-
msgstr ""
1537+
msgstr "importlib"
15381538

15391539
#: ../../whatsnew/3.5.rst:1265
15401540
msgid ""
@@ -1619,7 +1619,7 @@ msgstr ""
16191619

16201620
#: ../../whatsnew/3.5.rst:1326
16211621
msgid "io"
1622-
msgstr ""
1622+
msgstr "io"
16231623

16241624
#: ../../whatsnew/3.5.rst:1328
16251625
msgid ""

whatsnew/3.6.po

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1531,10 +1531,13 @@ msgid ""
15311531
" button or into the clipboard or a separate window by right-clicking the "
15321532
"button. (Contributed by Tal Einat in :issue:`1529353`.)"
15331533
msgstr ""
1534+
"超过 N 行(默认值为 50)的输出将被折叠为一个按钮。 N 可以在 Settings 对话框的 General 页的 PyShell 部分中进行修改。"
1535+
" 数量较少但是超长的行可以通过在输出上右击来折叠。 被折叠的输出可通过双击按钮来展开,或是通过右击按钮来放入剪贴板或是单独的窗口。 (由 Tal "
1536+
"Einat 在 :issue:`1529353` 中贡献。)"
15341537

15351538
#: ../../whatsnew/3.6.rst:1199 ../../whatsnew/3.6.rst:2003
15361539
msgid "importlib"
1537-
msgstr ""
1540+
msgstr "importlib"
15381541

15391542
#: ../../whatsnew/3.6.rst:1201
15401543
msgid ""

whatsnew/3.7.po

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1697,14 +1697,17 @@ msgid ""
16971697
" button or into the clipboard or a separate window by right-clicking the "
16981698
"button. (Contributed by Tal Einat in :issue:`1529353`.)"
16991699
msgstr ""
1700+
"超过 N 行(默认值为 50)的输出将被折叠为一个按钮。 N 可以在 Settings 对话框的 General 页的 PyShell 部分中进行修改。"
1701+
" 数量较少但是超长的行可以通过在输出上右击来折叠。 被折叠的输出可通过双击按钮来展开,或是通过右击按钮来放入剪贴板或是单独的窗口。 (由 Tal "
1702+
"Einat 在 :issue:`1529353` 中贡献。)"
17001703

17011704
#: ../../whatsnew/3.7.rst:1018
17021705
msgid "The changes above have been backported to 3.6 maintenance releases."
1703-
msgstr ""
1706+
msgstr "上述修改已被反向移植到 3.6 维护发行版中。"
17041707

17051708
#: ../../whatsnew/3.7.rst:1022 ../../whatsnew/3.7.rst:1996
17061709
msgid "importlib"
1707-
msgstr ""
1710+
msgstr "importlib"
17081711

17091712
#: ../../whatsnew/3.7.rst:1024
17101713
msgid ""
@@ -1713,12 +1716,17 @@ msgid ""
17131716
":ref:`whatsnew37_importlib_resources`. (Contributed by Barry Warsaw, Brett "
17141717
"Cannon in :issue:`32248`.)"
17151718
msgstr ""
1719+
"引入了 :class:`importlib.abc.ResourceReader` ABC 以支持从包中加载资源。 另请参阅 "
1720+
":ref:`whatsnew37_importlib_resources`。 (由 Barry Warsaw, Brett Cannon 在 "
1721+
":issue:`32248` 中贡献。)"
17161722

17171723
#: ../../whatsnew/3.7.rst:1029
17181724
msgid ""
17191725
":func:`importlib.reload` now raises :exc:`ModuleNotFoundError` if the module"
17201726
" lacks a spec. (Contributed by Garvit Khatri in :issue:`29851`.)"
17211727
msgstr ""
1728+
"如果模块缺少规格描述 :func:`importlib.reload` 现在会引发 :exc:`ModuleNotFoundError`。 (由 "
1729+
"Garvit Khatri 在 :issue:`29851` 中贡献。)"
17221730

17231731
#: ../../whatsnew/3.7.rst:1033
17241732
msgid ""
@@ -1727,17 +1735,22 @@ msgid ""
17271735
" lacks a ``__path__`` attribute). (Contributed by Milan Oberkirch in "
17281736
":issue:`30436`.)"
17291737
msgstr ""
1738+
"如果指定的父模块不是一个包 (即缺少 ``__path__`` 属性) :func:`importlib.find_spec` 现在会引发 "
1739+
":exc:`ModuleNotFoundError` 而非 :exc:`AttributeError`。 (由 Milan Oberkirch 在 "
1740+
":issue:`30436` 中贡献。)"
17301741

17311742
#: ../../whatsnew/3.7.rst:1038
17321743
msgid ""
17331744
"The new :func:`importlib.source_hash` can be used to compute the hash of the"
17341745
" passed source. A :ref:`hash-based .pyc file <whatsnew37-pep552>` embeds "
17351746
"the value returned by this function."
17361747
msgstr ""
1748+
"新的 :func:`importlib.source_hash` 可被用来计算传入源的哈希值。 :ref:`基于哈希值的 .pyc 文件 "
1749+
"<whatsnew37-pep552>` 会嵌入此函数所返回的值。"
17371750

17381751
#: ../../whatsnew/3.7.rst:1044
17391752
msgid "io"
1740-
msgstr ""
1753+
msgstr "io"
17411754

17421755
#: ../../whatsnew/3.7.rst:1046
17431756
msgid ""

0 commit comments

Comments
 (0)