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

Skip to content

Commit 78c8f0a

Browse files
[po] auto sync
1 parent 9c5f714 commit 78c8f0a

2 files changed

Lines changed: 37 additions & 20 deletions

File tree

library/asyncio-eventloop.po

Lines changed: 34 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1787,71 +1787,74 @@ msgstr "*stdin* 可以是以下对象之一:"
17871787
msgid ""
17881788
"a file-like object representing a pipe to be connected to the subprocess's "
17891789
"standard input stream using :meth:`~loop.connect_write_pipe`"
1790-
msgstr ""
1790+
msgstr "一个代表要使用 :meth:`~loop.connect_write_pipe` 连接到子进程的标准输入流的管道的文件类对象。"
17911791

17921792
#: ../../library/asyncio-eventloop.rst:1258
17931793
#: ../../library/asyncio-eventloop.rst:1270
17941794
#: ../../library/asyncio-eventloop.rst:1282
17951795
msgid ""
17961796
"the :const:`subprocess.PIPE` constant (default) which will create a new pipe"
17971797
" and connect it,"
1798-
msgstr ""
1798+
msgstr ":const:`subprocess.PIPE` 常量(默认),将创建并连接一个新的管道。"
17991799

18001800
#: ../../library/asyncio-eventloop.rst:1260
18011801
#: ../../library/asyncio-eventloop.rst:1272
18021802
#: ../../library/asyncio-eventloop.rst:1284
18031803
msgid ""
18041804
"the value ``None`` which will make the subprocess inherit the file "
18051805
"descriptor from this process"
1806-
msgstr ""
1806+
msgstr "``None`` 值,这将使得子进程继承来自此进程的文件描述符"
18071807

18081808
#: ../../library/asyncio-eventloop.rst:1262
18091809
#: ../../library/asyncio-eventloop.rst:1274
18101810
#: ../../library/asyncio-eventloop.rst:1286
18111811
msgid ""
18121812
"the :const:`subprocess.DEVNULL` constant which indicates that the special "
18131813
":data:`os.devnull` file will be used"
1814-
msgstr ""
1814+
msgstr ":const:`subprocess.DEVNULL` 常量,这表示将使用特殊的 :data:`os.devnull` 文件"
18151815

18161816
#: ../../library/asyncio-eventloop.rst:1265
18171817
msgid "*stdout* can be any of these:"
1818-
msgstr ""
1818+
msgstr "*stdout* 可以是以下对象之一:"
18191819

18201820
#: ../../library/asyncio-eventloop.rst:1267
18211821
msgid ""
18221822
"a file-like object representing a pipe to be connected to the subprocess's "
18231823
"standard output stream using :meth:`~loop.connect_write_pipe`"
1824-
msgstr ""
1824+
msgstr "一个文件类对象,表示要使用 :meth:`~loop.connect_write_pipe` 连接到子进程的标准输出流的管道"
18251825

18261826
#: ../../library/asyncio-eventloop.rst:1277
18271827
msgid "*stderr* can be any of these:"
1828-
msgstr ""
1828+
msgstr "*stderr* 可以是以下对象之一:"
18291829

18301830
#: ../../library/asyncio-eventloop.rst:1279
18311831
msgid ""
18321832
"a file-like object representing a pipe to be connected to the subprocess's "
18331833
"standard error stream using :meth:`~loop.connect_write_pipe`"
1834-
msgstr ""
1834+
msgstr "一个文件类对象,表示要使用 :meth:`~loop.connect_write_pipe` 连接到子进程的标准错误流的管道"
18351835

18361836
#: ../../library/asyncio-eventloop.rst:1288
18371837
msgid ""
18381838
"the :const:`subprocess.STDOUT` constant which will connect the standard "
18391839
"error stream to the process' standard output stream"
1840-
msgstr ""
1840+
msgstr ":const:`subprocess.STDOUT` 常量,将把标准错误流连接到进程的标准输出流"
18411841

18421842
#: ../../library/asyncio-eventloop.rst:1291
18431843
msgid ""
18441844
"All other keyword arguments are passed to :class:`subprocess.Popen` without "
18451845
"interpretation, except for *bufsize*, *universal_newlines*, *shell*, *text*,"
18461846
" *encoding* and *errors*, which should not be specified at all."
18471847
msgstr ""
1848+
"所有其他关键字参数会被不加解释地传给 :class:`subprocess.Popen`,除了 *bufsize*, "
1849+
"*universal_newlines*, *shell*, *text*, *encoding* 和 *errors*,它们都不应当被指定。"
18481850

18491851
#: ../../library/asyncio-eventloop.rst:1296
18501852
msgid ""
18511853
"The ``asyncio`` subprocess API does not support decoding the streams as "
18521854
"text. :func:`bytes.decode` can be used to convert the bytes returned from "
18531855
"the stream to text."
18541856
msgstr ""
1857+
"``asyncio`` 子进程 API 不支持将流解码为文本。 可以使用 :func:`bytes.decode` 来将从流返回的字节串转换为文本。"
18551858

18561859
#: ../../library/asyncio-eventloop.rst:1300
18571860
msgid ""
@@ -1865,13 +1868,18 @@ msgid ""
18651868
"the :class:`asyncio.SubprocessTransport` base class and *protocol* is an "
18661869
"object instantiated by the *protocol_factory*."
18671870
msgstr ""
1871+
"返回一对 ``(transport, protocol)``,其中 *transport* 来自 "
1872+
":class:`asyncio.SubprocessTransport` 基类而 *protocol* 是由 *protocol_factory* "
1873+
"所实例化的对象。"
18681874

18691875
#: ../../library/asyncio-eventloop.rst:1311
18701876
msgid ""
18711877
"Create a subprocess from *cmd*, which can be a :class:`str` or a "
18721878
":class:`bytes` string encoded to the :ref:`filesystem encoding <filesystem-"
18731879
"encoding>`, using the platform's \"shell\" syntax."
18741880
msgstr ""
1881+
"基于 *cmd* 创建一个子进程,该参数可以是一个 :class:`str` 或者按 :ref:`文件系统编码格式 <filesystem-"
1882+
"encoding>` 编码得到的 :class:`bytes` ,使用平台的 \"shell\" 语法。"
18751883

18761884
#: ../../library/asyncio-eventloop.rst:1316
18771885
msgid ""
@@ -1883,20 +1891,22 @@ msgstr "这类似与用 ``shell=True`` 调用标准库的 :class:`subprocess.Pop
18831891
msgid ""
18841892
"The *protocol_factory* must be a callable returning a subclass of the "
18851893
":class:`SubprocessProtocol` class."
1886-
msgstr ""
1894+
msgstr "*protocol_factory* 必须为一个返回 :class:`SubprocessProtocol` 类的子类的可调用对象。"
18871895

18881896
#: ../../library/asyncio-eventloop.rst:1322
18891897
msgid ""
18901898
"See :meth:`~loop.subprocess_exec` for more details about the remaining "
18911899
"arguments."
1892-
msgstr ""
1900+
msgstr "请参阅 :meth:`~loop.subprocess_exec` 了解有关其余参数的详情。"
18931901

18941902
#: ../../library/asyncio-eventloop.rst:1325
18951903
msgid ""
18961904
"Returns a pair of ``(transport, protocol)``, where *transport* conforms to "
18971905
"the :class:`SubprocessTransport` base class and *protocol* is an object "
18981906
"instantiated by the *protocol_factory*."
18991907
msgstr ""
1908+
"返回一对 ``(transport, protocol)``,其中 *transport* 来自 "
1909+
":class:`SubprocessTransport` 基类而 *protocol* 是由 *protocol_factory* 所实例化的对象。"
19001910

19011911
#: ../../library/asyncio-eventloop.rst:1330
19021912
msgid ""
@@ -1907,6 +1917,9 @@ msgid ""
19071917
"escape whitespace and special characters in strings that are going to be "
19081918
"used to construct shell commands."
19091919
msgstr ""
1920+
"应用程序要负责确保正确地转义所有空白字符和特殊字符以防止 `shell 注入 "
1921+
"<https://en.wikipedia.org/wiki/Shell_injection#Shell_injection>`_ 漏洞。 "
1922+
":func:`shlex.quote` 函数可以被用来正确地转义字符串中可能被用来构造 shell 命令的空白字符和特殊字符。"
19101923

19111924
#: ../../library/asyncio-eventloop.rst:1339
19121925
msgid "Callback Handles"
@@ -1917,47 +1930,50 @@ msgid ""
19171930
"A callback wrapper object returned by :meth:`loop.call_soon`, "
19181931
":meth:`loop.call_soon_threadsafe`."
19191932
msgstr ""
1933+
"由 :meth:`loop.call_soon`, :meth:`loop.call_soon_threadsafe` 所返回的回调包装器对象。"
19201934

19211935
#: ../../library/asyncio-eventloop.rst:1348
19221936
msgid ""
19231937
"Cancel the callback. If the callback has already been canceled or executed,"
19241938
" this method has no effect."
1925-
msgstr ""
1939+
msgstr "取消回调。 如果此回调已被取消或已被执行,此方法将没有任何效果。"
19261940

19271941
#: ../../library/asyncio-eventloop.rst:1353
19281942
msgid "Return ``True`` if the callback was cancelled."
1929-
msgstr ""
1943+
msgstr "如果此回调已被取消则返回 ``True``。"
19301944

19311945
#: ../../library/asyncio-eventloop.rst:1359
19321946
msgid ""
19331947
"A callback wrapper object returned by :meth:`loop.call_later`, and "
19341948
":meth:`loop.call_at`."
1935-
msgstr ""
1949+
msgstr "由 :meth:`loop.call_later` 和 :meth:`loop.call_at` 所返回的回调包装器对象。"
19361950

19371951
#: ../../library/asyncio-eventloop.rst:1362
19381952
msgid "This class is a subclass of :class:`Handle`."
1939-
msgstr ""
1953+
msgstr "这个类是 :class:`Handle` 的子类。"
19401954

19411955
#: ../../library/asyncio-eventloop.rst:1366
19421956
msgid "Return a scheduled callback time as :class:`float` seconds."
1943-
msgstr ""
1957+
msgstr "返回加入计划任务的回调时间,以 :class:`float` 值表示的秒数。"
19441958

19451959
#: ../../library/asyncio-eventloop.rst:1368
19461960
msgid ""
19471961
"The time is an absolute timestamp, using the same time reference as "
19481962
":meth:`loop.time`."
1949-
msgstr ""
1963+
msgstr "时间值是一个绝对时间戳,使用与 :meth:`loop.time` 相同的时间引用。"
19501964

19511965
#: ../../library/asyncio-eventloop.rst:1375
19521966
msgid "Server Objects"
1953-
msgstr ""
1967+
msgstr "Server 对象"
19541968

19551969
#: ../../library/asyncio-eventloop.rst:1377
19561970
msgid ""
19571971
"Server objects are created by :meth:`loop.create_server`, "
19581972
":meth:`loop.create_unix_server`, :func:`start_server`, and "
19591973
":func:`start_unix_server` functions."
19601974
msgstr ""
1975+
"Server 对象可使用 :meth:`loop.create_server`, :meth:`loop.create_unix_server`, "
1976+
":func:`start_server` 和 :func:`start_unix_server` 等函数来创建。"
19611977

19621978
#: ../../library/asyncio-eventloop.rst:1381
19631979
msgid "Do not instantiate the class directly."

library/socketserver.po

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#
66
# Translators:
77
# nick <[email protected]>, 2020
8+
# Freesand Leo <[email protected]>, 2020
89
#
910
#, fuzzy
1011
msgid ""
@@ -13,7 +14,7 @@ msgstr ""
1314
"Report-Msgid-Bugs-To: \n"
1415
"POT-Creation-Date: 2020-03-20 13:04+0000\n"
1516
"PO-Revision-Date: 2020-05-30 12:10+0000\n"
16-
"Last-Translator: nick <2330458484@qq.com>, 2020\n"
17+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2020\n"
1718
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1819
"MIME-Version: 1.0\n"
1920
"Content-Type: text/plain; charset=UTF-8\n"
@@ -228,7 +229,7 @@ msgstr ""
228229

229230
#: ../../library/socketserver.rst:186
230231
msgid "Server Objects"
231-
msgstr ""
232+
msgstr "Server 对象"
232233

233234
#: ../../library/socketserver.rst:190
234235
msgid ""

0 commit comments

Comments
 (0)