Skip to content

Commit 6b222a2

Browse files
author
Dominik Liebler
authored
Merge pull request DesignPatternsPHP#467 from autoload/main
add Chinese translation of Command Pattern
2 parents 27dc130 + 0cead18 commit 6b222a2

File tree

1 file changed

+19
-9
lines changed
  • locale/zh_CN/LC_MESSAGES/Behavioral/Command

1 file changed

+19
-9
lines changed

locale/zh_CN/LC_MESSAGES/Behavioral/Command/README.po

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ msgstr ""
55
"Report-Msgid-Bugs-To: \n"
66
"POT-Creation-Date: 2015-05-29 12:18+0200\n"
77
"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"
99
"Language-Team: LANGUAGE <LL@li.org>\n"
1010
"MIME-Version: 1.0\n"
1111
"Content-Type: text/plain; charset=UTF-8\n"
1212
"Content-Transfer-Encoding: 8bit\n"
1313

1414
#: ../../Behavioral/Command/README.rst:2
1515
msgid "`Command`__"
16-
msgstr ""
16+
msgstr "`命令行模式`__"
1717

1818
#: ../../Behavioral/Command/README.rst:5
1919
msgid "Purpose"
20-
msgstr ""
20+
msgstr "目的"
2121

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

2626
#: ../../Behavioral/Command/README.rst:9
2727
msgid ""
@@ -31,43 +31,53 @@ msgid ""
3131
"process the Command of the client. The Receiver is decoupled from the "
3232
"Invoker."
3333
msgstr ""
34+
"我们有一个调用器和一个接受器。"
35+
"此模式使用一个【Command】来委托接收器的方法调用,并呈现相同的方法【execute】。"
36+
"调用器只知道调用【execute】来处理客户机的【Command】。从而实现了接收器和调用者的解耦。"
3437

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

4248
#: ../../Behavioral/Command/README.rst:21
4349
msgid "Examples"
44-
msgstr ""
50+
msgstr "例子"
4551

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

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

5969
#: ../../Behavioral/Command/README.rst:32
6070
msgid "UML Diagram"
61-
msgstr ""
71+
msgstr "UML 图"
6272

6373
#: ../../Behavioral/Command/README.rst:39
6474
msgid "Code"
65-
msgstr ""
75+
msgstr "代码"
6676

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

7181
#: ../../Behavioral/Command/README.rst:68
7282
msgid "Test"
73-
msgstr ""
83+
msgstr "测试"

0 commit comments

Comments
 (0)