@@ -11,7 +11,7 @@ msgstr ""
11
11
"Report-Msgid-Bugs-To : \n "
12
12
"POT-Creation-Date : 2016-06-03 23:59+0200\n "
13
13
"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
14
- "Last-Translator : FULL NAME <EMAIL@ADDRESS >\n "
14
+ "Last-Translator : David Wan <autoloadone@gmail.com >\n "
15
15
"Language-Team : LANGUAGE <LL@li.org>\n "
16
16
"MIME-Version : 1.0\n "
17
17
"Content-Type : text/plain; charset=utf-8\n "
@@ -20,11 +20,11 @@ msgstr ""
20
20
21
21
#: ../../Behavioral/Memento/README.rst:2
22
22
msgid "`Memento`__"
23
- msgstr ""
23
+ msgstr "`备忘录模式`__ "
24
24
25
25
#: ../../Behavioral/Memento/README.rst:5
26
26
msgid "Purpose"
27
- msgstr ""
27
+ msgstr "目的 "
28
28
29
29
#: ../../Behavioral/Memento/README.rst:7
30
30
msgid ""
@@ -33,12 +33,15 @@ msgid ""
33
33
"revealing it's implementation (i.e., the object is not required to have a"
34
34
" functional for return the current state)."
35
35
msgstr ""
36
+ "它提供了将对象恢复到之前状态(通过回滚撤销)或访问对象状态的能力,"
37
+ "而不需要揭示它的实现(对象不需要具有返回当前状态的函数)。"
36
38
37
39
#: ../../Behavioral/Memento/README.rst:12
38
40
msgid ""
39
41
"The memento pattern is implemented with three objects: the Originator, a "
40
42
"Caretaker and a Memento."
41
43
msgstr ""
44
+ "memento模式由三个对象实现:Originator, Caretaker, Memento。"
42
45
43
46
#: ../../Behavioral/Memento/README.rst:15
44
47
msgid ""
@@ -51,6 +54,11 @@ msgid ""
51
54
"reference* to the original object. The Memento object is a \" opaque "
52
55
"object\" (the object that no one can or should change)."
53
56
msgstr ""
57
+ "Memento – 包含任何对象或资源状态的具体唯一快照的对象:字符串、数字、数组、"
58
+ "类的实例等。 这种情况下的唯一性并不意味着禁止在不同的快照中存在相似的状态。 "
59
+ "这意味着可以将状态提取为独立克隆。 存储在 Memento 中的任何对象都应该是原始对"
60
+ "象的完整副本,而不是对原始对象的引用。 Memento 对象是一个“不透明对象”"
61
+ "(没有人可以或不应该更改的对象)。"
54
62
55
63
#: ../../Behavioral/Memento/README.rst:24
56
64
msgid ""
@@ -63,6 +71,11 @@ msgid ""
63
71
"type of object. Originator may (but not should) have any methods, but "
64
72
"they *they can't make changes to the saved object state*."
65
73
msgstr ""
74
+ "Originator—它是一个包含外部对象实际状态的对象,是严格指定的类型。"
75
+ "Originator能够创建此状态的唯一副本,并将其包裹在Memento中返回。 "
76
+ "Originator不知道变化的历史。 您可以从外部将具体状态设置为Originator,"
77
+ "这将被视为实际状态。 Originator必须确保给定的状态对应于允许的对象类型。"
78
+ "Originator可能(但不应该)有任何方法,但他们不能对保存的对象状态进行更改。"
66
79
67
80
#: ../../Behavioral/Memento/README.rst:33
68
81
msgid ""
@@ -71,38 +84,41 @@ msgid ""
71
84
"Originator; ask from the Originator snapshot of the current state; or set"
72
85
" the Originator state to equivalence with some snapshot from history."
73
86
msgstr ""
87
+ "Caretaker控制着状态的历史。 他可以对一个对象进行更改; 决定在Originator中保存外部对象的状态;"
88
+ "从当前状态的Originator快照中询问; 或将Originator状态设置为与历史记录中的某些快照等效。"
74
89
75
90
#: ../../Behavioral/Memento/README.rst:39
76
91
msgid "Examples"
77
- msgstr ""
92
+ msgstr "例子 "
78
93
79
94
#: ../../Behavioral/Memento/README.rst:41
80
95
msgid "The seed of a pseudorandom number generator"
81
- msgstr ""
96
+ msgstr "发送一个随机数 "
82
97
83
98
#: ../../Behavioral/Memento/README.rst:42
84
99
msgid "The state in a finite state machine"
85
- msgstr ""
100
+ msgstr "并将这个随机数存在时序机中 "
86
101
87
102
#: ../../Behavioral/Memento/README.rst:43
88
103
msgid ""
89
104
"Control for intermediate states of `ORM Model "
90
105
"<http://en.wikipedia.org/wiki/Object-relational_mapping>`_ before saving"
91
106
msgstr ""
107
+ "保存之前控制 ORM Model 中的状态"
92
108
93
109
#: ../../Behavioral/Memento/README.rst:46
94
110
msgid "UML Diagram"
95
- msgstr ""
111
+ msgstr "UML 图 "
96
112
97
113
#: ../../Behavioral/Memento/README.rst:53
98
114
msgid "Code"
99
- msgstr ""
115
+ msgstr "代码 "
100
116
101
117
#: ../../Behavioral/Memento/README.rst:55
102
118
msgid "You can also find this code on `GitHub`_"
103
- msgstr ""
119
+ msgstr "在 `GitHub`_ 上查看代码 "
104
120
105
121
#: ../../Behavioral/Memento/README.rst:76
106
122
msgid "Test"
107
- msgstr ""
123
+ msgstr "测试 "
108
124
0 commit comments