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

Skip to content

Commit 4fcf987

Browse files
[po] auto sync
1 parent 4e3d83f commit 4fcf987

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

library/json.po

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,37 +359,41 @@ msgid ""
359359
"kwarg; otherwise :class:`JSONDecoder` is used. Additional keyword arguments"
360360
" will be passed to the constructor of the class."
361361
msgstr ""
362+
"要使用自定义的 :class:`JSONDecoder` 子类,用 ``cls`` 指定他;否则使用 :class:`JSONDecoder` "
363+
"。额外的关键词参数会通过类的构造函数传递。"
362364

363365
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/json.rst:270
364366
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/json.rst:289
365367
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/json.rst:368
366368
msgid ""
367369
"If the data being deserialized is not a valid JSON document, a "
368370
":exc:`JSONDecodeError` will be raised."
369-
msgstr ""
371+
msgstr "如果反序列化的数据不是有效 JSON 文档,抛出 :exc:`JSONDecodeError` 错误。"
370372

371373
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/json.rst:276
372374
msgid ""
373375
"*fp* can now be a :term:`binary file`. The input encoding should be UTF-8, "
374376
"UTF-16 or UTF-32."
375-
msgstr ""
377+
msgstr "*fp* 现在可以是 :term:`binary file` 。输入编码应当是 UTF-8 , UTF-16 或者 UTF-32 。"
376378

377379
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/json.rst:282
378380
msgid ""
379381
"Deserialize *s* (a :class:`str`, :class:`bytes` or :class:`bytearray` "
380382
"instance containing a JSON document) to a Python object using this "
381383
":ref:`conversion table <json-to-py-table>`."
382384
msgstr ""
385+
"使用这个 :ref:`conversion table <json-to-py-table>` 表来反序列化 *s* ( :class:`str` , "
386+
":class:`bytes` 或者 :class:`bytearray` 实例包含 JSON 文档)为 Python 对象。"
383387

384388
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/json.rst:286
385389
msgid ""
386390
"The other arguments have the same meaning as in :func:`load`, except "
387391
"*encoding* which is ignored and deprecated since Python 3.1."
388-
msgstr ""
392+
msgstr "除了*encoding*被忽略和弃用自 Python 3.1 以来,其他参数的含义与 :func:`load` 中相同。"
389393

390394
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/json.rst:294
391395
msgid "*encoding* keyword argument."
392-
msgstr ""
396+
msgstr "*encoding* 关键字参数。"
393397

394398
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/json.rst:295
395399
msgid ""
@@ -509,6 +513,8 @@ msgid ""
509513
":class:`dict`. This can be used to provide custom deserializations (e.g. to"
510514
" support JSON-RPC class hinting)."
511515
msgstr ""
516+
"*object_hook* ,如果指定,会被每个解码的 JSON 对象的结果调用,并且返回值会替代给定 :class:`dict` "
517+
"。它可被用于提供自定义反序列化(比如去支持 JSON-RPC 类的暗示)。"
512518

513519
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/json.rst:339
514520
msgid ""

library/marshal.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ msgstr ""
8080

8181
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/marshal.rst:54
8282
msgid "The module defines these functions:"
83-
msgstr ""
83+
msgstr "这个模块定义了以下函数:"
8484

8585
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/marshal.rst:59
8686
msgid ""
@@ -139,7 +139,7 @@ msgstr ""
139139

140140
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/marshal.rst:100
141141
msgid "In addition, the following constants are defined:"
142-
msgstr ""
142+
msgstr "此外,还定义了以下常量:"
143143

144144
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/marshal.rst:104
145145
msgid ""

0 commit comments

Comments
 (0)