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

Skip to content

Commit 94811b7

Browse files
[po] auto sync
1 parent 76eb7c2 commit 94811b7

3 files changed

Lines changed: 41 additions & 10 deletions

File tree

c-api/arg.po

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ msgid ""
228228
"``z#`` (:class:`str`, read-only :term:`bytes-like object` or ``None``) "
229229
"[const char \\*, int or :c:type:`Py_ssize_t`]"
230230
msgstr ""
231+
"``z#`` (:class:`str`, 只读 :term:`bytes-like object` 或 ``None``) [const char "
232+
"\\*, int 或 :c:type:`Py_ssize_t`]"
231233

232234
#: ../../c-api/arg.rst:109
233235
msgid ""
@@ -270,6 +272,8 @@ msgid ""
270272
"``y#`` (read-only :term:`bytes-like object`) [const char \\*, int or "
271273
":c:type:`Py_ssize_t`]"
272274
msgstr ""
275+
"``y#`` (只读 :term:`bytes-like object`) [const char \\*, int 或 "
276+
":c:type:`Py_ssize_t`]"
273277

274278
#: ../../c-api/arg.rst:128
275279
msgid ""
@@ -335,6 +339,7 @@ msgstr ""
335339
msgid ""
336340
"``u#`` (:class:`str`) [const Py_UNICODE \\*, int or :c:type:`Py_ssize_t`]"
337341
msgstr ""
342+
"``u#`` (:class:`str`) [const Py_UNICODE \\*, int 或 :c:type:`Py_ssize_t`]"
338343

339344
#: ../../c-api/arg.rst:159
340345
msgid ""
@@ -360,6 +365,8 @@ msgid ""
360365
"``Z#`` (:class:`str` or ``None``) [const Py_UNICODE \\*, int or "
361366
":c:type:`Py_ssize_t`]"
362367
msgstr ""
368+
"``Z#`` (:class:`str` 或 ``None``) [const Py_UNICODE \\*, int 或 "
369+
":c:type:`Py_ssize_t`]"
363370

364371
#: ../../c-api/arg.rst:176
365372
msgid ""
@@ -451,6 +458,8 @@ msgid ""
451458
"``es#`` (:class:`str`) [const char \\*encoding, char \\*\\*buffer, int or "
452459
":c:type:`Py_ssize_t` \\*buffer_length]"
453460
msgstr ""
461+
"``es#`` (:class:`str`) [const char \\*encoding, char \\*\\*buffer, int 或 "
462+
":c:type:`Py_ssize_t` \\*buffer_length]"
454463

455464
#: ../../c-api/arg.rst:217
456465
msgid ""
@@ -515,6 +524,8 @@ msgid ""
515524
"\\*encoding, char \\*\\*buffer, int or :c:type:`Py_ssize_t` "
516525
"\\*buffer_length]"
517526
msgstr ""
527+
"``et#`` (:class:`str`, :class:`bytes` 或 :class:`bytearray`) [const char "
528+
"\\*encoding, char \\*\\*buffer, int 或 :c:type:`Py_ssize_t` \\*buffer_length]"
518529

519530
#: ../../c-api/arg.rst:248
520531
msgid ""
@@ -1063,6 +1074,8 @@ msgid ""
10631074
"``s#`` (:class:`str` or ``None``) [const char \\*, int or "
10641075
":c:type:`Py_ssize_t`]"
10651076
msgstr ""
1077+
"``s#`` (:class:`str` 或 ``None``) [const char \\*, int 或 "
1078+
":c:type:`Py_ssize_t`]"
10661079

10671080
#: ../../c-api/arg.rst:553
10681081
msgid ""
@@ -1086,7 +1099,7 @@ msgstr ""
10861099

10871100
#: ../../c-api/arg.rst:563
10881101
msgid "``y#`` (:class:`bytes`) [const char \\*, int or :c:type:`Py_ssize_t`]"
1089-
msgstr ""
1102+
msgstr "``y#`` (:class:`bytes`) [const char \\*, int 或 :c:type:`Py_ssize_t`]"
10901103

10911104
#: ../../c-api/arg.rst:562
10921105
msgid ""
@@ -1103,6 +1116,8 @@ msgid ""
11031116
"``z#`` (:class:`str` or ``None``) [const char \\*, int or "
11041117
":c:type:`Py_ssize_t`]"
11051118
msgstr ""
1119+
"``z#`` (:class:`str` 或 ``None``) [const char \\*, int 或 "
1120+
":c:type:`Py_ssize_t`]"
11061121

11071122
#: ../../c-api/arg.rst:569 ../../c-api/arg.rst:585
11081123
msgid "Same as ``s#``."
@@ -1123,7 +1138,7 @@ msgstr ""
11231138

11241139
#: ../../c-api/arg.rst:579
11251140
msgid "``u#`` (:class:`str`) [const wchar_t \\*, int or :c:type:`Py_ssize_t`]"
1126-
msgstr ""
1141+
msgstr "``u#`` (:class:`str`) [const wchar_t \\*, int 或 :c:type:`Py_ssize_t`]"
11271142

11281143
#: ../../c-api/arg.rst:577
11291144
msgid ""
@@ -1143,6 +1158,8 @@ msgid ""
11431158
"``U#`` (:class:`str` or ``None``) [const char \\*, int or "
11441159
":c:type:`Py_ssize_t`]"
11451160
msgstr ""
1161+
"``U#`` (:class:`str` 或 ``None``) [const char \\*, int 或 "
1162+
":c:type:`Py_ssize_t`]"
11461163

11471164
#: ../../c-api/arg.rst:588
11481165
msgid "Convert a plain C :c:type:`int` to a Python integer object."

c-api/mapping.po

Lines changed: 7 additions & 2 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-02-09 12:40+0000\n"
1516
"PO-Revision-Date: 2017-02-16 17:37+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"
@@ -40,19 +41,23 @@ msgid ""
4041
":meth:`__getitem__` method since in general case it is impossible to "
4142
"determine what type of keys it supports. This function always succeeds."
4243
msgstr ""
44+
"如果对象提供映射协议或支持切片则返回 ``1``,否则返回 ``0``。 请注意它将为具有 :meth:`__getitem__` 方法的 Python"
45+
" 类返回 ``1``,因为在一般情况下无法确定它所支持的键类型。 此函数总是会成功执行。"
4346

4447
#: ../../c-api/mapping.rst:25
4548
msgid ""
4649
"Returns the number of keys in object *o* on success, and ``-1`` on failure. "
4750
"This is equivalent to the Python expression ``len(o)``."
48-
msgstr ""
51+
msgstr "成功时返回对象 *o* 中键的数量,失败时返回 ``-1``。 这相当于 Python 表达式 ``len(o)``。"
4952

5053
#: ../../c-api/mapping.rst:31
5154
msgid ""
5255
"Return element of *o* corresponding to the string *key* or ``NULL`` on "
5356
"failure. This is the equivalent of the Python expression ``o[key]``. See "
5457
"also :c:func:`PyObject_GetItem`."
5558
msgstr ""
59+
"返回 *o* 中对应于字符串 *key* 的元素,或者失败时返回 ``NULL``。 这相当于 Python 表达式 ``o[key]``。 另请参见 "
60+
"also :c:func:`PyObject_GetItem`。"
5661

5762
#: ../../c-api/mapping.rst:38
5863
msgid ""

library/configparser.po

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,14 @@ msgid ""
3939
"found in Microsoft Windows INI files. You can use this to write Python "
4040
"programs which can be customized by end users easily."
4141
msgstr ""
42+
"此模块提供了它实现一种基本配置语言 :class:`ConfigParser` 类,这种语言所提供的结构与 Microsoft Windows INI "
43+
"文件的类似。 你可以使用这种语言来编写能够由最终用户来自定义的 Python 程序。"
4244

4345
#: ../../library/configparser.rst:31
4446
msgid ""
4547
"This library does *not* interpret or write the value-type prefixes used in "
4648
"the Windows Registry extended version of INI syntax."
47-
msgstr ""
49+
msgstr "这个库 *并不* 能够解析或写入在 Windows Registry 扩展版本 INI 语法中所使用的值-类型前缀。"
4850

4951
#: ../../library/configparser.rst:38
5052
msgid "Module :mod:`shlex`"
@@ -54,7 +56,7 @@ msgstr "模块 :mod:`shlex`"
5456
msgid ""
5557
"Support for creating Unix shell-like mini-languages which can be used as an "
5658
"alternate format for application configuration files."
57-
msgstr ""
59+
msgstr "支持创建可被用作应用配置文件的替代的 Unix 终端式微语言。"
5860

5961
#: ../../library/configparser.rst:41
6062
msgid "Module :mod:`json`"
@@ -64,15 +66,15 @@ msgstr "模块 :mod:`json`"
6466
msgid ""
6567
"The json module implements a subset of JavaScript syntax which can also be "
6668
"used for this purpose."
67-
msgstr ""
69+
msgstr "json 模块实现了一个 JavaScript 语法的子集,它也可被用于这种目的。"
6870

6971
#: ../../library/configparser.rst:51
7072
msgid "Quick Start"
71-
msgstr ""
73+
msgstr "快速起步"
7274

7375
#: ../../library/configparser.rst:53
7476
msgid "Let's take a very basic configuration file that looks like this:"
75-
msgstr ""
77+
msgstr "让我们准备一个非常基本的配置文件,它看起来是这样的:"
7678

7779
#: ../../library/configparser.rst:70
7880
msgid ""
@@ -82,19 +84,24 @@ msgid ""
8284
"classes can read and write such files. Let's start by creating the above "
8385
"configuration file programmatically."
8486
msgstr ""
87+
"INI 文件的结构描述见 `以下章节 <#supported-ini-file-structure>`_。 "
88+
"总的来说,这种文件由多个节组成,每个节包含多个带有值的键。 :mod:`configparser` 类可以读取和写入这种文件。 "
89+
"让我们先通过程序方式来创建上述的配置文件。"
8590

8691
#: ../../library/configparser.rst:94
8792
msgid ""
8893
"As you can see, we can treat a config parser much like a dictionary. There "
8994
"are differences, `outlined later <#mapping-protocol-access>`_, but the "
9095
"behavior is very close to what you would expect from a dictionary."
9196
msgstr ""
97+
"如你所见,我们可以把配置解析器当作一个字典来处理。 两者确实存在差异,`将在后文说明 <#mapping-protocol-"
98+
"access>`_,但是其行为非常接近于字典所具有一般行为。"
9299

93100
#: ../../library/configparser.rst:98
94101
msgid ""
95102
"Now that we have created and saved a configuration file, let's read it back "
96103
"and explore the data it holds."
97-
msgstr ""
104+
msgstr "现在我们已经创建并保存了一个配置文件,让我们再将它读取出来并探究其中包含的数据。"
98105

99106
#: ../../library/configparser.rst:133
100107
msgid ""
@@ -103,6 +110,8 @@ msgid ""
103110
" other sections [1]_. Note also that keys in sections are case-insensitive "
104111
"and stored in lowercase [1]_."
105112
msgstr ""
113+
"正如我们在上面所看到的,相关的 API 相当直观。 唯一有些神奇的地方是 ``DEFAULT`` 小节,它为所有其他小节提供了默认值 [1]_。 "
114+
"还要注意小节中的键大小写不敏感并且会存储为小写形式 [1]_。"
106115

107116
#: ../../library/configparser.rst:140
108117
msgid "Supported Datatypes"

0 commit comments

Comments
 (0)