mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-25 17:21:19 +02:00
Merge pull request #467 from autoload/main
add Chinese translation of Command Pattern
This commit is contained in:
@@ -5,7 +5,7 @@ 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"
|
||||
@@ -13,15 +13,15 @@ msgstr ""
|
||||
|
||||
#: ../../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 ""
|
||||
@@ -31,6 +31,9 @@ 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 ""
|
||||
@@ -38,16 +41,21 @@ msgid ""
|
||||
"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 ""
|
||||
@@ -55,19 +63,21 @@ msgid ""
|
||||
"\"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 "测试"
|
||||
|
Reference in New Issue
Block a user