88# ppcfish <[email protected] >, 202199# Alpha Du <[email protected] >, 20211010# Dai Xu <[email protected] >, 202111+ # Freesand Leo <[email protected] >, 20211112#
1213#, fuzzy
1314msgid ""
@@ -16,7 +17,7 @@ msgstr ""
1617"Report-Msgid-Bugs-To : \n "
1718"POT-Creation-Date : 2021-06-29 12:56+0000\n "
1819"PO-Revision-Date : 2021-06-28 01:07+0000\n "
19- "Last-Translator : Dai Xu <daixu61@hotmail .com>, 2021\n "
20+ "Last-Translator : Freesand Leo <yuqinju@163 .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 "
@@ -73,12 +74,14 @@ msgid ""
7374"cookie data comes from a browser you should always prepare for invalid data "
7475"and catch :exc:`CookieError` on parsing."
7576msgstr ""
77+ "当遇到无效 cookie 时会触发 :exc:`CookieError`,所以若 cookie "
78+ "数据来自浏览器,一定要做好应对无效数据的准备,并在解析时捕获 :exc:`CookieError`。"
7679
7780#: ../../library/http.cookies.rst:42
7881msgid ""
7982"Exception failing because of :rfc:`2109` invalidity: incorrect attributes, "
8083"incorrect :mailheader:`Set-Cookie` header, etc."
81- msgstr ""
84+ msgstr "出现异常的原因,可能是不符合 :rfc:`2109` :属性不正确、:mailheader:`Set-Cookie` 头部信息不正确等等。 "
8285
8386#: ../../library/http.cookies.rst:48
8487msgid ""
@@ -87,10 +90,12 @@ msgid ""
8790"value, the value is first converted to a :class:`Morsel` containing the key "
8891"and the value."
8992msgstr ""
93+ "类似字典的对象,字典键为字符串,字典值是 :class:`Morsel` 实例。请注意,在将键值关联时,首先会把值转换为包含键和值的 "
94+ ":class:`Morsel` 对象。"
9095
9196#: ../../library/http.cookies.rst:52
9297msgid "If *input* is given, it is passed to the :meth:`load` method."
93- msgstr ""
98+ msgstr "若给出 *input* ,将会传给 :meth:`load` 方法。 "
9499
95100#: ../../library/http.cookies.rst:57
96101msgid ""
@@ -100,16 +105,21 @@ msgid ""
100105":func:`str()` to convert the value to a string. Values received from HTTP "
101106"are kept as strings."
102107msgstr ""
108+ "该类派生于 :class:`BaseCookie`,并覆盖了 :meth:`value_decode` 和 :meth:`value_encode` "
109+ "方法。SimpleCookie 允许用字符串作为 cookie 值。在设置值时,SimpleCookie 将调用内置的 :func:`str()` "
110+ "将其转换为字符串。从 HTTP 接收到的值将作为字符串保存。"
103111
104112#: ../../library/http.cookies.rst:66
105113msgid "Module :mod:`http.cookiejar`"
106- msgstr ""
114+ msgstr ":mod:`http.cookiejar` 模块 "
107115
108116#: ../../library/http.cookies.rst:65
109117msgid ""
110118"HTTP cookie handling for web *clients*. The :mod:`http.cookiejar` and "
111119":mod:`http.cookies` modules do not depend on each other."
112120msgstr ""
121+ "处理网络 *客户端* 的 HTTP cookie。 :mod:`http.cookiejar` 和 :mod:`http.cookies` "
122+ "模块相互没有依赖关系。"
113123
114124#: ../../library/http.cookies.rst:68
115125msgid ":rfc:`2109` - HTTP State Management Mechanism"
0 commit comments