88991010# Zombie110year <[email protected] >, 201911- # Freesand Leo <[email protected] >, 20191211# ppcfish <[email protected] >, 201912+ # Meng Du <[email protected] >, 202113+ # Freesand Leo <[email protected] >, 20211314#
1415#, fuzzy
1516msgid ""
@@ -18,7 +19,7 @@ msgstr ""
1819"Report-Msgid-Bugs-To : \n "
1920"POT-Creation-Date : 2021-01-01 16:02+0000\n "
2021"PO-Revision-Date : 2019-09-01 03:19+0000\n "
21- "Last-Translator : ppcfish <ppcfish@gmail .com>, 2019 \n "
22+ "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2021 \n "
2223"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2324"MIME-Version : 1.0\n "
2425"Content-Type : text/plain; charset=UTF-8\n "
@@ -161,6 +162,12 @@ msgid ""
161162":class:`Cookie` instance to 0. :class:`DefaultCookiePolicy` also provides "
162163"some parameters to allow some fine-tuning of policy."
163164msgstr ""
165+ ":class:`DefaultCookiePolicy` 实现了 Netscape 和 :rfc:`2965` cookies 的标准接受 / "
166+ "拒绝规则。 默认情况下,:rfc:`2109` cookies(即在 :mailheader:`Set-Cookie` 头中收到的 cookie-"
167+ "attribute 版本为 1 的 cookies )将按照 RFC 2965 规则处理。 然而,如果 RFC 2965 的处理被关闭,或者 "
168+ ":attr:`rfc2109_as_netscape` 为 ``True``,:class:`Cookie` 实例的 :attr:`version` "
169+ "属性设置将被为 0, RFC 2109 cookies :class:`CookieJar` 实例将 \" 降级\" 为 Netscape "
170+ "cookies。 :class:`DefaultCookiePolicy` 也提供一些参数以允许一些策略微调。"
164171
165172#: ../../library/http.cookiejar.rst:103
166173msgid ""
@@ -169,29 +176,34 @@ msgid ""
169176":class:`Cookie` instances. Instead, if necessary, call :meth:`make_cookies`"
170177" on a :class:`CookieJar` instance."
171178msgstr ""
179+ "这个类代表 Netscape、:rfc:`2109` 和 :rfc:`2965` 的 cookie 。 我们不希望 "
180+ ":mod:`http.cookiejar` 的用户构建他们自己的 :class:`Cookie` 实例。 相反,如果有必要,请在一个 "
181+ ":class:`CookieJar` 实例上调用 :meth:`make_cookies` 。"
172182
173183#: ../../library/http.cookiejar.rst:112
174184msgid "Module :mod:`urllib.request`"
175- msgstr ""
185+ msgstr "模块 :mod:`urllib.request` "
176186
177187#: ../../library/http.cookiejar.rst:112
178188msgid "URL opening with automatic cookie handling."
179- msgstr ""
189+ msgstr "URL 打开带有自动的 cookie 处理。 "
180190
181191#: ../../library/http.cookiejar.rst:117
182192msgid "Module :mod:`http.cookies`"
183- msgstr ""
193+ msgstr "模块 :mod:`http.cookies` "
184194
185195#: ../../library/http.cookiejar.rst:115
186196msgid ""
187197"HTTP cookie classes, principally useful for server-side code. The "
188198":mod:`http.cookiejar` and :mod:`http.cookies` modules do not depend on each "
189199"other."
190200msgstr ""
201+ "HTTP cookie类,主要是对服务端代码有用。 :mod:`http.cookiejar` 和 :mod:`http.cookies` "
202+ "模块不相互依赖。"
191203
192204#: ../../library/http.cookiejar.rst:123
193205msgid "https://curl.haxx.se/rfc/cookie_spec.html"
194- msgstr ""
206+ msgstr "https://curl.haxx.se/rfc/cookie_spec.html "
195207
196208#: ../../library/http.cookiejar.rst:120
197209msgid ""
@@ -200,37 +212,41 @@ msgid ""
200212"all the major browsers (and :mod:`http.cookiejar`) only bears a passing "
201213"resemblance to the one sketched out in ``cookie_spec.html``."
202214msgstr ""
215+ "原始 Netscape cookie 协议的规范。 虽然这仍然是主流协议,但所有主要浏览器(以及 :mod:`http.cookiejar` )实现的 "
216+ "\" Netscape cookie协议\" 与``cookie_spec.html``中描述的协议仅有几分相似之处。"
203217
204218#: ../../library/http.cookiejar.rst:126
205219msgid ":rfc:`2109` - HTTP State Management Mechanism"
206- msgstr ""
220+ msgstr ":rfc:`2109` - HTTP状态管理机制 "
207221
208222#: ../../library/http.cookiejar.rst:126
209223msgid ""
210224"Obsoleted by :rfc:`2965`. Uses :mailheader:`Set-Cookie` with version=1."
211- msgstr ""
225+ msgstr "被 :rfc:`2965` 所取代。使用 :mailheader:`Set-Cookie` version=1 。 "
212226
213227#: ../../library/http.cookiejar.rst:130
214228msgid ":rfc:`2965` - HTTP State Management Mechanism"
215- msgstr ""
229+ msgstr ":rfc:`2965` - HTTP状态管理机制 "
216230
217231#: ../../library/http.cookiejar.rst:129
218232msgid ""
219233"The Netscape protocol with the bugs fixed. Uses :mailheader:`Set-Cookie2` "
220234"in place of :mailheader:`Set-Cookie`. Not widely used."
221235msgstr ""
236+ "修正了错误的 Netscape 协议。 使用 :mailheader:`Set-Cookie2` 来代替 :mailheader:`Set-"
237+ "Cookie` 。 没有广泛被使用。"
222238
223239#: ../../library/http.cookiejar.rst:133
224240msgid "http://kristol.org/cookie/errata.html"
225- msgstr ""
241+ msgstr "http://kristol.org/cookie/errata.html "
226242
227243#: ../../library/http.cookiejar.rst:133
228244msgid "Unfinished errata to :rfc:`2965`."
229- msgstr ""
245+ msgstr "未完成的:rfc:`2965` 勘误表。 "
230246
231247#: ../../library/http.cookiejar.rst:135
232248msgid ":rfc:`2964` - Use of HTTP State Management"
233- msgstr ""
249+ msgstr "HTTP状态管理使用方法 "
234250
235251#: ../../library/http.cookiejar.rst:140
236252msgid "CookieJar and FileCookieJar Objects"
@@ -241,14 +257,15 @@ msgid ""
241257":class:`CookieJar` objects support the :term:`iterator` protocol for "
242258"iterating over contained :class:`Cookie` objects."
243259msgstr ""
260+ ":class:`CookieJar` 对象支持 :term:`iterator` 协议,用于迭代包含的 :class:`Cookie` 对象。"
244261
245262#: ../../library/http.cookiejar.rst:145
246263msgid ":class:`CookieJar` has the following methods:"
247- msgstr ""
264+ msgstr ":class:`CookieJar` 有以下方法: "
248265
249266#: ../../library/http.cookiejar.rst:150
250267msgid "Add correct :mailheader:`Cookie` header to *request*."
251- msgstr ""
268+ msgstr "在 *request* 中添加正确的 :mailheader:`Cookie` 头。 "
252269
253270#: ../../library/http.cookiejar.rst:152
254271msgid ""
@@ -257,6 +274,9 @@ msgid ""
257274"true and false respectively), the :mailheader:`Cookie2` header is also added"
258275" when appropriate."
259276msgstr ""
277+ "如果策略允许(即 :attr:`rfc2965` 和 :attr:`hide_cookie2` 属性在 :class:`CookieJar` 的 "
278+ ":class:`CookiePolicy` 实例中分别为 True 和 False ), :mailheader:`Cookie2` "
279+ "标头也会在适当时候添加。"
260280
261281#: ../../library/http.cookiejar.rst:156
262282msgid ""
@@ -267,18 +287,25 @@ msgid ""
267287"and :attr:`origin_req_host` attribute as documented by "
268288":mod:`urllib.request`."
269289msgstr ""
290+ "如 :mod:`urllib.request` 所记载的, *request* 对象(通常是一个 "
291+ ":class:`urllib.request.Request` 实例)必须支持 :meth:`get_full_url` , "
292+ ":meth:`get_host`, :meth:`get_type`, :meth:`unverifiable`, "
293+ ":meth:`has_header`, :meth:`get_header`, :meth:`header_items`, "
294+ ":meth:`add_unredirected_header` 和 :attr:`origin_req_host` 属性。"
270295
271296#: ../../library/http.cookiejar.rst:165 ../../library/http.cookiejar.rst:191
272297msgid ""
273298"*request* object needs :attr:`origin_req_host` attribute. Dependency on a "
274299"deprecated method :meth:`get_origin_req_host` has been removed."
275300msgstr ""
301+ "*request* 对象需要 :attr:`origin_req_host` 属性。对已废弃的方法 "
302+ ":meth:`get_origin_req_host` 的依赖已被移除。"
276303
277304#: ../../library/http.cookiejar.rst:171
278305msgid ""
279306"Extract cookies from HTTP *response* and store them in the "
280307":class:`CookieJar`, where allowed by policy."
281- msgstr ""
308+ msgstr "从HTTP *response* 中提取 cookie,并在政策允许的情况下,将它们存储在 :class:`CookieJar` 中。 "
282309
283310#: ../../library/http.cookiejar.rst:174
284311msgid ""
@@ -287,13 +314,18 @@ msgid ""
287314"cookies as appropriate (subject to the :meth:`CookiePolicy.set_ok` method's "
288315"approval)."
289316msgstr ""
317+ ":class:`CookieJar` 将 在*response* 参数中寻找允许的 :mailheader:`Set-Cookie` 和 "
318+ ":mailheader:`Set-Cookie2` 头信息,并适当地存储cookies(须经 :meth:`CookiePolicy.set_ok` "
319+ "方法批准)。"
290320
291321#: ../../library/http.cookiejar.rst:178
292322msgid ""
293323"The *response* object (usually the result of a call to "
294324":meth:`urllib.request.urlopen`, or similar) should support an :meth:`info` "
295325"method, which returns an :class:`email.message.Message` instance."
296326msgstr ""
327+ "*response* 对象(通常是调用 :meth:`urllib.request.urlopen` 或类似方法的结果)应该支持 "
328+ ":meth:`info` 方法,它返回 :class:`email.message.Message` 实例。"
297329
298330#: ../../library/http.cookiejar.rst:182
299331msgid ""
@@ -304,35 +336,39 @@ msgid ""
304336"cookie-attributes as well as for checking that the cookie is allowed to be "
305337"set."
306338msgstr ""
339+ "如 :mod:`urllib.request` 的文档所说,*request* 对象(通常是一个 "
340+ ":class:`urllib.request.Request` 实例)必须支持 :meth:`get_full_url`, "
341+ ":meth:`get_host`, :meth:`unverifiable` 和 :attr:`origin_req_host` 属性。 该请求用于设置"
342+ " cookie-attributes 的默认值,以及检查 cookie 是否允许被设置。"
307343
308344#: ../../library/http.cookiejar.rst:196
309345msgid "Set the :class:`CookiePolicy` instance to be used."
310- msgstr ""
346+ msgstr "设置要使用的 :class:`CookiePolicy` 实例。 "
311347
312348#: ../../library/http.cookiejar.rst:201
313349msgid ""
314350"Return sequence of :class:`Cookie` objects extracted from *response* object."
315- msgstr ""
351+ msgstr "返回从 *response* 对象中提取的 :class:`Cookie` 对象的序列。 "
316352
317353#: ../../library/http.cookiejar.rst:203
318354msgid ""
319355"See the documentation for :meth:`extract_cookies` for the interfaces "
320356"required of the *response* and *request* arguments."
321- msgstr ""
357+ msgstr "关于 *response* 和 *request* 参数所需的接口,请参见 :meth:`extract_cookies` 的文档。 "
322358
323359#: ../../library/http.cookiejar.rst:209
324360msgid "Set a :class:`Cookie` if policy says it's OK to do so."
325- msgstr ""
361+ msgstr "如果策略规定可以这样做,就设置一个 :class:`Cookie` 。 "
326362
327363#: ../../library/http.cookiejar.rst:214
328364msgid ""
329365"Set a :class:`Cookie`, without checking with policy to see whether or not it"
330366" should be set."
331- msgstr ""
367+ msgstr "设置一个 :class:`Cookie`,不需要检查策略是否应该被设置。 "
332368
333369#: ../../library/http.cookiejar.rst:220
334370msgid "Clear some cookies."
335- msgstr ""
371+ msgstr "清除一些cookie。 "
336372
337373#: ../../library/http.cookiejar.rst:222
338374msgid ""
@@ -342,14 +378,17 @@ msgid ""
342378"are removed. If given three arguments, then the cookie with the specified "
343379"*domain*, *path* and *name* is removed."
344380msgstr ""
381+ "如果调用时没有参数,则清除所有的cookie。 如果给定一个参数,只有属于该 *domain* "
382+ "的cookies将被删除。如果给定两个参数,那么属于指定的 *domain* 和 URL *path* 的cookie将被删除。 "
383+ "如果给定三个参数,那么属于指定的 *domain* 、*path* 和 *name* 的cookie将被删除"
345384
346385#: ../../library/http.cookiejar.rst:228
347386msgid "Raises :exc:`KeyError` if no matching cookie exists."
348- msgstr ""
387+ msgstr "如果不存在匹配的 cookie,则会引发 :exc:`KeyError`。 "
349388
350389#: ../../library/http.cookiejar.rst:233
351390msgid "Discard all session cookies."
352- msgstr ""
391+ msgstr "丢弃所有session cookie。 "
353392
354393#: ../../library/http.cookiejar.rst:235
355394msgid ""
0 commit comments