|
1 | | -# SOME DESCRIPTIVE TITLE. |
2 | | -# Copyright (C) 2001 Python Software Foundation |
3 | | -# This file is distributed under the same license as the Python package. |
4 | | -# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
5 | | -# |
6 | | -# Translators: |
7 | | -# python-doc bot, 2025 |
8 | | -# |
9 | | -#, fuzzy |
| 1 | +# |
10 | 2 | msgid "" |
11 | 3 | msgstr "" |
12 | | -"Project-Id-Version: Python 3.15\n" |
13 | | -"Report-Msgid-Bugs-To: \n" |
14 | | -"POT-Creation-Date: 2026-09-01 17:31+0000\n" |
15 | | -"PO-Revision-Date: 2025-09-16 00:01+0000\n" |
16 | | -"Last-Translator: python-doc bot, 2025\n" |
17 | | -"Language-Team: Russian (https://app.transifex.com/python-doc/teams/5390/" |
18 | | -"ru/)\n" |
19 | | -"MIME-Version: 1.0\n" |
20 | | -"Content-Type: text/plain; charset=UTF-8\n" |
21 | | -"Content-Transfer-Encoding: 8bit\n" |
| 4 | +"Language-Team: Russian (https://app.transifex.com/python-doc/teams/5390/ru/)\n" |
22 | 5 | "Language: ru\n" |
23 | | -"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
24 | | -"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
25 | | -"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
26 | | - |
27 | | -msgid ":mod:`!http.cookies` --- HTTP state management" |
28 | | -msgstr "" |
29 | | - |
30 | | -msgid "**Source code:** :source:`Lib/http/cookies.py`" |
31 | | -msgstr "" |
32 | | - |
33 | | -msgid "" |
34 | | -"The :mod:`!http.cookies` module defines classes for abstracting the concept " |
35 | | -"of cookies, an HTTP state management mechanism. It supports both simple " |
36 | | -"string-only cookies, and provides an abstraction for having any serializable " |
37 | | -"data-type as cookie value." |
38 | | -msgstr "" |
39 | | - |
40 | | -msgid "" |
41 | | -"The module formerly strictly applied the parsing rules described in the :rfc:" |
42 | | -"`2109` and :rfc:`2068` specifications. It has since been discovered that " |
43 | | -"MSIE 3.0x didn't follow the character rules outlined in those specs; many " |
44 | | -"current-day browsers and servers have also relaxed parsing rules when it " |
45 | | -"comes to cookie handling. As a result, this module now uses parsing rules " |
46 | | -"that are a bit less strict than they once were." |
47 | | -msgstr "" |
48 | | - |
49 | | -msgid "" |
50 | | -"The character set, :data:`string.ascii_letters`, :data:`string.digits` and " |
51 | | -"``!#$%&'*+-.^_`|~:`` denote the set of valid characters allowed by this " |
52 | | -"module in a cookie name (as :attr:`~Morsel.key`)." |
53 | | -msgstr "" |
54 | | - |
55 | | -msgid "Allowed ':' as a valid cookie name character." |
56 | | -msgstr "" |
57 | | - |
58 | | -msgid "" |
59 | | -"On encountering an invalid cookie, :exc:`CookieError` is raised, so if your " |
60 | | -"cookie data comes from a browser you should always prepare for invalid data " |
61 | | -"and catch :exc:`CookieError` on parsing." |
62 | | -msgstr "" |
63 | | - |
64 | | -msgid "" |
65 | | -"Exception failing because of :rfc:`2109` invalidity: incorrect attributes, " |
66 | | -"incorrect :mailheader:`Set-Cookie` header, etc." |
67 | | -msgstr "" |
68 | | - |
69 | | -msgid "" |
70 | | -"This class is a dictionary-like object whose keys are strings and whose " |
71 | | -"values are :class:`Morsel` instances. Note that upon setting a key to a " |
72 | | -"value, the value is first converted to a :class:`Morsel` containing the key " |
73 | | -"and the value." |
74 | | -msgstr "" |
75 | | - |
76 | | -msgid "If *input* is given, it is passed to the :meth:`load` method." |
77 | | -msgstr "" |
78 | | - |
79 | | -msgid "" |
80 | | -"This class derives from :class:`BaseCookie` and overrides :meth:`~BaseCookie." |
81 | | -"value_decode` and :meth:`~BaseCookie.value_encode`. :class:`!SimpleCookie` " |
82 | | -"supports strings as cookie values. When setting the value, :class:`!" |
83 | | -"SimpleCookie` calls the builtin :func:`str` to convert the value to a " |
84 | | -"string. Values received from HTTP are kept as strings." |
85 | | -msgstr "" |
86 | | - |
87 | | -msgid "Module :mod:`http.cookiejar`" |
88 | | -msgstr "" |
89 | | - |
90 | | -msgid "" |
91 | | -"HTTP cookie handling for web *clients*. The :mod:`http.cookiejar` and :mod:" |
92 | | -"`!http.cookies` modules do not depend on each other." |
93 | | -msgstr "" |
94 | | - |
95 | | -msgid ":rfc:`2109` - HTTP State Management Mechanism" |
96 | | -msgstr "" |
97 | | - |
98 | | -msgid "This is the state management specification implemented by this module." |
99 | | -msgstr "" |
100 | | - |
101 | | -msgid "Cookie Objects" |
102 | | -msgstr "" |
103 | | - |
104 | | -msgid "" |
105 | | -"Return a tuple ``(real_value, coded_value)`` from a string representation. " |
106 | | -"``real_value`` can be any type. This method does no decoding in :class:" |
107 | | -"`BaseCookie` --- it exists so it can be overridden." |
108 | | -msgstr "" |
109 | | - |
110 | | -msgid "" |
111 | | -"Return a tuple ``(real_value, coded_value)``. *val* can be any type, but " |
112 | | -"``coded_value`` will always be converted to a string. This method does no " |
113 | | -"encoding in :class:`BaseCookie` --- it exists so it can be overridden." |
114 | | -msgstr "" |
115 | | - |
116 | | -msgid "" |
117 | | -"In general, it should be the case that :meth:`value_encode` and :meth:" |
118 | | -"`value_decode` are inverses on the range of *value_decode*." |
119 | | -msgstr "" |
120 | | - |
121 | | -msgid "" |
122 | | -"Return a string representation suitable to be sent as HTTP headers. *attrs* " |
123 | | -"and *header* are sent to each :class:`Morsel`'s :meth:`~Morsel.output` " |
124 | | -"method. *sep* is used to join the headers together, and is by default the " |
125 | | -"combination ``'\\r\\n'`` (CRLF)." |
126 | | -msgstr "" |
127 | | - |
128 | | -msgid "" |
129 | | -"Return an embeddable JavaScript snippet, which, if run on a browser which " |
130 | | -"supports JavaScript, will act the same as if the HTTP headers was sent." |
131 | | -msgstr "" |
132 | | - |
133 | | -msgid "The meaning for *attrs* is the same as in :meth:`output`." |
134 | | -msgstr "" |
135 | | - |
136 | | -msgid "" |
137 | | -"This method generates a JavaScript snippet to set cookies in the browser, " |
138 | | -"which is no longer considered a standard or recommended approach. Use :meth:" |
139 | | -"`~http.cookies.BaseCookie.output` instead to generate HTTP headers." |
140 | | -msgstr "" |
141 | | - |
142 | | -msgid "" |
143 | | -"If *rawdata* is a string, parse it as an ``HTTP_COOKIE`` and add the values " |
144 | | -"found there as :class:`Morsel`\\ s. If it is a dictionary, it is equivalent " |
145 | | -"to::" |
146 | | -msgstr "" |
147 | | - |
148 | | -msgid "" |
149 | | -"for k, v in rawdata.items():\n" |
150 | | -" cookie[k] = v" |
151 | | -msgstr "" |
152 | | - |
153 | | -msgid "Morsel Objects" |
154 | | -msgstr "" |
155 | | - |
156 | | -msgid "Abstract a key/value pair, which has some :rfc:`2109` attributes." |
157 | | -msgstr "" |
158 | | - |
159 | | -msgid "" |
160 | | -"Morsels are dictionary-like objects, whose set of keys is constant --- the " |
161 | | -"valid :rfc:`2109` attributes, which are:" |
162 | | -msgstr "" |
163 | | - |
164 | | -msgid "" |
165 | | -"The attribute :attr:`httponly` specifies that the cookie is only transferred " |
166 | | -"in HTTP requests, and is not accessible through JavaScript. This is intended " |
167 | | -"to mitigate some forms of cross-site scripting." |
168 | | -msgstr "" |
169 | | - |
170 | | -msgid "" |
171 | | -"The attribute :attr:`samesite` controls when the browser sends the cookie " |
172 | | -"with cross-site requests. This helps to mitigate CSRF attacks. Valid values " |
173 | | -"are \"Strict\" (only sent with same-site requests), \"Lax\" (sent with same-" |
174 | | -"site requests and top-level navigations), and \"None\" (sent with same-site " |
175 | | -"and cross-site requests). When using \"None\", the \"secure\" attribute must " |
176 | | -"also be set, as required by modern browsers." |
177 | | -msgstr "" |
178 | | - |
179 | | -msgid "" |
180 | | -"The attribute :attr:`partitioned` indicates to user agents that these cross-" |
181 | | -"site cookies *should* only be available in the same top-level context that " |
182 | | -"the cookie was first set in. For this to be accepted by the user agent, you " |
183 | | -"**must** also set ``Secure``." |
184 | | -msgstr "" |
185 | | - |
186 | | -msgid "" |
187 | | -"In addition, it is recommended to use the ``__Host`` prefix when setting " |
188 | | -"partitioned cookies to make them bound to the hostname and not the " |
189 | | -"registrable domain. Read `CHIPS (Cookies Having Independent Partitioned " |
190 | | -"State)`_ for full details and examples." |
191 | | -msgstr "" |
192 | | - |
193 | | -msgid "The keys are case-insensitive and their default value is ``''``." |
194 | | -msgstr "" |
195 | | - |
196 | | -msgid "" |
197 | | -":meth:`!__eq__` now takes :attr:`~Morsel.key` and :attr:`~Morsel.value` into " |
198 | | -"account." |
199 | | -msgstr "" |
200 | | - |
201 | | -msgid "" |
202 | | -"Attributes :attr:`~Morsel.key`, :attr:`~Morsel.value` and :attr:`~Morsel." |
203 | | -"coded_value` are read-only. Use :meth:`~Morsel.set` for setting them." |
204 | | -msgstr "" |
205 | | - |
206 | | -msgid "Added support for the :attr:`samesite` attribute." |
207 | | -msgstr "" |
208 | | - |
209 | | -msgid "Added support for the :attr:`partitioned` attribute." |
210 | | -msgstr "" |
211 | | - |
212 | | -msgid "The value of the cookie." |
213 | | -msgstr "" |
214 | | - |
215 | | -msgid "The encoded value of the cookie --- this is what should be sent." |
216 | | -msgstr "" |
217 | | - |
218 | | -msgid "The name of the cookie." |
219 | | -msgstr "" |
220 | | - |
221 | | -msgid "Set the *key*, *value* and *coded_value* attributes." |
222 | | -msgstr "" |
223 | | - |
224 | | -msgid "Whether *K* is a member of the set of keys of a :class:`Morsel`." |
225 | | -msgstr "" |
226 | | - |
227 | | -msgid "" |
228 | | -"Return a string representation of the Morsel, suitable to be sent as an HTTP " |
229 | | -"header. By default, all the attributes are included, unless *attrs* is " |
230 | | -"given, in which case it should be a list of attributes to use. *header* is " |
231 | | -"by default ``\"Set-Cookie:\"``." |
232 | | -msgstr "" |
233 | | - |
234 | | -msgid "" |
235 | | -"Return an embeddable JavaScript snippet, which, if run on a browser which " |
236 | | -"supports JavaScript, will act the same as if the HTTP header was sent." |
237 | | -msgstr "" |
238 | | - |
239 | | -msgid "" |
240 | | -"This method generates a JavaScript snippet to set cookies in the browser, " |
241 | | -"which is no longer considered a standard or recommended approach. Use :meth:" |
242 | | -"`~http.cookies.Morsel.output` instead to generate HTTP headers." |
243 | | -msgstr "" |
244 | | - |
245 | | -msgid "" |
246 | | -"Return a string representing the Morsel, without any surrounding HTTP or " |
247 | | -"JavaScript." |
248 | | -msgstr "" |
249 | | - |
250 | | -msgid "" |
251 | | -"Update the values in the Morsel dictionary with the values in the dictionary " |
252 | | -"*values*. Raise an error if any of the keys in the *values* dict is not a " |
253 | | -"valid :rfc:`2109` attribute." |
254 | | -msgstr "" |
255 | | - |
256 | | -msgid "an error is raised for invalid keys." |
257 | | -msgstr "" |
258 | | - |
259 | | -msgid "Return a shallow copy of the Morsel object." |
260 | | -msgstr "" |
261 | | - |
262 | | -msgid "return a Morsel object instead of a dict." |
263 | | -msgstr "" |
264 | | - |
265 | | -msgid "" |
266 | | -"Raise an error if key is not a valid :rfc:`2109` attribute, otherwise behave " |
267 | | -"the same as :meth:`dict.setdefault`." |
268 | | -msgstr "" |
269 | | - |
270 | | -msgid "Example" |
271 | | -msgstr "" |
272 | | - |
273 | | -msgid "" |
274 | | -"The following example demonstrates how to use the :mod:`!http.cookies` " |
275 | | -"module." |
276 | | -msgstr "" |
277 | | - |
278 | | -msgid "" |
279 | | -">>> from http import cookies\n" |
280 | | -">>> C = cookies.SimpleCookie()\n" |
281 | | -">>> C[\"fig\"] = \"newton\"\n" |
282 | | -">>> C[\"sugar\"] = \"wafer\"\n" |
283 | | -">>> print(C) # generate HTTP headers\n" |
284 | | -"Set-Cookie: fig=newton\n" |
285 | | -"Set-Cookie: sugar=wafer\n" |
286 | | -">>> print(C.output()) # same thing\n" |
287 | | -"Set-Cookie: fig=newton\n" |
288 | | -"Set-Cookie: sugar=wafer\n" |
289 | | -">>> C = cookies.SimpleCookie()\n" |
290 | | -">>> C[\"rocky\"] = \"road\"\n" |
291 | | -">>> C[\"rocky\"][\"path\"] = \"/cookie\"\n" |
292 | | -">>> print(C.output(header=\"Cookie:\"))\n" |
293 | | -"Cookie: rocky=road; Path=/cookie\n" |
294 | | -">>> print(C.output(attrs=[], header=\"Cookie:\"))\n" |
295 | | -"Cookie: rocky=road\n" |
296 | | -">>> C = cookies.SimpleCookie()\n" |
297 | | -">>> C.load(\"chips=ahoy; vienna=finger\") # load from a string (HTTP " |
298 | | -"header)\n" |
299 | | -">>> print(C)\n" |
300 | | -"Set-Cookie: chips=ahoy\n" |
301 | | -"Set-Cookie: vienna=finger\n" |
302 | | -">>> C = cookies.SimpleCookie()\n" |
303 | | -">>> C.load('keebler=\"E=everybody; L=\\\\\"Loves\\\\\"; fudge=;\";')\n" |
304 | | -">>> print(C)\n" |
305 | | -"Set-Cookie: keebler=\"E=everybody; L=\\\"Loves\\\"; fudge=;\"\n" |
306 | | -">>> C = cookies.SimpleCookie()\n" |
307 | | -">>> C[\"oreo\"] = \"doublestuff\"\n" |
308 | | -">>> C[\"oreo\"][\"path\"] = \"/\"\n" |
309 | | -">>> print(C)\n" |
310 | | -"Set-Cookie: oreo=doublestuff; Path=/\n" |
311 | | -">>> C = cookies.SimpleCookie()\n" |
312 | | -">>> C[\"twix\"] = \"none for you\"\n" |
313 | | -">>> C[\"twix\"].value\n" |
314 | | -"'none for you'\n" |
315 | | -">>> C = cookies.SimpleCookie()\n" |
316 | | -">>> C[\"number\"] = 7 # equivalent to C[\"number\"] = str(7)\n" |
317 | | -">>> C[\"string\"] = \"seven\"\n" |
318 | | -">>> C[\"number\"].value\n" |
319 | | -"'7'\n" |
320 | | -">>> C[\"string\"].value\n" |
321 | | -"'seven'\n" |
322 | | -">>> print(C)\n" |
323 | | -"Set-Cookie: number=7\n" |
324 | | -"Set-Cookie: string=seven" |
325 | | -msgstr "" |
| 6 | +"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n" |
0 commit comments