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

Skip to content

Commit 0d6cf40

Browse files
[po] auto sync
1 parent a67062c commit 0d6cf40

14 files changed

Lines changed: 1659 additions & 1733 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "92.64%", "updated_at": "2023-11-30T23:55:47Z"}
1+
{"translation": "92.56%", "updated_at": "2023-12-01T14:56:09Z"}

c-api/set.po

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.12\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2023-10-20 14:13+0000\n"
15+
"POT-Creation-Date: 2023-12-01 14:14+0000\n"
1616
"PO-Revision-Date: 2021-06-28 00:50+0000\n"
1717
"Last-Translator: Freesand Leo <[email protected]>, 2023\n"
1818
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -203,14 +203,11 @@ msgid ""
203203
"Return ``1`` if found and removed, ``0`` if not found (no action taken), and"
204204
" ``-1`` if an error is encountered. Does not raise :exc:`KeyError` for "
205205
"missing keys. Raise a :exc:`TypeError` if the *key* is unhashable. Unlike "
206-
"the Python :meth:`~set.discard` method, this function does not automatically"
207-
" convert unhashable sets into temporary frozensets. Raise :exc:`SystemError`"
208-
" if *set* is not an instance of :class:`set` or its subtype."
206+
"the Python :meth:`~frozenset.discard` method, this function does not "
207+
"automatically convert unhashable sets into temporary frozensets. Raise "
208+
":exc:`SystemError` if *set* is not an instance of :class:`set` or its "
209+
"subtype."
209210
msgstr ""
210-
"如果找到并已删除则返回 ``1``,如果未找到(无操作)则返回 ``0`` ,如果遇到错误则返回 ``-1``。 对于不存在的键不会引发 "
211-
":exc:`KeyError`。 如果 *key* 为不可哈希对象则引发 :exc:`TypeError`。 与 Python "
212-
":meth:`~set.discard` 方法不同,该函数不会自动将不可哈希的集合转换为临时的冻结集合。 如果 *set* 不是 "
213-
":class:`set` 或其子类型的实例则会引发 :exc:`SystemError`。"
214211

215212
#: ../../c-api/set.rst:158
216213
msgid ""

extending/newtypes.po

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ msgid ""
1818
msgstr ""
1919
"Project-Id-Version: Python 3.12\n"
2020
"Report-Msgid-Bugs-To: \n"
21-
"POT-Creation-Date: 2023-08-25 22:29+0000\n"
21+
"POT-Creation-Date: 2023-12-01 14:14+0000\n"
2222
"PO-Revision-Date: 2021-06-28 00:52+0000\n"
2323
"Last-Translator: Freesand Leo <[email protected]>, 2023\n"
2424
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -361,11 +361,8 @@ msgid ""
361361
"defined this way can have an associated doc string simply by providing the "
362362
"text in the table. An application can use the introspection API to retrieve"
363363
" the descriptor from the class object, and get the doc string using its "
364-
":attr:`__doc__` attribute."
364+
":attr:`!__doc__` attribute."
365365
msgstr ""
366-
"使用 :c:member:`~PyTypeObject.tp_members` "
367-
"表来构建用于运行时的描述器还有一个有趣的优点是任何以这种方式定义的属性都可以简单地通过在表中提供文本来设置一个相关联的文档字符串。 "
368-
"一个应用程序可以使用自省 API 从类对象获取描述器,并使用其 :attr:`__doc__` 属性来获取文档字符串。"
369366

370367
#: ../../extending/newtypes.rst:301
371368
msgid ""
@@ -507,14 +504,11 @@ msgstr "如果你选择提供此函数,则它应当为你的数据类型的实
507504

508505
#: ../../extending/newtypes.rst:451
509506
msgid ""
510-
":c:type:`Py_hash_t` is a signed integer type with a platform-varying width. "
511-
"Returning ``-1`` from :c:member:`~PyTypeObject.tp_hash` indicates an error, "
512-
"which is why you should be careful to avoid returning it when hash "
507+
":c:type:`!Py_hash_t` is a signed integer type with a platform-varying width."
508+
" Returning ``-1`` from :c:member:`~PyTypeObject.tp_hash` indicates an error,"
509+
" which is why you should be careful to avoid returning it when hash "
513510
"computation is successful, as seen above."
514511
msgstr ""
515-
":c:type:`Py_hash_t` 是一个在宽度取决于具体平台的有符号整数类型。 从 "
516-
":c:member:`~PyTypeObject.tp_hash` 返回 ``-1`` "
517-
"表示发生了错误,这就是为什么你应当注意避免在哈希运算成功时返回它,如上面所演示的。"
518512

519513
#: ../../extending/newtypes.rst:460
520514
msgid ""

library/doctest.po

Lines changed: 218 additions & 247 deletions
Large diffs are not rendered by default.

library/functions.po

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ msgid ""
2929
msgstr ""
3030
"Project-Id-Version: Python 3.12\n"
3131
"Report-Msgid-Bugs-To: \n"
32-
"POT-Creation-Date: 2023-11-17 14:14+0000\n"
32+
"POT-Creation-Date: 2023-12-01 14:14+0000\n"
3333
"PO-Revision-Date: 2021-06-28 01:06+0000\n"
3434
"Last-Translator: LeeWendao <[email protected]>, 2023\n"
3535
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -2019,19 +2019,15 @@ msgstr "Python不依赖于底层操作系统的文本文件概念;所有处理
20192019
msgid ""
20202020
"*buffering* is an optional integer used to set the buffering policy. Pass 0"
20212021
" to switch buffering off (only allowed in binary mode), 1 to select line "
2022-
"buffering (only usable in text mode), and an integer > 1 to indicate the "
2023-
"size in bytes of a fixed-size chunk buffer. Note that specifying a buffer "
2024-
"size this way applies for binary buffered I/O, but ``TextIOWrapper`` (i.e., "
2025-
"files opened with ``mode='r+'``) would have another buffering. To disable "
2026-
"buffering in ``TextIOWrapper``, consider using the ``write_through`` flag "
2027-
"for :func:`io.TextIOWrapper.reconfigure`. When no *buffering* argument is "
2028-
"given, the default buffering policy works as follows:"
2029-
msgstr ""
2030-
"*buffering* 是一个可选的整数,用于设置缓冲策略。 传入 0 来关闭缓冲(只允许在二进制模式下),传入 1 "
2031-
"来选择行缓冲(只在文本模式下可用),传入一个整数 > 1 来表示固定大小的块缓冲区的字节大小。注意,这样指定缓冲区的大小适用于二进制缓冲的 I/O ,但"
2032-
" ``TextIOWrapper`` (即用 ``mode='r+'`` 打开的文件)会有另一种缓冲。要禁用在 ``TextIOWrapper`` "
2033-
"缓冲,考虑使用 :func:`io.TextIOWrapper.reconfigure` 的 ``write_through`` 标志来。当没有给出 "
2034-
"*buffering* 参数时,默认的缓冲策略工作如下。"
2022+
"buffering (only usable when writing in text mode), and an integer > 1 to "
2023+
"indicate the size in bytes of a fixed-size chunk buffer. Note that "
2024+
"specifying a buffer size this way applies for binary buffered I/O, but "
2025+
"``TextIOWrapper`` (i.e., files opened with ``mode='r+'``) would have another"
2026+
" buffering. To disable buffering in ``TextIOWrapper``, consider using the "
2027+
"``write_through`` flag for :func:`io.TextIOWrapper.reconfigure`. When no "
2028+
"*buffering* argument is given, the default buffering policy works as "
2029+
"follows:"
2030+
msgstr ""
20352031

20362032
#: ../../library/functions.rst:1232
20372033
msgid ""

library/gzip.po

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ msgid ""
1515
msgstr ""
1616
"Project-Id-Version: Python 3.12\n"
1717
"Report-Msgid-Bugs-To: \n"
18-
"POT-Creation-Date: 2023-08-04 14:13+0000\n"
18+
"POT-Creation-Date: 2023-12-01 14:14+0000\n"
1919
"PO-Revision-Date: 2021-06-28 01:07+0000\n"
2020
"Last-Translator: Freesand Leo <[email protected]>, 2023\n"
2121
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -217,16 +217,12 @@ msgstr ""
217217

218218
#: ../../library/gzip.rst:108
219219
msgid ""
220-
"Calling a :class:`GzipFile` object's :meth:`close` method does not close "
220+
"Calling a :class:`GzipFile` object's :meth:`!close` method does not close "
221221
"*fileobj*, since you might wish to append more material after the compressed"
222222
" data. This also allows you to pass an :class:`io.BytesIO` object opened "
223223
"for writing as *fileobj*, and retrieve the resulting memory buffer using the"
224224
" :class:`io.BytesIO` object's :meth:`~io.BytesIO.getvalue` method."
225225
msgstr ""
226-
"调用 :class:`GzipFile` 的 :meth:`close` 方法不会关闭 "
227-
"*fileobj*,因为你可以希望增加其它内容到已经压缩的数中。你可以将一个 :class:`io.BytesIO` 对象作为 "
228-
"*fileobj*,也可以使用 :class:`io.BytesIO` 的 :meth:`~io.BytesIO.getvalue` "
229-
"方法从内存缓存中恢复数据。"
230226

231227
#: ../../library/gzip.rst:114
232228
msgid ""
@@ -397,46 +393,46 @@ msgid ""
397393
" format."
398394
msgstr "支持 :program:`gzip` 格式所需要的基本压缩模块。"
399395

400-
#: ../../library/gzip.rst:254
396+
#: ../../library/gzip.rst:256
401397
msgid "Command Line Interface"
402398
msgstr "命令行界面"
403399

404-
#: ../../library/gzip.rst:256
400+
#: ../../library/gzip.rst:258
405401
msgid ""
406402
"The :mod:`gzip` module provides a simple command line interface to compress "
407403
"or decompress files."
408404
msgstr ":mod:`gzip` 模块提供了简单的命令行界面用于压缩和解压缩文件。"
409405

410-
#: ../../library/gzip.rst:259
406+
#: ../../library/gzip.rst:261
411407
msgid "Once executed the :mod:`gzip` module keeps the input file(s)."
412408
msgstr "在执行后 :mod:`gzip` 模块会保留输入文件。"
413409

414-
#: ../../library/gzip.rst:263
410+
#: ../../library/gzip.rst:265
415411
msgid ""
416412
"Add a new command line interface with a usage. By default, when you will "
417413
"execute the CLI, the default compression level is 6."
418414
msgstr "添加一个带有用法说明的新命令行界面命令。 默认情况下,当你要执行 CLI 时,默认压缩等级为 6。"
419415

420-
#: ../../library/gzip.rst:267
416+
#: ../../library/gzip.rst:269
421417
msgid "Command line options"
422418
msgstr "命令行选项"
423419

424-
#: ../../library/gzip.rst:271
420+
#: ../../library/gzip.rst:273
425421
msgid "If *file* is not specified, read from :data:`sys.stdin`."
426422
msgstr "如果未指定 *file*,则从 :data:`sys.stdin` 读取。"
427423

428-
#: ../../library/gzip.rst:275
424+
#: ../../library/gzip.rst:277
429425
msgid "Indicates the fastest compression method (less compression)."
430426
msgstr "指明最快速的压缩方法(较低压缩率)。"
431427

432-
#: ../../library/gzip.rst:279
428+
#: ../../library/gzip.rst:281
433429
msgid "Indicates the slowest compression method (best compression)."
434430
msgstr "指明最慢速的压缩方法(最高压缩率)。"
435431

436-
#: ../../library/gzip.rst:283
432+
#: ../../library/gzip.rst:285
437433
msgid "Decompress the given file."
438434
msgstr "解压缩给定的文件。"
439435

440-
#: ../../library/gzip.rst:287
436+
#: ../../library/gzip.rst:289
441437
msgid "Show the help message."
442438
msgstr "显示帮助消息。"

library/importlib.resources.po

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ msgid ""
1313
msgstr ""
1414
"Project-Id-Version: Python 3.12\n"
1515
"Report-Msgid-Bugs-To: \n"
16-
"POT-Creation-Date: 2023-09-08 14:13+0000\n"
16+
"POT-Creation-Date: 2023-12-01 14:14+0000\n"
1717
"PO-Revision-Date: 2022-11-05 19:49+0000\n"
1818
"Last-Translator: Freesand Leo <[email protected]>, 2023\n"
1919
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -127,25 +127,21 @@ msgstr ""
127127

128128
#: ../../library/importlib.resources.rst:66
129129
msgid ""
130-
"*anchor* is an optional :data:`Anchor`. If the anchor is a package, "
130+
"*anchor* is an optional :class:`Anchor`. If the anchor is a package, "
131131
"resources are resolved from that package. If a module, resources are "
132132
"resolved adjacent to that module (in the same package or the package root). "
133133
"If the anchor is omitted, the caller's module is used."
134134
msgstr ""
135-
"*anchor* 是一个可选的 :data:`Anchor`。 如果 anchor 是一个包,则会从这个包获取资源。 "
136-
"如果是一个模块,则会从这个模块的相邻位置获取资源(在同一个包或包的根目录中)。 如果省略了 anchor,则会使用调用方的模块。"
137135

138136
#: ../../library/importlib.resources.rst:74
139137
msgid ""
140-
"\"package\" parameter was renamed to \"anchor\". \"anchor\" can now be a "
141-
"non-package module and if omitted will default to the caller's module. "
142-
"\"package\" is still accepted for compatibility but will raise a "
143-
"DeprecationWarning. Consider passing the anchor positionally or using "
144-
"``importlib_resources >= 5.10`` for a compatible interface on older Pythons."
138+
"*package* parameter was renamed to *anchor*. *anchor* can now be a non-"
139+
"package module and if omitted will default to the caller's module. *package*"
140+
" is still accepted for compatibility but will raise a "
141+
":exc:`DeprecationWarning`. Consider passing the anchor positionally or using"
142+
" ``importlib_resources >= 5.10`` for a compatible interface on older "
143+
"Pythons."
145144
msgstr ""
146-
"\"package\" 形参被重命名为 \"anchor\"\"anchor\" 现在可以是一个不为包的模块,如果被省略则默认为调用方的模块。 "
147-
"为保持兼容性 \"package\" 仍然被接受但会引发 DeprecationWarning。 请考虑以位置参数方式传入 anchor 或使用 "
148-
"``importlib_resources >= 5.10`` 作为针对旧版 Python 的兼容接口。"
149145

150146
#: ../../library/importlib.resources.rst:84
151147
msgid ""
@@ -172,8 +168,8 @@ msgstr ""
172168
"当 Traversable 的方法(如 ``read_text`` 等)不足以满足需要而需要文件系统中的真实文件或目录时请使用 ``as_file``。"
173169

174170
#: ../../library/importlib.resources.rst:98
175-
msgid "Added support for ``traversable`` representing a directory."
176-
msgstr "增加了对代表目录的 ``traversable`` 的支持。"
171+
msgid "Added support for *traversable* representing a directory."
172+
msgstr ""
177173

178174
#: ../../library/importlib.resources.rst:103
179175
msgid "Deprecated functions"

0 commit comments

Comments
 (0)