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

Skip to content

Commit 9914b0a

Browse files
[po] auto sync
1 parent d350c7f commit 9914b0a

2 files changed

Lines changed: 27 additions & 16 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "93.63%", "updated_at": "2024-02-04T15:55:44Z"}
1+
{"translation": "93.67%", "updated_at": "2024-02-05T01:18:39Z"}

library/dbm.po

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -299,27 +299,27 @@ msgstr "``'u'``: 不锁定数据库。"
299299
msgid ""
300300
"Not all flags are valid for all versions of GDBM. See the :data:`open_flags`"
301301
" member for a list of supported flag characters."
302-
msgstr ""
302+
msgstr "并非所有旗标都对所有 GDBM 版本可用。 请参阅 :data:`open_flags` 成员获取受支持旗标字符的列表。"
303303

304304
#: ../../library/dbm.rst:0
305305
msgid "Raises"
306306
msgstr "引发"
307307

308308
#: ../../library/dbm.rst:204
309309
msgid "If an invalid *flag* argument is passed."
310-
msgstr ""
310+
msgstr "如果传入了不可用的 *flag* 参数。"
311311

312312
#: ../../library/dbm.rst:212
313313
msgid ""
314314
"A string of characters the *flag* parameter of :meth:`~dbm.gnu.open` "
315315
"supports."
316-
msgstr ""
316+
msgstr "由 :meth:`~dbm.gnu.open` 的 *flag* 形参所支持的字符组成的字符串。"
317317

318318
#: ../../library/dbm.rst:214
319319
msgid ""
320320
"In addition to the dictionary-like methods, :class:`gdbm` objects have the "
321321
"following methods and attributes:"
322-
msgstr ""
322+
msgstr "I在与字典类似的方法之外,:class:`gdbm` 对象还有下列方法和属性:"
323323

324324
#: ../../library/dbm.rst:219
325325
msgid ""
@@ -409,13 +409,13 @@ msgstr "所使用的 NDBM 实现库的名称。"
409409

410410
#: ../../library/dbm.rst:295
411411
msgid "Open an NDBM database and return an :class:`!ndbm` object."
412-
msgstr ""
412+
msgstr "打开 NDBM 数据库并返回一个 :class:`!ndbm` 对象。"
413413

414414
#: ../../library/dbm.rst:297
415415
msgid ""
416416
"The basename of the database file (without the :file:`.dir` or :file:`.pag` "
417417
"extensions)."
418-
msgstr ""
418+
msgstr "数据库文件的基本名(不带 :file:`.dir` 或 :file:`.pag` 扩展名)。"
419419

420420
#: ../../library/dbm.rst:311
421421
msgid ""
@@ -457,10 +457,13 @@ msgid ""
457457
"other :mod:`dbm` backends, the keys and values are always stored as "
458458
":class:`bytes`."
459459
msgstr ""
460+
":mod:`dbm.dumb` 模块提供了一个完全以 Python 编写的持久化 :class:`dict` 型接口。 不同于其他 :mod:`dbm`"
461+
" 后端,例如 :mod:`dbm.gnu`,它不需要外部库。 与其他 :mod:`dbm` 后端一样,它的键和值也总是被存储为 "
462+
":class:`bytes`。"
460463

461464
#: ../../library/dbm.rst:348
462465
msgid "The :mod:`!dbm.dumb` module defines the following:"
463-
msgstr ""
466+
msgstr ":mod:`!dbm.dumb` 模块定义了以下对象:"
464467

465468
#: ../../library/dbm.rst:352
466469
msgid ""
@@ -476,41 +479,47 @@ msgid ""
476479
"similar to a :term:`mapping`, in addition to providing :meth:`~dumbdbm.sync`"
477480
" and :meth:`~dumbdbm.close` methods."
478481
msgstr ""
482+
"打开一个 :mod:`!dbm.dumb` 数据库。 返回的数据库对象的行为类似于 :term:`mapping`,并额外提供 "
483+
":meth:`~dumbdbm.sync` 和 :meth:`~dumbdbm.close` 等方法。"
479484

480485
#: ../../library/dbm.rst:363
481486
msgid ""
482487
"The basename of the database file (without extensions). A new database "
483488
"creates the following files: - :file:`{filename}.dat` - "
484489
":file:`{filename}.dir`"
485490
msgstr ""
491+
"数据库文件的基本名(不带扩展名)。 新数据库将会创建以下文件: - :file:`{filename}.dat` - "
492+
":file:`{filename}.dir`"
486493

487494
#: ../../library/dbm.rst:364
488495
msgid ""
489496
"The basename of the database file (without extensions). A new database "
490497
"creates the following files:"
491-
msgstr ""
498+
msgstr "数据库文件的基本名(不带扩展名)。 新数据库将会创建以下文件:"
492499

493500
#: ../../library/dbm.rst:367
494501
msgid ":file:`{filename}.dat`"
495-
msgstr ""
502+
msgstr ":file:`{filename}.dat`"
496503

497504
#: ../../library/dbm.rst:368
498505
msgid ":file:`{filename}.dir`"
499-
msgstr ""
506+
msgstr ":file:`{filename}.dir`"
500507

501508
#: ../../library/dbm.rst:371
502509
msgid ""
503510
"* ``'r'``: |flag_r| * ``'w'``: |flag_w| * ``'c'`` (default): |flag_c| * "
504511
"``'n'``: |flag_n|"
505512
msgstr ""
513+
"* ``'r'``: |flag_r| * ``'w'``: |flag_w| * ``'c'`` (默认): |flag_c| * ``'n'``: "
514+
"|flag_n|"
506515

507516
#: ../../library/dbm.rst:372
508517
msgid "``'r'``: |flag_r|"
509-
msgstr ""
518+
msgstr "``'r'``: |flag_r|"
510519

511520
#: ../../library/dbm.rst:374
512521
msgid "``'c'`` (default): |flag_c|"
513-
msgstr ""
522+
msgstr "``'c'`` (default): |flag_c|"
514523

515524
#: ../../library/dbm.rst:381
516525
msgid ""
@@ -522,20 +531,22 @@ msgstr "当载入包含足够巨大/复杂条目的数据库时有可能导致 P
522531
#: ../../library/dbm.rst:385
523532
msgid ""
524533
":func:`~dbm.dumb.open` always creates a new database when *flag* is ``'n'``."
525-
msgstr ""
534+
msgstr ":func:`~dbm.dumb.open` 在 *flag* 为 ``'n'`` 时将总是创建一个新数据库。"
526535

527536
#: ../../library/dbm.rst:388
528537
msgid ""
529538
"A database opened read-only if *flag* is ``'r'``. A database is not created "
530539
"if it does not exist if *flag* is ``'r'`` or ``'w'``."
531540
msgstr ""
541+
"如果 *flag* 为 ``'r'`` 则打开的数据库将为只读的。 如果 *flag* 为 ``'r'`` 或 ``'w'`` "
542+
"则当数据库不存在时不会自动创建它。"
532543

533544
#: ../../library/dbm.rst:395
534545
msgid ""
535546
"In addition to the methods provided by the "
536547
":class:`collections.abc.MutableMapping` class, the following methods are "
537548
"provided:"
538-
msgstr ""
549+
msgstr "在 :class:`collections.abc.MutableMapping` 类所提供的方法之外,还提供了以下方法:"
539550

540551
#: ../../library/dbm.rst:401
541552
msgid ""
@@ -545,7 +556,7 @@ msgstr "同步磁盘上的目录和数据文件。 此方法会由 :meth:`Shelve
545556

546557
#: ../../library/dbm.rst:406
547558
msgid "Close the database."
548-
msgstr ""
559+
msgstr "关闭数据库。"
549560

550561
#: ../../library/dbm.rst:330
551562
msgid "databases"

0 commit comments

Comments
 (0)