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

Skip to content

Commit e4f295a

Browse files
[po] auto sync
1 parent 70b2d36 commit e4f295a

9 files changed

Lines changed: 230 additions & 200 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "92.60%", "updated_at": "2023-12-29T14:55:38Z"}
1+
{"translation": "92.62%", "updated_at": "2023-12-29T23:56:02Z"}

c-api/bytes.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ msgstr "类似于 :c:func:`PyBytes_AsString`,但是不带错误检测。"
297297
msgid ""
298298
"Return the null-terminated contents of the object *obj* through the output "
299299
"variables *buffer* and *length*. Returns ``0`` on success."
300-
msgstr ""
300+
msgstr "通过输出变量 *buffer* 和 *length* 返回对象 *obj* 以空值作为结束的内容。 成功时返回 ``0``。"
301301

302302
#: ../../c-api/bytes.rst:160
303303
msgid ""

library/calendar.po

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ msgstr ""
267267
msgid ""
268268
"Return a month name as an HTML table row. If *withyear* is true the year "
269269
"will be included in the row, otherwise just the month name will be used."
270-
msgstr ""
270+
msgstr "将一个月份名称以 HTML 表格行的形式返回。 如果 *withyear* 为真值则年份将被包括在行中,否则将只使用月份名称。"
271271

272272
#: ../../library/calendar.rst:206
273273
msgid ""
@@ -354,6 +354,8 @@ msgid ""
354354
" *locale*. Because the current locale is a process-wide setting, they are "
355355
"not thread-safe."
356356
msgstr ""
357+
"这两个类的构造器、:meth:`!formatweekday` 和 :meth:`!formatmonthname` 方法会临时将 "
358+
"``LC_TIME`` 语言区域更改为给定的 *locale*。 因为当前语言区域是进程级的设置,所以它们不是线程安全的。"
357359

358360
#: ../../library/calendar.rst:305
359361
msgid ""
@@ -429,6 +431,8 @@ msgid ""
429431
"Returns a month's calendar in a multi-line string using the "
430432
":meth:`~TextCalendar.formatmonth` of the :class:`TextCalendar` class."
431433
msgstr ""
434+
"使用 :class:`TextCalendar` 类的 :meth:`~TextCalendar.formatmonth` "
435+
"返回多行字符串形式的月份日历。"
432436

433437
#: ../../library/calendar.rst:374
434438
msgid ""
@@ -440,6 +444,7 @@ msgid ""
440444
"Returns a 3-column calendar for an entire year as a multi-line string using "
441445
"the :meth:`~TextCalendar.formatyear` of the :class:`TextCalendar` class."
442446
msgstr ""
447+
"使用 :class:`TextCalendar` 类的 :meth:`~TextCalendar.formatyear` 返回一个整年的 3 列日历。"
443448

444449
#: ../../library/calendar.rst:385
445450
msgid ""

library/cmd.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ msgid ""
127127
"another special case, a line beginning with the character ``'!'`` is "
128128
"dispatched to the method :meth:`!do_shell` (if such a method is defined)."
129129
msgstr ""
130+
"当且仅当命令名称 ``foo`` 具有 :meth:`!do_foo` 方法时解释器实例才会识别它。 存在一种特殊情况,以字符 ``'?'`` "
131+
"开头的行将被分派给 :meth:`do_help` 方法。 还存在另一种特殊情况,以字符 ``'!'`` 开头的行将被分派给 "
132+
":meth:`!do_shell` 方法(如果定义了该方法的话)。"
130133

131134
#: ../../library/cmd.rst:74
132135
msgid ""

library/dbm.po

Lines changed: 46 additions & 36 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-07-28 14:13+0000\n"
18+
"POT-Creation-Date: 2023-12-29 14:13+0000\n"
1919
"PO-Revision-Date: 2021-06-28 01:04+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"
@@ -74,7 +74,7 @@ msgstr ""
7474
"(``''``);或是包含所需模块名称的字符串,例如 ``'dbm.ndbm'`` 或 ``'dbm.gnu'``。"
7575

7676
#: ../../library/dbm.rst:36 ../../library/dbm.rst:210
77-
#: ../../library/dbm.rst:309 ../../library/dbm.rst:393
77+
#: ../../library/dbm.rst:316 ../../library/dbm.rst:400
7878
msgid "Accepts :term:`path-like object` for filename."
7979
msgstr "接受 :term:`path-like object` 作为文件名。"
8080

@@ -91,64 +91,64 @@ msgstr ""
9191
"如果数据库文件已存在,则使用 :func:`whichdb` 函数来确定其类型和要使用的适当模块;如果文件不存在,则会使用上述可导入模块中的第一个。"
9292

9393
#: ../../library/dbm.rst:47 ../../library/dbm.rst:166
94-
#: ../../library/dbm.rst:357
94+
#: ../../library/dbm.rst:364
9595
msgid "The optional *flag* argument can be:"
9696
msgstr "可选的 *flag* 参数可以是:"
9797

9898
#: ../../library/dbm.rst:50 ../../library/dbm.rst:169
99-
#: ../../library/dbm.rst:188 ../../library/dbm.rst:287
100-
#: ../../library/dbm.rst:360
99+
#: ../../library/dbm.rst:188 ../../library/dbm.rst:294
100+
#: ../../library/dbm.rst:367
101101
msgid "Value"
102102
msgstr "值"
103103

104104
#: ../../library/dbm.rst:50 ../../library/dbm.rst:169
105-
#: ../../library/dbm.rst:188 ../../library/dbm.rst:287
106-
#: ../../library/dbm.rst:360
105+
#: ../../library/dbm.rst:188 ../../library/dbm.rst:294
106+
#: ../../library/dbm.rst:367
107107
msgid "Meaning"
108108
msgstr "含意"
109109

110110
#: ../../library/dbm.rst:52 ../../library/dbm.rst:171
111-
#: ../../library/dbm.rst:289 ../../library/dbm.rst:362
111+
#: ../../library/dbm.rst:296 ../../library/dbm.rst:369
112112
msgid "``'r'``"
113113
msgstr "``'r'``"
114114

115115
#: ../../library/dbm.rst:52 ../../library/dbm.rst:171
116-
#: ../../library/dbm.rst:289 ../../library/dbm.rst:362
116+
#: ../../library/dbm.rst:296 ../../library/dbm.rst:369
117117
msgid "Open existing database for reading only (default)"
118118
msgstr "以只读方式打开现有数据库(默认)"
119119

120120
#: ../../library/dbm.rst:55 ../../library/dbm.rst:174
121-
#: ../../library/dbm.rst:292 ../../library/dbm.rst:365
121+
#: ../../library/dbm.rst:299 ../../library/dbm.rst:372
122122
msgid "``'w'``"
123123
msgstr "``'w'``"
124124

125125
#: ../../library/dbm.rst:55 ../../library/dbm.rst:174
126-
#: ../../library/dbm.rst:292 ../../library/dbm.rst:365
126+
#: ../../library/dbm.rst:299 ../../library/dbm.rst:372
127127
msgid "Open existing database for reading and writing"
128128
msgstr "以读写方式打开现有数据库"
129129

130130
#: ../../library/dbm.rst:58 ../../library/dbm.rst:177
131-
#: ../../library/dbm.rst:295 ../../library/dbm.rst:368
131+
#: ../../library/dbm.rst:302 ../../library/dbm.rst:375
132132
msgid "``'c'``"
133133
msgstr "``'c'``"
134134

135135
#: ../../library/dbm.rst:58 ../../library/dbm.rst:177
136-
#: ../../library/dbm.rst:295 ../../library/dbm.rst:368
136+
#: ../../library/dbm.rst:302 ../../library/dbm.rst:375
137137
msgid "Open database for reading and writing, creating it if it doesn't exist"
138138
msgstr "以读写方式打开数据库,如果不存在则创建它"
139139

140140
#: ../../library/dbm.rst:61 ../../library/dbm.rst:180
141-
#: ../../library/dbm.rst:298 ../../library/dbm.rst:371
141+
#: ../../library/dbm.rst:305 ../../library/dbm.rst:378
142142
msgid "``'n'``"
143143
msgstr "``'n'``"
144144

145145
#: ../../library/dbm.rst:61 ../../library/dbm.rst:180
146-
#: ../../library/dbm.rst:298 ../../library/dbm.rst:371
146+
#: ../../library/dbm.rst:305 ../../library/dbm.rst:378
147147
msgid "Always create a new, empty database, open for reading and writing"
148148
msgstr "始终创建一个新的空数据库,以读写方式打开"
149149

150-
#: ../../library/dbm.rst:65 ../../library/dbm.rst:302
151-
#: ../../library/dbm.rst:375
150+
#: ../../library/dbm.rst:65 ../../library/dbm.rst:309
151+
#: ../../library/dbm.rst:382
152152
msgid ""
153153
"The optional *mode* argument is the Unix mode of the file, used only when "
154154
"the database has to be created. It defaults to octal ``0o666`` (and will be"
@@ -389,17 +389,27 @@ msgstr ""
389389

390390
#: ../../library/dbm.rst:270
391391
msgid ""
392+
"The ndbm library shipped as part of macOS has an undocumented limitation on "
393+
"the size of values, which can result in corrupted database files when "
394+
"storing values larger than this limit. Reading such corrupted files can "
395+
"result in a hard crash (segmentation fault)."
396+
msgstr ""
397+
"作为 macOS 的一部分提供的 ndbm "
398+
"库对值的大小有一个未写入文档的限制,当存储的值大于此限制时可能会导致数据库文件损坏。读取这种已损坏的文件可能会导致硬崩溃(段错误)。"
399+
400+
#: ../../library/dbm.rst:277
401+
msgid ""
392402
"Raised on :mod:`dbm.ndbm`-specific errors, such as I/O errors. "
393403
":exc:`KeyError` is raised for general mapping errors like specifying an "
394404
"incorrect key."
395405
msgstr ""
396406
"针对 :mod:`dbm.ndbm` 专属错误例如 I/O 错误引发。 :exc:`KeyError` 的引发则针对一般映射错误例如指定了不正确的键。"
397407

398-
#: ../../library/dbm.rst:276
408+
#: ../../library/dbm.rst:283
399409
msgid "Name of the ``ndbm`` implementation library used."
400410
msgstr "所使用的 ``ndbm`` 实现库的名称。"
401411

402-
#: ../../library/dbm.rst:281
412+
#: ../../library/dbm.rst:288
403413
msgid ""
404414
"Open a dbm database and return a ``ndbm`` object. The *filename* argument "
405415
"is the name of the database file (without the :file:`.dir` or :file:`.pag` "
@@ -408,29 +418,29 @@ msgstr ""
408418
"打开一个 dbm 数据库并返回 ``ndbm`` 对象。 *filename* 参数为数据库文件名称(不带 :file:`.dir` 或 "
409419
":file:`.pag` 扩展名)。"
410420

411-
#: ../../library/dbm.rst:284
421+
#: ../../library/dbm.rst:291
412422
msgid "The optional *flag* argument must be one of these values:"
413423
msgstr "可选的 *flag* 参数必须是下列值之一:"
414424

415-
#: ../../library/dbm.rst:306
425+
#: ../../library/dbm.rst:313
416426
msgid ""
417427
"In addition to the dictionary-like methods, ``ndbm`` objects provide the "
418428
"following method:"
419429
msgstr "除了与字典类似的方法,``ndbm`` 对象还有以下方法:"
420430

421-
#: ../../library/dbm.rst:314
431+
#: ../../library/dbm.rst:321
422432
msgid "Close the ``ndbm`` database."
423433
msgstr "关闭 ``ndbm`` 数据库。"
424434

425-
#: ../../library/dbm.rst:318
435+
#: ../../library/dbm.rst:325
426436
msgid ":mod:`dbm.dumb` --- Portable DBM implementation"
427437
msgstr ":mod:`dbm.dumb` --- 便携式 DBM 实现"
428438

429-
#: ../../library/dbm.rst:323
439+
#: ../../library/dbm.rst:330
430440
msgid "**Source code:** :source:`Lib/dbm/dumb.py`"
431441
msgstr "**源代码:** :source:`Lib/dbm/dumb.py`"
432442

433-
#: ../../library/dbm.rst:329
443+
#: ../../library/dbm.rst:336
434444
msgid ""
435445
"The :mod:`dbm.dumb` module is intended as a last resort fallback for the "
436446
":mod:`dbm` module when a more robust module is not available. The "
@@ -440,7 +450,7 @@ msgstr ""
440450
":mod:`dbm.dumb` 模块的目的是在更健壮的模块不可用时作为 :mod:`dbm` 模块的最终回退项。 :mod:`dbm.dumb` "
441451
"不是为高速运行而编写的,也不像其他数据库模块一样被经常使用。"
442452

443-
#: ../../library/dbm.rst:336
453+
#: ../../library/dbm.rst:343
444454
msgid ""
445455
"The :mod:`dbm.dumb` module provides a persistent dictionary-like interface "
446456
"which is written entirely in Python. Unlike other modules such as "
@@ -450,19 +460,19 @@ msgstr ""
450460
":mod:`dbm.dumb` 模块提供了一个完全以 Python 编写的持久化字典类接口。 不同于 :mod:`dbm.gnu` "
451461
"等其他模块,它不需要外部库。 与其他持久化映射一样,它的键和值也总是被存储为字节串。"
452462

453-
#: ../../library/dbm.rst:341
463+
#: ../../library/dbm.rst:348
454464
msgid "The module defines the following:"
455465
msgstr "该模块定义以下内容:"
456466

457-
#: ../../library/dbm.rst:346
467+
#: ../../library/dbm.rst:353
458468
msgid ""
459469
"Raised on :mod:`dbm.dumb`-specific errors, such as I/O errors. "
460470
":exc:`KeyError` is raised for general mapping errors like specifying an "
461471
"incorrect key."
462472
msgstr ""
463473
"针对 :mod:`dbm.dumb` 专属错误例如 I/O 错误引发。 :exc:`KeyError` 的引发则针对一般映射例如指定了不正确的键。"
464474

465-
#: ../../library/dbm.rst:352
475+
#: ../../library/dbm.rst:359
466476
msgid ""
467477
"Open a ``dumbdbm`` database and return a dumbdbm object. The *filename* "
468478
"argument is the basename of the database file (without any specific "
@@ -472,26 +482,26 @@ msgstr ""
472482
"打开一个 ``dumbdbm`` 数据库并返回 dumbdbm 对象。 *filename* 参数为数据库文件的主名称(不带任何特定扩展名)。 创建一个"
473483
" dumbdbm 数据库时将创建多个带有 :file:`.dat` 和 :file:`.dir` 扩展名的文件。"
474484

475-
#: ../../library/dbm.rst:380
485+
#: ../../library/dbm.rst:387
476486
msgid ""
477487
"It is possible to crash the Python interpreter when loading a database with "
478488
"a sufficiently large/complex entry due to stack depth limitations in "
479489
"Python's AST compiler."
480490
msgstr "当载入包含足够巨大/复杂条目的数据库时有可能导致 Python 解释器的崩溃,这是由于 Python AST 编译器有栈深度限制。"
481491

482-
#: ../../library/dbm.rst:384
492+
#: ../../library/dbm.rst:391
483493
msgid ""
484494
":func:`.open` always creates a new database when the flag has the value "
485495
"``'n'``."
486496
msgstr ":func:`.open` 在 flag 值为 ``'n'`` 时将总是创建一个新的数据库。"
487497

488-
#: ../../library/dbm.rst:388
498+
#: ../../library/dbm.rst:395
489499
msgid ""
490500
"A database opened with flags ``'r'`` is now read-only. Opening with flags "
491501
"``'r'`` and ``'w'`` no longer creates a database if it does not exist."
492502
msgstr "附带 ``'r'`` 旗标打开的数据库现在将是只读的。 附带 ``'r'`` 和 ``'w'`` 旗标的打开操作不会再创建数据库。"
493503

494-
#: ../../library/dbm.rst:396
504+
#: ../../library/dbm.rst:403
495505
msgid ""
496506
"In addition to the methods provided by the "
497507
":class:`collections.abc.MutableMapping` class, :class:`dumbdbm` objects "
@@ -500,16 +510,16 @@ msgstr ""
500510
"除了 :class:`collections.abc.MutableMapping` 类所提供的方法,:class:`dumbdbm` "
501511
"对象还提供了以下方法:"
502512

503-
#: ../../library/dbm.rst:402
513+
#: ../../library/dbm.rst:409
504514
msgid ""
505515
"Synchronize the on-disk directory and data files. This method is called by "
506516
"the :meth:`Shelve.sync` method."
507517
msgstr "同步磁盘上的目录和数据文件。 此方法会由 :meth:`Shelve.sync` 方法来调用。"
508518

509-
#: ../../library/dbm.rst:407
519+
#: ../../library/dbm.rst:414
510520
msgid "Close the ``dumbdbm`` database."
511521
msgstr "关闭 ``dumbdbm`` 数据库。"
512522

513-
#: ../../library/dbm.rst:325
523+
#: ../../library/dbm.rst:332
514524
msgid "databases"
515525
msgstr "数据库"

0 commit comments

Comments
 (0)