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

Skip to content

Commit 3ff23da

Browse files
[po] auto sync
1 parent 545a78f commit 3ff23da

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

library/configparser.po

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -655,13 +655,15 @@ msgid ""
655655
"method starts with ``get``, it will be available on all section proxies, in "
656656
"the dict-compatible form (see the ``getdecimal()`` example above)."
657657
msgstr ""
658+
"如果转换器需要访问解析器的状态,可以在配置解析器子类上作为一个方法来实现。 如果该方法的名称是以 ``get`` "
659+
"打头的,它将在所有节代理上以兼容字典的形式提供(参见上面的 ``getdecimal()`` 示例)。"
658660

659661
#: ../../library/configparser.rst:671
660662
msgid ""
661663
"More advanced customization may be achieved by overriding default values of "
662664
"these parser attributes. The defaults are defined on the classes, so they "
663665
"may be overridden by subclasses or by attribute assignment."
664-
msgstr ""
666+
msgstr "更多高级定制选项可通过重载这些解析器属性的默认值来达成。 默认值是在类中定义的,因此它们可以通过子类或属性赋值来重载。"
665667

666668
#: ../../library/configparser.rst:677
667669
msgid ""
@@ -671,12 +673,15 @@ msgid ""
671673
" ``'off'``. You can override this by specifying a custom dictionary of "
672674
"strings and their Boolean outcomes. For example:"
673675
msgstr ""
676+
"默认情况下当使用 :meth:`~ConfigParser.getboolean` 时,配置解析器会将下列值视为 ``True``: ``'1'``, "
677+
"``'yes'``, ``'true'``, ``'on'`` 而将下列值视为 ``False``: ``'0'``, ``'no'``, "
678+
"``'false'``, ``'off'``。 你可以通过指定一个自定义的字符串键及其对应的布尔值字典来重载此行为。 例如:"
674679

675680
#: ../../library/configparser.rst:695
676681
msgid ""
677682
"Other typical Boolean pairs include ``accept``/``reject`` or "
678683
"``enabled``/``disabled``."
679-
msgstr ""
684+
msgstr "其他典型的布尔值对包括 ``accept``/``reject`` 或 ``enabled``/``disabled``。"
680685

681686
#: ../../library/configparser.rst:700
682687
msgid ""
@@ -685,13 +690,15 @@ msgid ""
685690
"configuration file gets written, all keys will be lowercase. Override this "
686691
"method if that's unsuitable. For example:"
687692
msgstr ""
693+
"这个方法会转换每次 read, get, 或 set 操作的选项名称。 默认会将名称转换为小写形式。 "
694+
"这也意味着当一个配置文件被写入时,所有键都将为小写形式。 如果此行为不合适则要重载此方法。 例如:"
688695

689696
#: ../../library/configparser.rst:730
690697
msgid ""
691698
"The optionxform function transforms option names to a canonical form. This "
692699
"should be an idempotent function: if the name is already in canonical form, "
693700
"it should be returned unchanged."
694-
msgstr ""
701+
msgstr "optionxform 函数会将选项名称转换为规范形式。 这应该是一个幂等函数:如果名称已经为规范形式,则应不加修改地将其返回。"
695702

696703
#: ../../library/configparser.rst:737
697704
msgid ""
@@ -701,6 +708,9 @@ msgid ""
701708
" name ``\" larch \"``. Override this attribute if that's unsuitable. For"
702709
" example:"
703710
msgstr ""
711+
"一个已编译正则表达式会被用来解析节标头。 默认将 ``[section]`` 匹配到名称 ``\"section\"``。 "
712+
"空格会被视为节名称的一部分,因此 ``[ larch ]`` 将被读取为一个名称为 ``\" larch \"`` 的节。 "
713+
"如果此行为不合适则要重载此属性。 例如:"
704714

705715
#: ../../library/configparser.rst:765
706716
msgid ""

0 commit comments

Comments
 (0)