Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 19 additions & 9 deletions locale/zh_CN/LC_MESSAGES/Behavioral/Command/README.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@ msgstr ""
"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: FULL NAME <EMAIL@ADDRESS>\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 ""
msgstr "`命令行模式`__"

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

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

#: ../../Behavioral/Command/README.rst:9
msgid ""
Expand All @@ -31,43 +31,53 @@ msgid ""
"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 ""
msgstr "例子"

#: ../../Behavioral/Command/README.rst:23
msgid ""
"A text editor : all events are Command 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 ""
msgstr "UML 图"

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

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

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