Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6c7a23e

Browse files
[po] auto sync
1 parenteada4d7 commit6c7a23e

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

‎library/optparse.po

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2687,24 +2687,27 @@ msgid ""
26872687
" the default\"typed\" actions are ``\"store\"``, ``\"append\"``, and "
26882688
"``\"callback\"``."
26892689
msgstr""
2690+
"这些是相互重叠的集合:默认的\"store\" 类动作有 ``\"store\"``, ``\"store_const\"``, "
2691+
"``\"append\"`` 和 ``\"count\"``,而默认的\"typed\" 类动作有 ``\"store\"``, "
2692+
"``\"append\"`` 和 ``\"callback\"``。"
26902693

26912694
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1954
26922695
msgid""
26932696
"When you add an action, you need to categorize it by listing it in at least "
26942697
"one of the following class attributes of Option (all are lists of strings):"
2695-
msgstr""
2698+
msgstr"当你添加一个动作时,你需要将它列在 Option 的以下类属性的至少一个当中以对它进行分类(全部为字符串列表):"
26962699

26972700
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1959
26982701
msgid"All actions must be listed in ACTIONS."
2699-
msgstr""
2702+
msgstr"所有动作必须在 ACTIONS 中列出。"
27002703

27012704
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1963
27022705
msgid"\"store\" actions are additionally listed here."
2703-
msgstr""
2706+
msgstr"\"store\" 类动作要额外地在此列出。"
27042707

27052708
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1967
27062709
msgid"\"typed\" actions are additionally listed here."
2707-
msgstr""
2710+
msgstr"\"typed\" 类动作要额外地在此列出。"
27082711

27092712
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1971
27102713
msgid""
@@ -2713,12 +2716,14 @@ msgid ""
27132716
"assigns the default type, ``\"string\"``, to options with no explicit type "
27142717
"whose action is listed in :attr:`ALWAYS_TYPED_ACTIONS`."
27152718
msgstr""
2719+
"总是会接受一个类型的动作(即其选项总是会接受一个值)要额外地在此列出。 它带来的唯一影响是 :mod:`optparse` 会将默认类型 "
2720+
"``\"string\"`` 赋值给动作在 :attr:`ALWAYS_TYPED_ACTIONS` 中列出而未显式指定类型的选项。"
27162721

27172722
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1976
27182723
msgid""
27192724
"In order to actually implement your new action, you must override Option's "
27202725
":meth:`take_action` method and add a case that recognizes your action."
2721-
msgstr""
2726+
msgstr"为了真正实现你的新动作,你必须重载 Option 的 :meth:`take_action` 方法并添加一个识别你的动作的分支。"
27222727

27232728
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1979
27242729
msgid""
@@ -2729,14 +2734,17 @@ msgid ""
27292734
"existing list with them. That is, if ``--names`` is an ``\"extend\"`` "
27302735
"option of type ``\"string\"``, the command line ::"
27312736
msgstr""
2737+
"例如,让我们添加一个 ``\"extend\"`` 动作。 它类似于标准的 ``\"append\"`` 动作,但 ``\"extend\"`` "
2738+
"不是从命令行接受单个值并将其添加到现有列表,而是接受形式为以单个逗号分隔的多个值的字符串,并用这些值来扩展现有列表。 也就是说,如果 "
2739+
"``--names`` 是一个类型为 ``\"string\"`` 的 ``\"extend\"`` 选项,则命令行 ::"
27322740

27332741
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1988
27342742
msgid"would result in a list ::"
2735-
msgstr""
2743+
msgstr"将得到一个列表 ::"
27362744

27372745
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:1992
27382746
msgid"Again we define a subclass of Option::"
2739-
msgstr""
2747+
msgstr"我们再定义一个 Option 的子类::"
27402748

27412749
#:/home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/optparse.rst:2009
27422750
msgid"Features of note:"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp