@@ -5,37 +5,38 @@ 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/NullObject/README.rst:2
15
15
msgid "`Null Object`__"
16
- msgstr ""
16
+ msgstr "`空对象模式`__ "
17
17
18
18
#: ../../Behavioral/NullObject/README.rst:5
19
19
msgid "Purpose"
20
- msgstr ""
20
+ msgstr "目的 "
21
21
22
22
#: ../../Behavioral/NullObject/README.rst:7
23
23
msgid ""
24
24
"NullObject is not a GoF design pattern but a schema which appears frequently"
25
25
" enough to be considered a pattern. It has the following benefits:"
26
26
msgstr ""
27
+ "空对象模式不是一个GoF设计模式,但是它出现非常频繁足以被认为是设计模式。它的好处如下:"
27
28
28
29
#: ../../Behavioral/NullObject/README.rst:11
29
30
msgid "Client code is simplified"
30
- msgstr ""
31
+ msgstr "简化客户端代码 "
31
32
32
33
#: ../../Behavioral/NullObject/README.rst:12
33
34
msgid "Reduces the chance of null pointer exceptions"
34
- msgstr ""
35
+ msgstr "减少空指针异常的次数 "
35
36
36
37
#: ../../Behavioral/NullObject/README.rst:13
37
38
msgid "Fewer conditionals require less test cases"
38
- msgstr ""
39
+ msgstr "减少测试用例的复杂性 "
39
40
40
41
#: ../../Behavioral/NullObject/README.rst:15
41
42
msgid ""
@@ -45,35 +46,38 @@ msgid ""
45
46
"``$obj->callSomething();`` by eliminating the conditional check in client "
46
47
"code."
47
48
msgstr ""
49
+ "返回一个对象或null的方法应该返回一个对象或NullObject。NullObjects简化了样板代码,"
50
+ "如if (!is_null($obj)) {$obj->callSomething();}只需要$obj->callSomething();"
51
+ "通过消除客户端代码中的条件签入。"
48
52
49
53
#: ../../Behavioral/NullObject/README.rst:22
50
54
msgid "Examples"
51
- msgstr ""
55
+ msgstr "例子 "
52
56
53
57
#: ../../Behavioral/NullObject/README.rst:24
54
58
msgid "Null logger or null output to preserve a standard way of interaction between objects, even if the shouldn't do anything"
55
- msgstr ""
59
+ msgstr "Null logger或Null输出以保持对象之间交互的标准方式,即使他们不做任何事情 "
56
60
57
61
#: ../../Behavioral/NullObject/README.rst:26
58
62
msgid "null handler in a Chain of Responsibilities pattern"
59
- msgstr ""
63
+ msgstr "责任链模式中的空处理程序 "
60
64
61
65
#: ../../Behavioral/NullObject/README.rst:27
62
66
msgid "null command in a Command pattern"
63
- msgstr ""
67
+ msgstr "命令模式中的空命令 "
64
68
65
69
#: ../../Behavioral/NullObject/README.rst:30
66
70
msgid "UML Diagram"
67
- msgstr ""
71
+ msgstr "UML 图 "
68
72
69
73
#: ../../Behavioral/NullObject/README.rst:37
70
74
msgid "Code"
71
- msgstr ""
75
+ msgstr "代码 "
72
76
73
77
#: ../../Behavioral/NullObject/README.rst:39
74
78
msgid "You can also find this code on `GitHub`_"
75
- msgstr ""
79
+ msgstr "在 `GitHub`_ 上查看代码 "
76
80
77
81
#: ../../Behavioral/NullObject/README.rst:66
78
82
msgid "Test"
79
- msgstr ""
83
+ msgstr "测试 "
0 commit comments