99# Zombie110year <[email protected] >, 20191010# Shengjing Zhu <[email protected] >, 20191111# ppcfish <[email protected] >, 201912+ # Meng Du <[email protected] >, 202113+ # Freesand Leo <[email protected] >, 20211214#
1315#, fuzzy
1416msgid ""
@@ -17,7 +19,7 @@ msgstr ""
1719"Report-Msgid-Bugs-To : \n "
1820"POT-Creation-Date : 2021-01-01 05:02+0000\n "
1921"PO-Revision-Date : 2017-02-16 23:13+0000\n "
20- "Last-Translator : ppcfish <ppcfish@gmail .com>, 2019 \n "
22+ "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2021 \n "
2123"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2224"MIME-Version : 1.0\n "
2325"Content-Type : text/plain; charset=UTF-8\n "
@@ -167,6 +169,12 @@ msgid ""
167169":class:`Cookie` instance to 0. :class:`DefaultCookiePolicy` also provides "
168170"some parameters to allow some fine-tuning of policy."
169171msgstr ""
172+ ":class:`DefaultCookiePolicy` 实现了 Netscape 和 :rfc:`2965` cookies 的标准接受 / "
173+ "拒绝规则。 默认情况下,:rfc:`2109` cookies(即在 :mailheader:`Set-Cookie` 头中收到的 cookie-"
174+ "attribute 版本为 1 的 cookies )将按照 RFC 2965 规则处理。 然而,如果 RFC 2965 的处理被关闭,或者 "
175+ ":attr:`rfc2109_as_netscape` 为 ``True``,:class:`Cookie` 实例的 :attr:`version` "
176+ "属性设置将被为 0, RFC 2109 cookies :class:`CookieJar` 实例将 \" 降级\" 为 Netscape "
177+ "cookies。 :class:`DefaultCookiePolicy` 也提供一些参数以允许一些策略微调。"
170178
171179#: ../../library/http.cookiejar.rst:109
172180msgid ""
@@ -175,29 +183,34 @@ msgid ""
175183":class:`Cookie` instances. Instead, if necessary, call :meth:`make_cookies`"
176184" on a :class:`CookieJar` instance."
177185msgstr ""
186+ "这个类代表 Netscape、:rfc:`2109` 和 :rfc:`2965` 的 cookie 。 我们不希望 "
187+ ":mod:`http.cookiejar` 的用户构建他们自己的 :class:`Cookie` 实例。 相反,如果有必要,请在一个 "
188+ ":class:`CookieJar` 实例上调用 :meth:`make_cookies` 。"
178189
179190#: ../../library/http.cookiejar.rst:118
180191msgid "Module :mod:`urllib.request`"
181- msgstr ""
192+ msgstr "模块 :mod:`urllib.request` "
182193
183194#: ../../library/http.cookiejar.rst:118
184195msgid "URL opening with automatic cookie handling."
185- msgstr ""
196+ msgstr "URL 打开带有自动的 cookie 处理。 "
186197
187198#: ../../library/http.cookiejar.rst:123
188199msgid "Module :mod:`http.cookies`"
189- msgstr ""
200+ msgstr "模块 :mod:`http.cookies` "
190201
191202#: ../../library/http.cookiejar.rst:121
192203msgid ""
193204"HTTP cookie classes, principally useful for server-side code. The "
194205":mod:`http.cookiejar` and :mod:`http.cookies` modules do not depend on each "
195206"other."
196207msgstr ""
208+ "HTTP cookie类,主要是对服务端代码有用。 :mod:`http.cookiejar` 和 :mod:`http.cookies` "
209+ "模块不相互依赖。"
197210
198211#: ../../library/http.cookiejar.rst:129
199212msgid "https://curl.haxx.se/rfc/cookie_spec.html"
200- msgstr ""
213+ msgstr "https://curl.haxx.se/rfc/cookie_spec.html "
201214
202215#: ../../library/http.cookiejar.rst:126
203216msgid ""
@@ -206,37 +219,41 @@ msgid ""
206219"all the major browsers (and :mod:`http.cookiejar`) only bears a passing "
207220"resemblance to the one sketched out in ``cookie_spec.html``."
208221msgstr ""
222+ "原始 Netscape cookie 协议的规范。 虽然这仍然是主流协议,但所有主要浏览器(以及 :mod:`http.cookiejar` )实现的 "
223+ "\" Netscape cookie协议\" 与``cookie_spec.html``中描述的协议仅有几分相似之处。"
209224
210225#: ../../library/http.cookiejar.rst:132
211226msgid ":rfc:`2109` - HTTP State Management Mechanism"
212- msgstr ""
227+ msgstr ":rfc:`2109` - HTTP状态管理机制 "
213228
214229#: ../../library/http.cookiejar.rst:132
215230msgid ""
216231"Obsoleted by :rfc:`2965`. Uses :mailheader:`Set-Cookie` with version=1."
217- msgstr ""
232+ msgstr "被 :rfc:`2965` 所取代。使用 :mailheader:`Set-Cookie` version=1 。 "
218233
219234#: ../../library/http.cookiejar.rst:136
220235msgid ":rfc:`2965` - HTTP State Management Mechanism"
221- msgstr ""
236+ msgstr ":rfc:`2965` - HTTP状态管理机制 "
222237
223238#: ../../library/http.cookiejar.rst:135
224239msgid ""
225240"The Netscape protocol with the bugs fixed. Uses :mailheader:`Set-Cookie2` "
226241"in place of :mailheader:`Set-Cookie`. Not widely used."
227242msgstr ""
243+ "修正了错误的 Netscape 协议。 使用 :mailheader:`Set-Cookie2` 来代替 :mailheader:`Set-"
244+ "Cookie` 。 没有广泛被使用。"
228245
229246#: ../../library/http.cookiejar.rst:139
230247msgid "http://kristol.org/cookie/errata.html"
231- msgstr ""
248+ msgstr "http://kristol.org/cookie/errata.html "
232249
233250#: ../../library/http.cookiejar.rst:139
234251msgid "Unfinished errata to :rfc:`2965`."
235- msgstr ""
252+ msgstr "未完成的:rfc:`2965` 勘误表。 "
236253
237254#: ../../library/http.cookiejar.rst:141
238255msgid ":rfc:`2964` - Use of HTTP State Management"
239- msgstr ""
256+ msgstr "HTTP状态管理使用方法 "
240257
241258#: ../../library/http.cookiejar.rst:146
242259msgid "CookieJar and FileCookieJar Objects"
@@ -247,14 +264,15 @@ msgid ""
247264":class:`CookieJar` objects support the :term:`iterator` protocol for "
248265"iterating over contained :class:`Cookie` objects."
249266msgstr ""
267+ ":class:`CookieJar` 对象支持 :term:`iterator` 协议,用于迭代包含的 :class:`Cookie` 对象。"
250268
251269#: ../../library/http.cookiejar.rst:151
252270msgid ":class:`CookieJar` has the following methods:"
253- msgstr ""
271+ msgstr ":class:`CookieJar` 有以下方法: "
254272
255273#: ../../library/http.cookiejar.rst:156
256274msgid "Add correct :mailheader:`Cookie` header to *request*."
257- msgstr ""
275+ msgstr "在 *request* 中添加正确的 :mailheader:`Cookie` 头。 "
258276
259277#: ../../library/http.cookiejar.rst:158
260278msgid ""
@@ -263,6 +281,9 @@ msgid ""
263281"true and false respectively), the :mailheader:`Cookie2` header is also added"
264282" when appropriate."
265283msgstr ""
284+ "如果策略允许(即 :attr:`rfc2965` 和 :attr:`hide_cookie2` 属性在 :class:`CookieJar` 的 "
285+ ":class:`CookiePolicy` 实例中分别为 True 和 False ), :mailheader:`Cookie2` "
286+ "标头也会在适当时候添加。"
266287
267288#: ../../library/http.cookiejar.rst:162
268289msgid ""
@@ -273,18 +294,25 @@ msgid ""
273294"and :attr:`origin_req_host` attribute as documented by "
274295":mod:`urllib.request`."
275296msgstr ""
297+ "如 :mod:`urllib.request` 所记载的, *request* 对象(通常是一个 "
298+ ":class:`urllib.request.Request` 实例)必须支持 :meth:`get_full_url` , "
299+ ":meth:`get_host`, :meth:`get_type`, :meth:`unverifiable`, "
300+ ":meth:`has_header`, :meth:`get_header`, :meth:`header_items`, "
301+ ":meth:`add_unredirected_header` 和 :attr:`origin_req_host` 属性。"
276302
277303#: ../../library/http.cookiejar.rst:171 ../../library/http.cookiejar.rst:197
278304msgid ""
279305"*request* object needs :attr:`origin_req_host` attribute. Dependency on a "
280306"deprecated method :meth:`get_origin_req_host` has been removed."
281307msgstr ""
308+ "*request* 对象需要 :attr:`origin_req_host` 属性。对已废弃的方法 "
309+ ":meth:`get_origin_req_host` 的依赖已被移除。"
282310
283311#: ../../library/http.cookiejar.rst:177
284312msgid ""
285313"Extract cookies from HTTP *response* and store them in the "
286314":class:`CookieJar`, where allowed by policy."
287- msgstr ""
315+ msgstr "从HTTP *response* 中提取 cookie,并在政策允许的情况下,将它们存储在 :class:`CookieJar` 中。 "
288316
289317#: ../../library/http.cookiejar.rst:180
290318msgid ""
@@ -293,13 +321,18 @@ msgid ""
293321"cookies as appropriate (subject to the :meth:`CookiePolicy.set_ok` method's "
294322"approval)."
295323msgstr ""
324+ ":class:`CookieJar` 将 在*response* 参数中寻找允许的 :mailheader:`Set-Cookie` 和 "
325+ ":mailheader:`Set-Cookie2` 头信息,并适当地存储cookies(须经 :meth:`CookiePolicy.set_ok` "
326+ "方法批准)。"
296327
297328#: ../../library/http.cookiejar.rst:184
298329msgid ""
299330"The *response* object (usually the result of a call to "
300331":meth:`urllib.request.urlopen`, or similar) should support an :meth:`info` "
301332"method, which returns an :class:`email.message.Message` instance."
302333msgstr ""
334+ "*response* 对象(通常是调用 :meth:`urllib.request.urlopen` 或类似方法的结果)应该支持 "
335+ ":meth:`info` 方法,它返回 :class:`email.message.Message` 实例。"
303336
304337#: ../../library/http.cookiejar.rst:188
305338msgid ""
@@ -310,35 +343,39 @@ msgid ""
310343"cookie-attributes as well as for checking that the cookie is allowed to be "
311344"set."
312345msgstr ""
346+ "如 :mod:`urllib.request` 的文档所说,*request* 对象(通常是一个 "
347+ ":class:`urllib.request.Request` 实例)必须支持 :meth:`get_full_url`, "
348+ ":meth:`get_host`, :meth:`unverifiable` 和 :attr:`origin_req_host` 属性。 该请求用于设置"
349+ " cookie-attributes 的默认值,以及检查 cookie 是否允许被设置。"
313350
314351#: ../../library/http.cookiejar.rst:202
315352msgid "Set the :class:`CookiePolicy` instance to be used."
316- msgstr ""
353+ msgstr "设置要使用的 :class:`CookiePolicy` 实例。 "
317354
318355#: ../../library/http.cookiejar.rst:207
319356msgid ""
320357"Return sequence of :class:`Cookie` objects extracted from *response* object."
321- msgstr ""
358+ msgstr "返回从 *response* 对象中提取的 :class:`Cookie` 对象的序列。 "
322359
323360#: ../../library/http.cookiejar.rst:209
324361msgid ""
325362"See the documentation for :meth:`extract_cookies` for the interfaces "
326363"required of the *response* and *request* arguments."
327- msgstr ""
364+ msgstr "关于 *response* 和 *request* 参数所需的接口,请参见 :meth:`extract_cookies` 的文档。 "
328365
329366#: ../../library/http.cookiejar.rst:215
330367msgid "Set a :class:`Cookie` if policy says it's OK to do so."
331- msgstr ""
368+ msgstr "如果策略规定可以这样做,就设置一个 :class:`Cookie` 。 "
332369
333370#: ../../library/http.cookiejar.rst:220
334371msgid ""
335372"Set a :class:`Cookie`, without checking with policy to see whether or not it"
336373" should be set."
337- msgstr ""
374+ msgstr "设置一个 :class:`Cookie`,不需要检查策略是否应该被设置。 "
338375
339376#: ../../library/http.cookiejar.rst:226
340377msgid "Clear some cookies."
341- msgstr ""
378+ msgstr "清除一些cookie。 "
342379
343380#: ../../library/http.cookiejar.rst:228
344381msgid ""
@@ -348,14 +385,17 @@ msgid ""
348385"are removed. If given three arguments, then the cookie with the specified "
349386"*domain*, *path* and *name* is removed."
350387msgstr ""
388+ "如果调用时没有参数,则清除所有的cookie。 如果给定一个参数,只有属于该 *domain* "
389+ "的cookies将被删除。如果给定两个参数,那么属于指定的 *domain* 和 URL *path* 的cookie将被删除。 "
390+ "如果给定三个参数,那么属于指定的 *domain* 、*path* 和 *name* 的cookie将被删除"
351391
352392#: ../../library/http.cookiejar.rst:234
353393msgid "Raises :exc:`KeyError` if no matching cookie exists."
354- msgstr ""
394+ msgstr "如果不存在匹配的 cookie,则会引发 :exc:`KeyError`。 "
355395
356396#: ../../library/http.cookiejar.rst:239
357397msgid "Discard all session cookies."
358- msgstr ""
398+ msgstr "丢弃所有session cookie。 "
359399
360400#: ../../library/http.cookiejar.rst:241
361401msgid ""
0 commit comments