# 
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-05-29 12:18+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: David Wan <autoloadone@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: ../../Behavioral/Command/README.rst:2
msgid "`Command`__"
msgstr "`命令行模式`__"

#: ../../Behavioral/Command/README.rst:5
msgid "Purpose"
msgstr "目的"

#: ../../Behavioral/Command/README.rst:7
msgid "To encapsulate invocation and decoupling."
msgstr "封装调用与解耦"

#: ../../Behavioral/Command/README.rst:9
msgid ""
"We have an Invoker and a Receiver. This pattern uses a \"Command\" to "
"delegate the method call against the Receiver and presents the same method "
"\"execute\". Therefore, the Invoker just knows to call \"execute\" to "
"process the Command of the client. The Receiver is decoupled from the "
"Invoker."
msgstr ""
"我们有一个调用器和一个接受器。"
"此模式使用一个【Command】来委托接收器的方法调用，并呈现相同的方法【execute】。"
"调用器只知道调用【execute】来处理客户机的【Command】。从而实现了接收器和调用者的解耦。"

#: ../../Behavioral/Command/README.rst:15
msgid ""
"The second aspect of this pattern is the undo(), which undoes the method "
"execute(). Command can also be aggregated to combine more complex commands "
"with minimum copy-paste and relying on composition over inheritance."
msgstr ""
"此模式的另一个方面是undo()，它取消execute()方法。"
"命令行也可以通过聚合来组合更复杂的命令，使用最小的复制-粘贴，并依赖组合而不是继承。"


#: ../../Behavioral/Command/README.rst:21
msgid "Examples"
msgstr "例子"

#: ../../Behavioral/Command/README.rst:23
msgid ""
"A text editor : all events are commands which can be undone, stacked and saved."
msgstr ""
"文本编辑器：所有事件都可以撤销、堆放、保存的命令。"

#: ../../Behavioral/Command/README.rst:27
msgid ""
"big CLI tools use subcommands to distribute various tasks and pack them in "
"\"modules\", each of these can be implemented with the Command pattern (e.g."
" vagrant)"
msgstr ""
"大型CLI工具使用子命令来分发各种任务，并将它们打包到【模块】，"
"每个模块都可以用命令行模式实现例如【vagrant】。"

#: ../../Behavioral/Command/README.rst:32
msgid "UML Diagram"
msgstr "UML 图"

#: ../../Behavioral/Command/README.rst:39
msgid "Code"
msgstr "代码"

#: ../../Behavioral/Command/README.rst:41
msgid "You can also find this code on `GitHub`_"
msgstr "在 `GitHub`_ 上查看代码"

#: ../../Behavioral/Command/README.rst:68
msgid "Test"
msgstr "测试"
