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

Skip to content

Commit 340e9e0

Browse files
[po] auto sync
1 parent 0dcc5fa commit 340e9e0

1 file changed

Lines changed: 25 additions & 5 deletions

File tree

library/urllib.request.po

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# Freesand Leo <[email protected]>, 2019
99
# ppcfish <[email protected]>, 2019
1010
# 汪心禾 <[email protected]>, 2020
11+
# Dai Xu <[email protected]>, 2021
1112
#
1213
#, fuzzy
1314
msgid ""
@@ -16,7 +17,7 @@ msgstr ""
1617
"Report-Msgid-Bugs-To: \n"
1718
"POT-Creation-Date: 2021-03-02 05:36+0000\n"
1819
"PO-Revision-Date: 2017-02-16 23:34+0000\n"
19-
"Last-Translator: 汪心禾 <wangxinhe06@gmail.com>, 2020\n"
20+
"Last-Translator: Dai Xu <daixu61@hotmail.com>, 2021\n"
2021
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2122
"MIME-Version: 1.0\n"
2223
"Content-Type: text/plain; charset=UTF-8\n"
@@ -55,20 +56,23 @@ msgstr ":mod:`urllib.request` 模块定义了以下函数:"
5556
msgid ""
5657
"Open the URL *url*, which can be either a string or a :class:`Request` "
5758
"object."
58-
msgstr "打开统一资源定位地址 *url*,可以是一个字符串或一个 :class:`Request` 对象。"
59+
msgstr "打开统一资源定位符 *url*,可以是一个字符串或一个 :class:`Request` 对象。"
5960

6061
#: ../../library/urllib.request.rst:33
6162
msgid ""
6263
"*data* must be an object specifying additional data to be sent to the "
6364
"server, or ``None`` if no such data is needed. See :class:`Request` for "
6465
"details."
6566
msgstr ""
67+
"*data* 必须是一个对象,用于给出要发送到服务器的附加数据,若不需要发送数据则为 ``None``。详情请参阅 :class:`Request` 。"
68+
" "
6669

6770
#: ../../library/urllib.request.rst:37
6871
msgid ""
6972
"urllib.request module uses HTTP/1.1 and includes ``Connection:close`` header"
7073
" in its HTTP requests."
71-
msgstr "urllib.request 模块使用 HTTP/1.1 并且在其 HTTP 请求中包含 ``Connection:close`` 头。"
74+
msgstr ""
75+
"urllib.request 模块采用 HTTP/1.1 协议,并且在其 HTTP 请求中包含 ``Connection:close`` 头部信息。"
7276

7377
#: ../../library/urllib.request.rst:40
7478
msgid ""
@@ -77,13 +81,17 @@ msgid ""
7781
"default timeout setting will be used). This actually only works for HTTP, "
7882
"HTTPS and FTP connections."
7983
msgstr ""
84+
"*timeout* 为可选参数,用于指定阻塞操作(如连接尝试)的超时时间,单位为秒。如未指定,将使用全局默认超时参数)。本参数实际仅对 "
85+
"HTTP、HTTPS 和 FTP 连接有效。"
8086

8187
#: ../../library/urllib.request.rst:45
8288
msgid ""
8389
"If *context* is specified, it must be a :class:`ssl.SSLContext` instance "
8490
"describing the various SSL options. See "
8591
":class:`~http.client.HTTPSConnection` for more details."
8692
msgstr ""
93+
"如果给定了 *context* 参数,则必须是一个 :class:`ssl.SSLContext` 实例,用于描述各种 SSL 参数。更多详情请参阅 "
94+
":class:`~http.client.HTTPSConnection` 。 "
8795

8896
#: ../../library/urllib.request.rst:49
8997
msgid ""
@@ -93,17 +101,22 @@ msgid ""
93101
"directory of hashed certificate files. More information can be found in "
94102
":meth:`ssl.SSLContext.load_verify_locations`."
95103
msgstr ""
104+
"*cafile* 和 *capath* 为可选参数,用于为 HTTPS 请求指定一组受信 CA 证书。*cafile* 应指向包含CA 证书的单个文件,"
105+
" *capath* 则应指向哈希证书文件的目录。更多信息可参阅 :meth:`ssl.SSLContext.load_verify_locations`"
106+
" 。 "
96107

97108
#: ../../library/urllib.request.rst:55
98109
msgid "The *cadefault* parameter is ignored."
99-
msgstr ""
110+
msgstr "*cadefault* 将被忽略。"
100111

101112
#: ../../library/urllib.request.rst:57
102113
msgid ""
103114
"This function always returns an object which can work as a :term:`context "
104115
"manager` and has the properties *url*, *headers*, and *status*. See "
105116
":class:`urllib.response.addinfourl` for more detail on these properties."
106117
msgstr ""
118+
"本函数总会返回一个对象,该对象可作为 :term:`context manager` 使用,带有 *url*、*headers* 和 *status* "
119+
"属性。有关这些属性的更多详细信息,请参阅 :class:`urllib.response.addinfourl` 。 "
107120

108121
#: ../../library/urllib.request.rst:61
109122
msgid ""
@@ -114,24 +127,31 @@ msgid ""
114127
"phrase returned by server --- instead of the response headers as it is "
115128
"specified in the documentation for :class:`~http.client.HTTPResponse`."
116129
msgstr ""
130+
"对于 HTTP 和 HTTPS 的 URL 而言,本函数将返回一个稍经修改的 :class:`http.client.HTTPResponse` "
131+
"对象。除了上述 3 个新的方法之外,还有 msg 属性包含了与 :attr:`~http.client.HTTPResponse.reason` "
132+
"属性相同的信息---服务器返回的原因描述文字,而不是 :class:`~http.client.HTTPResponse` 的文档所述的响应头部信息。"
117133

118134
#: ../../library/urllib.request.rst:69
119135
msgid ""
120136
"For FTP, file, and data URLs and requests explicitly handled by legacy "
121137
":class:`URLopener` and :class:`FancyURLopener` classes, this function "
122138
"returns a :class:`urllib.response.addinfourl` object."
123139
msgstr ""
140+
"对于 FTP、文件、数据的URL,以及由传统的 :class:`URLopener`  和 :class:`FancyURLopener` "
141+
"类处理的请求,本函数将返回一个 :class:`urllib.response.addinfourl` 对象。"
124142

125143
#: ../../library/urllib.request.rst:73
126144
msgid "Raises :exc:`~urllib.error.URLError` on protocol errors."
127-
msgstr "协议错误时引发 :exc:`~urllib.error.URLError`。"
145+
msgstr "协议发生错误时,将会引发 :exc:`~urllib.error.URLError` 。"
128146

129147
#: ../../library/urllib.request.rst:75
130148
msgid ""
131149
"Note that ``None`` may be returned if no handler handles the request (though"
132150
" the default installed global :class:`OpenerDirector` uses "
133151
":class:`UnknownHandler` to ensure this never happens)."
134152
msgstr ""
153+
"请注意,如果没有处理函数对请求进行处理,则有可能会返回 ``None`` 。尽管默认安装的全局 :class:`OpenerDirector` 会用 "
154+
":class:`UnknownHandler` 来确保不会发生这种情况。"
135155

136156
#: ../../library/urllib.request.rst:79
137157
msgid ""

0 commit comments

Comments
 (0)