@@ -5,23 +5,23 @@ msgstr ""
5
5
"Report-Msgid-Bugs-To : \n "
6
6
"POT-Creation-Date : 2015-05-29 12:18+0200\n "
7
7
"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
8
- "Last-Translator : FULL NAME <EMAIL@ADDRESS >\n "
8
+ "Last-Translator : David Wan <autoloadone@gmail.com >\n "
9
9
"Language-Team : LANGUAGE <LL@li.org>\n "
10
10
"MIME-Version : 1.0\n "
11
11
"Content-Type : text/plain; charset=UTF-8\n "
12
12
"Content-Transfer-Encoding : 8bit\n "
13
13
14
14
#: ../../Behavioral/Command/README.rst:2
15
15
msgid "`Command`__"
16
- msgstr ""
16
+ msgstr "`命令行模式`__ "
17
17
18
18
#: ../../Behavioral/Command/README.rst:5
19
19
msgid "Purpose"
20
- msgstr ""
20
+ msgstr "目的 "
21
21
22
22
#: ../../Behavioral/Command/README.rst:7
23
23
msgid "To encapsulate invocation and decoupling."
24
- msgstr ""
24
+ msgstr "封装调用与解耦 "
25
25
26
26
#: ../../Behavioral/Command/README.rst:9
27
27
msgid ""
@@ -31,43 +31,53 @@ msgid ""
31
31
"process the Command of the client. The Receiver is decoupled from the "
32
32
"Invoker."
33
33
msgstr ""
34
+ "我们有一个调用器和一个接受器。"
35
+ "此模式使用一个【Command】来委托接收器的方法调用,并呈现相同的方法【execute】。"
36
+ "调用器只知道调用【execute】来处理客户机的【Command】。从而实现了接收器和调用者的解耦。"
34
37
35
38
#: ../../Behavioral/Command/README.rst:15
36
39
msgid ""
37
40
"The second aspect of this pattern is the undo(), which undoes the method "
38
41
"execute(). Command can also be aggregated to combine more complex commands "
39
42
"with minimum copy-paste and relying on composition over inheritance."
40
43
msgstr ""
44
+ "此模式的另一个方面是undo(),它取消execute()方法。"
45
+ "命令行也可以通过聚合来组合更复杂的命令,使用最小的复制-粘贴,并依赖组合而不是继承。"
46
+
41
47
42
48
#: ../../Behavioral/Command/README.rst:21
43
49
msgid "Examples"
44
- msgstr ""
50
+ msgstr "例子 "
45
51
46
52
#: ../../Behavioral/Command/README.rst:23
47
53
msgid ""
48
54
"A text editor : all events are Command which can be undone, stacked and "
49
55
"saved."
50
56
msgstr ""
57
+ "文本编辑器:所有事件都可以撤销、堆放、保存的"
58
+ "命令。"
51
59
52
60
#: ../../Behavioral/Command/README.rst:27
53
61
msgid ""
54
62
"big CLI tools use subcommands to distribute various tasks and pack them in "
55
63
"\" modules\" , each of these can be implemented with the Command pattern (e.g."
56
64
" vagrant)"
57
65
msgstr ""
66
+ "大型CLI工具使用子命令来分发各种任务,并将它们打包到【模块】,"
67
+ "每个模块都可以用命令行模式实现例如【vagrant】。"
58
68
59
69
#: ../../Behavioral/Command/README.rst:32
60
70
msgid "UML Diagram"
61
- msgstr ""
71
+ msgstr "UML 图 "
62
72
63
73
#: ../../Behavioral/Command/README.rst:39
64
74
msgid "Code"
65
- msgstr ""
75
+ msgstr "代码 "
66
76
67
77
#: ../../Behavioral/Command/README.rst:41
68
78
msgid "You can also find this code on `GitHub`_"
69
- msgstr ""
79
+ msgstr "在 `GitHub`_ 上查看代码 "
70
80
71
81
#: ../../Behavioral/Command/README.rst:68
72
82
msgid "Test"
73
- msgstr ""
83
+ msgstr "测试 "
0 commit comments