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

Skip to content

Commit 3e1953d

Browse files
[po] auto sync
1 parent 9678bff commit 3e1953d

2 files changed

Lines changed: 34 additions & 14 deletions

File tree

library/lzma.po

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ msgstr ""
213213

214214
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:119
215215
msgid "Added support for the ``\"x\"`` and ``\"xb\"`` modes."
216-
msgstr ""
216+
msgstr "增加了对 ``\"x\"`` 和 ``\"xb\"`` 模式的支持。"
217217

218218
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:122
219219
msgid ""
@@ -281,39 +281,41 @@ msgid ""
281281
"The *check* argument specifies the type of integrity check to include in the"
282282
" compressed data. This check is used when decompressing, to ensure that the "
283283
"data has not been corrupted. Possible values are:"
284-
msgstr ""
284+
msgstr "*check* 参数指定要包含在压缩数据中的一致性检查类型。 这种检查在解压缩时使用,以确保数据没有被破坏。 可能的值是:"
285285

286286
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:160
287287
msgid ""
288288
":const:`CHECK_NONE`: No integrity check. This is the default (and the only "
289289
"acceptable value) for :const:`FORMAT_ALONE` and :const:`FORMAT_RAW`."
290290
msgstr ""
291+
":const:`CHECK_NONE`: 没有一致性检查。 这是 :const:`FORMAT_ALONE` 和 :const:`FORMAT_RAW`"
292+
" 的默认值(也是唯一可接受的值)。"
291293

292294
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:164
293295
msgid ":const:`CHECK_CRC32`: 32-bit Cyclic Redundancy Check."
294-
msgstr ""
296+
msgstr ":const:`CHECK_CRC32`: 32 位循环冗余检查。"
295297

296298
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:166
297299
msgid ""
298300
":const:`CHECK_CRC64`: 64-bit Cyclic Redundancy Check. This is the default "
299301
"for :const:`FORMAT_XZ`."
300-
msgstr ""
302+
msgstr ":const:`CHECK_CRC64`: 64 位循环冗余检查。 这是 :const:`FORMAT_XZ` 的默认值。"
301303

302304
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:169
303305
msgid ":const:`CHECK_SHA256`: 256-bit Secure Hash Algorithm."
304-
msgstr ""
306+
msgstr ":const:`CHECK_SHA256`: 256 位安全哈希算法。"
305307

306308
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:171
307309
msgid ""
308310
"If the specified check is not supported, an :class:`LZMAError` is raised."
309-
msgstr ""
311+
msgstr "如果指定的检查不受支持,则会引发 :class:`LZMAError`。"
310312

311313
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:173
312314
msgid ""
313315
"The compression settings can be specified either as a preset compression "
314316
"level (with the *preset* argument), or in detail as a custom filter chain "
315317
"(with the *filters* argument)."
316-
msgstr ""
318+
msgstr "压缩设置可被指定为一个预设的压缩等级(通过 *preset* 参数)或以自定义过滤器链来详细设置(通过 *filters* 参数)。"
317319

318320
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:177
319321
msgid ""
@@ -324,6 +326,9 @@ msgid ""
324326
"Higher presets produce smaller output, but make the compression process "
325327
"slower."
326328
msgstr ""
329+
"*preset* 参数(如果提供)应当为一个 ``0`` 到 ``9`` (包括边界) 之间的整数,可以选择与常数 "
330+
":const:`PRESET_EXTREME` 进行 OR 运算。 如果 *preset* 和 *filters* 均未给出,则默认行为是使用 "
331+
":const:`PRESET_DEFAULT` (预设等级 ``6``)。 更高的预设等级会产生更小的输出,但会使得压缩过程更缓慢。"
327332

328333
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:186
329334
msgid ""
@@ -333,6 +338,8 @@ msgid ""
333338
":class:`LZMACompressor` object can be as high as 800 MiB. For this reason, "
334339
"it is generally best to stick with the default preset."
335340
msgstr ""
341+
"除了更加 CPU 密集,使用更高的预设等级来压缩还需要更多的内存(并产生需要更多内存来解压缩的输出)。 例如使用预设等级 ``9`` 时,一个 "
342+
":class:`LZMACompressor` 对象的开销可以高达 800 MiB。 出于这样的原因,通常最好是保持使用默认预设等级。"
336343

337344
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/lzma.rst:192
338345
msgid ""

library/urllib.robotparser.po

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#
66
# Translators:
77
# 汪心禾 <[email protected]>, 2019
8+
# Freesand Leo <[email protected]>, 2020
89
#
910
#, fuzzy
1011
msgid ""
@@ -13,7 +14,7 @@ msgstr ""
1314
"Report-Msgid-Bugs-To: \n"
1415
"POT-Creation-Date: 2020-01-01 12:19+0000\n"
1516
"PO-Revision-Date: 2017-02-16 23:34+0000\n"
16-
"Last-Translator: 汪心禾 <wangxinhe06@gmail.com>, 2019\n"
17+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2020\n"
1718
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1819
"MIME-Version: 1.0\n"
1920
"Content-Type: text/plain; charset=UTF-8\n"
@@ -37,42 +38,47 @@ msgid ""
3738
"on the structure of :file:`robots.txt` files, see "
3839
"http://www.robotstxt.org/orig.html."
3940
msgstr ""
41+
"此模块提供了一个单独的类 :class:`RobotFileParser`,它可以回答关于某个特定用户代理是否能在 Web 站点获取发布 "
42+
":file:`robots.txt` 文件的 URL 的问题。 有关 :file:`robots.txt` 文件结构的更多细节请参阅 "
43+
"http://www.robotstxt.org/orig.html。"
4044

4145
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/urllib.robotparser.rst:28
4246
msgid ""
4347
"This class provides methods to read, parse and answer questions about the "
4448
":file:`robots.txt` file at *url*."
45-
msgstr ""
49+
msgstr "这个类提供了一些可以读取、解析和回答关于 *url* 上的 :file:`robots.txt` 文件的问题的方法。"
4650

4751
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/urllib.robotparser.rst:33
4852
msgid "Sets the URL referring to a :file:`robots.txt` file."
49-
msgstr ""
53+
msgstr "设置指向 :file:`robots.txt` 文件的 URL。"
5054

5155
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/urllib.robotparser.rst:37
5256
msgid "Reads the :file:`robots.txt` URL and feeds it to the parser."
53-
msgstr ""
57+
msgstr "读取 :file:`robots.txt` URL 并将其输入解析器。"
5458

5559
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/urllib.robotparser.rst:41
5660
msgid "Parses the lines argument."
57-
msgstr ""
61+
msgstr "解析行参数。"
5862

5963
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/urllib.robotparser.rst:45
6064
msgid ""
6165
"Returns ``True`` if the *useragent* is allowed to fetch the *url* according "
6266
"to the rules contained in the parsed :file:`robots.txt` file."
6367
msgstr ""
68+
"如果允许 *useragent* 按照被解析 :file:`robots.txt` 文件中的规则来获取 *url* 则返回 ``True``。"
6469

6570
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/urllib.robotparser.rst:51
6671
msgid ""
6772
"Returns the time the ``robots.txt`` file was last fetched. This is useful "
6873
"for long-running web spiders that need to check for new ``robots.txt`` files"
6974
" periodically."
7075
msgstr ""
76+
"返回最近一次获取 ``robots.txt`` 文件的时间。 这适用于需要定期检查 ``robots.txt`` 文件更新情况的长时间运行的网页爬虫。"
7177

7278
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/urllib.robotparser.rst:57
7379
msgid ""
7480
"Sets the time the ``robots.txt`` file was last fetched to the current time."
75-
msgstr ""
81+
msgstr "将最近一次获取 ``robots.txt`` 文件的时间设置为当前时间。"
7682

7783
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/urllib.robotparser.rst:62
7884
msgid ""
@@ -81,6 +87,8 @@ msgid ""
8187
"apply to the *useragent* specified or the ``robots.txt`` entry for this "
8288
"parameter has invalid syntax, return ``None``."
8389
msgstr ""
90+
"为指定的 *useragent* 从 ``robots.txt`` 返回 ``Crawl-delay`` 形参。 如果此形参不存在或不适用于指定的 "
91+
"*useragent* 或者此形参的 ``robots.txt`` 条目存在语法错误,则返回 ``None``。"
8492

8593
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/urllib.robotparser.rst:71
8694
msgid ""
@@ -89,16 +97,21 @@ msgid ""
8997
"such parameter or it doesn't apply to the *useragent* specified or the "
9098
"``robots.txt`` entry for this parameter has invalid syntax, return ``None``."
9199
msgstr ""
100+
"以 :term:`named tuple` ``RequestRate(requests, seconds)`` 的形式从 ``robots.txt``"
101+
" 返回 ``Request-rate`` 形参的内容。 如果此形参不存在或不适用于指定的 *useragent* 或者此形参的 "
102+
"``robots.txt`` 条目存在语法错误,则返回 ``None``。"
92103

93104
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/urllib.robotparser.rst:81
94105
msgid ""
95106
"Returns the contents of the ``Sitemap`` parameter from ``robots.txt`` in the"
96107
" form of a :func:`list`. If there is no such parameter or the ``robots.txt``"
97108
" entry for this parameter has invalid syntax, return ``None``."
98109
msgstr ""
110+
"以 :func:`list` 的形式从 ``robots.txt`` 返回 ``Sitemap`` 形参的内容。 如果此形参不存在或者此形参的 "
111+
"``robots.txt`` 条目存在语法错误,则返回 ``None``。"
99112

100113
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/urllib.robotparser.rst:89
101114
msgid ""
102115
"The following example demonstrates basic use of the :class:`RobotFileParser`"
103116
" class::"
104-
msgstr ""
117+
msgstr "下面的例子演示了 :class:`RobotFileParser` 类的基本用法::"

0 commit comments

Comments
 (0)