<commit_before>#
msgid ""
msgstr ""
"Project-Id-Version: Fabric\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-06-16 16:34+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <<EMAIL>>\n"
"Language-Team: LANGUAGE <<EMAIL>>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: ../api/core/tasks.rst:3
msgid "Tasks"
msgstr "任务"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.Task:1
msgid ""
"Abstract base class for objects wishing to be picked up as Fabric tasks."
msgstr "Fabric 任务对象的抽象基类。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.Task:3
msgid ""
"Instances of subclasses will be treated as valid tasks when present in "
"fabfiles loaded by the :doc:`fab </usage/fab>` tool."
msgstr "执行 :doc:`fab </usage/fab>` 命令时，会将 fabfile 中其所有子类的实例当作合法任务。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.Task:6
msgid ""
"For details on how to implement and use `~fabric.tasks.Task` subclasses, "
"please see the usage documentation on :ref:`new-style tasks <new-style-"
"tasks>`."
msgstr ""
"其具体实现以及 `~fabric.tasks.Task` 子类的使用参见 :ref:`新式任务 <new-style-tasks>`"
" 的文档。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.Task.__weakref__:1
msgid "list of weak references to the object (if defined)"
msgstr "该对象弱引用的列表（如果有定义的话）"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.Task.get_hosts_and_effective_roles:1
msgid ""
"Return a tuple containing the host list the given task should be using and "
"the roles being used."
msgstr ""
"返回一个包含了当前任务将于使用到的主机列表以及将要使用到的角色的远祖。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.Task.get_hosts_and_effective_roles:4
msgid ""
"See :ref:`host-lists` for detailed documentation on how host lists are set."
msgstr ""
"如何设置主机列表的详细文档参见 :ref:`host-lists` 。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.WrappedCallableTask:1
msgid ""
"Wraps a given callable transparently, while marking it as a valid Task."
msgstr "透明地封装一个 callable 对象为合法任务。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.WrappedCallableTask:3
msgid "Generally used via `~fabric.decorators.task` and not directly."
msgstr "通常通过 `~fabric.decorators.task` 调用而不直接使用。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.WrappedCallableTask:7
msgid "`~fabric.docs.unwrap_tasks`, `~fabric.decorators.task`"
msgstr "`~fabric.docs.unwrap_tasks` ， `~fabric.decorators.task`"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.execute:1
msgid ""
"Execute ``task`` (callable or name), honoring host/role decorators, etc."
msgstr ""

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.execute:3
msgid ""
"``task`` may be an actual callable object, or it may be a registered task "
"name, which is used to look up a callable just as if the name had been given"
" on the command line (including :ref:`namespaced tasks <namespaces>`, e.g. "
"``\"deploy.migrate\"``."
msgstr ""
"``task`` 可以是一个可调用对象，或者是一个注册任务的名字，只要命令行中提供了该名字"
"（包括 :ref:`命名任务 <namespaces>` ，例如 ``\"deploy.migrate\"`` ），就会"
"自动寻找对应的 callable 对象。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.execute:8
msgid ""
"The task will then be executed once per host in its host list, which is "
"(again) assembled in the same manner as CLI-specified tasks: drawing from "
":option:`-H`, :ref:`env.hosts <hosts>`, the `~fabric.decorators.hosts` or "
"`~fabric.decorators.roles` decorators, and so forth."
msgstr ""

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.execute:13
msgid ""
"``host``, ``hosts``, ``role``, ``roles`` and ``exclude_hosts`` kwargs will "
"be stripped out of the final call, and used to set the task's host list, as "
"if they had been specified on the command line like e.g. ``fab "
"taskname:host=hostname``."
msgstr ""

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.execute:18
msgid ""
"Any other arguments or keyword arguments will be passed verbatim into "
"``task`` (the function itself -- not the ``@task`` decorator wrapping your "
"function!) when it is called, so ``execute(mytask, 'arg1', kwarg1='value')``"
" will (once per host) invoke ``mytask('arg1', kwarg1='value')``."
msgstr ""

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.execute:24
msgid ""
"a dictionary mapping host strings to the given task's return value for that "
"host's execution run. For example, ``execute(foo, hosts=['a', 'b'])`` might "
"return ``{'a': None, 'b': 'bar'}`` if ``foo`` returned nothing on host `a` "
"but returned ``'bar'`` on host `b`.  In situations where a task execution "
"fails for a given host but overall progress does not abort (such as when "
":ref:`env.skip_bad_hosts <skip-bad-hosts>` is True) the return value for "
"that host will be the error object or message."
msgstr ""

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.execute:25
msgid ""
"a dictionary mapping host strings to the given task's return value for that "
"host's execution run. For example, ``execute(foo, hosts=['a', 'b'])`` might "
"return ``{'a': None, 'b': 'bar'}`` if ``foo`` returned nothing on host `a` "
"but returned ``'bar'`` on host `b`."
msgstr ""

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.execute:30
msgid ""
"In situations where a task execution fails for a given host but overall "
"progress does not abort (such as when :ref:`env.skip_bad_hosts <skip-bad-"
"hosts>` is True) the return value for that host will be the error object or "
"message."
msgstr ""

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.execute:36
msgid ""
":ref:`The execute usage docs <execute>`, for an expanded explanation and "
"some examples."
msgstr ":ref:`execute 使用文档 <execute>` 中提供了更详细的解释和示例。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.execute:40
msgid ""
"Added the return value mapping; previously this function had no defined "
"return value."
msgstr "新增了返回值映射，之前的版本中没有返回值。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.requires_parallel:1
msgid "Returns True if given ``task`` should be run in parallel mode."
msgstr "如果 ``task`` 需要在并行模式下运行则返回 ``True`` 。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.requires_parallel:3
msgid "Specifically:"
msgstr "具体来说："

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.requires_parallel:5
msgid "It's been explicitly marked with ``@parallel``, or:"
msgstr "显式地添加了 ``@parallel`` 装饰器，或者："

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.requires_parallel:6
msgid ""
"It's *not* been explicitly marked with ``@serial`` *and* the global parallel"
" option (``env.parallel``) is set to ``True``."
msgstr "全局并行参数（ ``env.parallel`` ）为 ``Ture`` 时 *非* 显式地添加 "
"``@serial`` 装饰器。"
<commit_msg>翻译 tasks.po<commit_after>#
msgid ""
msgstr ""
"Project-Id-Version: Fabric\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-06-16 16:34+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL<EMAIL>>\n"
"Language-Team: LANGUAGE <<EMAIL>>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: ../api/core/tasks.rst:3
msgid "Tasks"
msgstr "任务"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.Task:1
msgid ""
"Abstract base class for objects wishing to be picked up as Fabric tasks."
msgstr "Fabric 任务对象的抽象基类。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.Task:3
msgid ""
"Instances of subclasses will be treated as valid tasks when present in "
"fabfiles loaded by the :doc:`fab </usage/fab>` tool."
msgstr "执行 :doc:`fab </usage/fab>` 命令时，会将 fabfile 中其所有子类的实例当作合法任务。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.Task:6
msgid ""
"For details on how to implement and use `~fabric.tasks.Task` subclasses, "
"please see the usage documentation on :ref:`new-style tasks <new-style-"
"tasks>`."
msgstr ""
"其具体实现以及 `~fabric.tasks.Task` 子类的使用参见 :ref:`新式任务 <new-style-tasks>`"
" 的文档。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.Task.__weakref__:1
msgid "list of weak references to the object (if defined)"
msgstr "该对象弱引用的列表（如果有定义的话）"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.Task.get_hosts_and_effective_roles:1
msgid ""
"Return a tuple containing the host list the given task should be using and "
"the roles being used."
msgstr ""
"返回一个包含了当前任务将于使用到的主机列表以及将要使用到的角色的远祖。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.Task.get_hosts_and_effective_roles:4
msgid ""
"See :ref:`host-lists` for detailed documentation on how host lists are set."
msgstr ""
"如何设置主机列表的详细文档参见 :ref:`host-lists` 。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.WrappedCallableTask:1
msgid ""
"Wraps a given callable transparently, while marking it as a valid Task."
msgstr "透明地封装一个 callable 对象为合法任务。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.WrappedCallableTask:3
msgid "Generally used via `~fabric.decorators.task` and not directly."
msgstr "通常通过 `~fabric.decorators.task` 调用而不直接使用。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.WrappedCallableTask:7
msgid "`~fabric.docs.unwrap_tasks`, `~fabric.decorators.task`"
msgstr "`~fabric.docs.unwrap_tasks` ， `~fabric.decorators.task`"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.execute:1
msgid ""
"Execute ``task`` (callable or name), honoring host/role decorators, etc."
msgstr "执行 ``task`` （可调用对象或其名字），与 host/role 装饰器保持一致。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.execute:3
msgid ""
"``task`` may be an actual callable object, or it may be a registered task "
"name, which is used to look up a callable just as if the name had been given"
" on the command line (including :ref:`namespaced tasks <namespaces>`, e.g. "
"``\"deploy.migrate\"``."
msgstr ""
"``task`` 可以是一个可调用对象，或者是一个注册任务的名字，只要命令行中提供了该名字"
"（包括 :ref:`命名任务 <namespaces>` ，例如 ``\"deploy.migrate\"`` ），就会"
"自动寻找对应的 callable 对象。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.execute:8
msgid ""
"The task will then be executed once per host in its host list, which is "
"(again) assembled in the same manner as CLI-specified tasks: drawing from "
":option:`-H`, :ref:`env.hosts <hosts>`, the `~fabric.decorators.hosts` or "
"`~fabric.decorators.roles` decorators, and so forth."
msgstr ""
"主机列表中的每一个主机上都会执行一次任务，其执行方式（也）和 CLI 任务一样："
"优先顺序是 :option:`-H`、:ref:`env.hosts <hosts>`、`~fabric.decorators.hosts` "
"到 `~fabric.decorators.roles` 装饰器，依此类推。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.execute:13
msgid ""
"``host``, ``hosts``, ``role``, ``roles`` and ``exclude_hosts`` kwargs will "
"be stripped out of the final call, and used to set the task's host list, as "
"if they had been specified on the command line like e.g. ``fab "
"taskname:host=hostname``."
msgstr ""
"关键字参数 ``host``、``hosts``、``role``、``roles`` 以及 ``exclude_hosts`` "
"会在最后调用前整理清楚，用于生成任务真正的主机列表, 最终像是在命令行执行："
"``fab taskname:host=hostname`` 一样。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.execute:18
msgid ""
"Any other arguments or keyword arguments will be passed verbatim into "
"``task`` (the function itself -- not the ``@task`` decorator wrapping your "
"function!) when it is called, so ``execute(mytask, 'arg1', kwarg1='value')``"
" will (once per host) invoke ``mytask('arg1', kwarg1='value')``."
msgstr ""
"其它参数或者关键字参数将会一字不差地传递给 ``task``（函数，而非封装在你的函数周围的 "
"``@task`` 装饰器），``execute(mytask, 'arg1', kwarg1='value')``"
" 会（在每台主机上）这样都调用 ``mytask('arg1', kwarg1='value')``。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.execute:24
msgid ""
"a dictionary mapping host strings to the given task's return value for that "
"host's execution run. For example, ``execute(foo, hosts=['a', 'b'])`` might "
"return ``{'a': None, 'b': 'bar'}`` if ``foo`` returned nothing on host `a` "
"but returned ``'bar'`` on host `b`.  In situations where a task execution "
"fails for a given host but overall progress does not abort (such as when "
":ref:`env.skip_bad_hosts <skip-bad-hosts>` is True) the return value for "
"that host will be the error object or message."
msgstr ""
"一个主机字符串对应任务运行结果的字典。例如：主机 `a` 什么都不返回，主机 `b` 返回 "
"``'bar'`` 时，``execute(foo, hosts=['a', 'b'])`` 的结果会是 ``{'a': None, 'b': 'bar'}``。"
"在一个主机执行失败，但并没有退出整个程序（如：:ref:`env.skip_bad_hosts <skip-bad-"
"hosts>` 设置为 True）时，该主机的返回值将是一个 error 对象或者信息。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.execute:25
msgid ""
"a dictionary mapping host strings to the given task's return value for that "
"host's execution run. For example, ``execute(foo, hosts=['a', 'b'])`` might "
"return ``{'a': None, 'b': 'bar'}`` if ``foo`` returned nothing on host `a` "
"but returned ``'bar'`` on host `b`."
msgstr ""
"一个主机字符串对应任务运行结果的字典。例如：主机 `a` 什么都不返回，主机 `b` 返回 "
"``'bar'`` 时，``execute(foo, hosts=['a', 'b'])`` 的结果会是 ``{'a': None, 'b': 'bar'}``。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.execute:30
msgid ""
"In situations where a task execution fails for a given host but overall "
"progress does not abort (such as when :ref:`env.skip_bad_hosts <skip-bad-"
"hosts>` is True) the return value for that host will be the error object or "
"message."
msgstr ""
"在一个主机执行失败，但并没有退出整个程序（如：:ref:`env.skip_bad_hosts <skip-bad-"
"hosts>` 设置为 True）时，该主机的返回值将是一个 error 对象或者信息。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.execute:36
msgid ""
":ref:`The execute usage docs <execute>`, for an expanded explanation and "
"some examples."
msgstr ":ref:`execute 使用文档 <execute>` 中提供了更详细的解释和示例。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.execute:40
msgid ""
"Added the return value mapping; previously this function had no defined "
"return value."
msgstr "新增了返回值映射，之前的版本中没有返回值。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.requires_parallel:1
msgid "Returns True if given ``task`` should be run in parallel mode."
msgstr "如果 ``task`` 需要在并行模式下运行则返回 ``True`` 。"

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.requires_parallel:3
msgid "Specifically:"
msgstr "具体来说："

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.requires_parallel:5
msgid "It's been explicitly marked with ``@parallel``, or:"
msgstr "显式地添加了 ``@parallel`` 装饰器，或者："

#: ../../../../../../usr/local/lib/python2.7/site-packages/fabric/tasks.pydocstring
#: of fabric.tasks.requires_parallel:6
msgid ""
"It's *not* been explicitly marked with ``@serial`` *and* the global parallel"
" option (``env.parallel``) is set to ``True``."
msgstr "全局并行参数（ ``env.parallel`` ）为 ``Ture`` 时 *非* 显式地添加 "
"``@serial`` 装饰器。"

{'fraction_non_alphanumeric': 0.20688818821246666, 'fraction_numerical': 0.012490904681057482, 'mean_word_length': 3.960300751879699, 'pattern_counts': {'":': 8, '<': 36, '<?xml version=': 0, '>': 36, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6267197', 'n_tokens_mistral': 6542, 'n_tokens_neox': 6255, 'n_words': 1467}