1
- #
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) 2015, Dominik Liebler and contributors
3
+ # This file is distributed under the same license as the DesignPatternsPHP
4
+ # package.
5
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
6
+ #
7
+ #, fuzzy
2
8
msgid ""
3
9
msgstr ""
4
10
"Project-Id-Version : DesignPatternsPHP 1.0\n "
5
11
"Report-Msgid-Bugs-To : \n "
6
- "POT-Creation-Date : 2015-05-29 12:18 +0200\n "
12
+ "POT-Creation-Date : 2016-06-03 23:59 +0200\n "
7
13
"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
8
14
"Last-Translator : FULL NAME <EMAIL@ADDRESS>\n "
9
15
"
Language-Team :
LANGUAGE <[email protected] >\n "
10
16
"MIME-Version : 1.0\n "
11
- "Content-Type : text/plain; charset=UTF -8\n "
17
+ "Content-Type : text/plain; charset=utf -8\n "
12
18
"Content-Transfer-Encoding : 8bit\n "
19
+ "Generated-By : Babel 2.3.4\n "
13
20
14
21
#: ../../Behavioral/Memento/README.rst:2
15
22
msgid "`Memento`__"
@@ -21,65 +28,97 @@ msgstr ""
21
28
22
29
#: ../../Behavioral/Memento/README.rst:7
23
30
msgid ""
24
- "Provide the ability to restore an object to its previous state (undo via "
25
- "rollback)."
31
+ "It provides the ability to restore an object to it's previous state (undo"
32
+ " via rollback) or to gain access to state of the object, without "
33
+ "revealing it's implementation (i.e., the object is not required to have a"
34
+ " functional for return the current state)."
26
35
msgstr ""
27
36
28
- #: ../../Behavioral/Memento/README.rst:10
37
+ #: ../../Behavioral/Memento/README.rst:12
29
38
msgid ""
30
- "The memento pattern is implemented with three objects: the originator, a "
31
- "caretaker and a memento. The originator is some object that has an internal "
32
- "state. The caretaker is going to do something to the originator, but wants "
33
- "to be able to undo the change. The caretaker first asks the originator for a"
34
- " memento object. Then it does whatever operation (or sequence of operations)"
35
- " it was going to do. To roll back to the state before the operations, it "
36
- "returns the memento object to the originator. The memento object itself is "
37
- "an opaque object (one which the caretaker cannot, or should not, change). "
38
- "When using this pattern, care should be taken if the originator may change "
39
- "other objects or resources - the memento pattern operates on a single "
40
- "object."
41
- msgstr ""
42
-
43
- #: ../../Behavioral/Memento/README.rst:23
39
+ "The memento pattern is implemented with three objects: the Originator, a "
40
+ "Caretaker and a Memento."
41
+ msgstr ""
42
+
43
+ #: ../../Behavioral/Memento/README.rst:15
44
+ msgid ""
45
+ "Memento – an object that *contains a concrete unique snapshot of state* "
46
+ "of any object or resource: string, number, array, an instance of class "
47
+ "and so on. The uniqueness in this case does not imply the prohibition "
48
+ "existence of similar states in different snapshots. That means the state "
49
+ "can be extracted as the independent clone. Any object stored in the "
50
+ "Memento should be *a full copy of the original object rather than a "
51
+ "reference* to the original object. The Memento object is a \" opaque "
52
+ "object\" (the object that no one can or should change)."
53
+ msgstr ""
54
+
55
+ #: ../../Behavioral/Memento/README.rst:24
56
+ msgid ""
57
+ "Originator – it is an object that contains the *actual state of an "
58
+ "external object is strictly specified type*. Originator is able to create"
59
+ " a unique copy of this state and return it wrapped in a Memento. The "
60
+ "Originator does not know the history of changes. You can set a concrete "
61
+ "state to Originator from the outside, which will be considered as actual."
62
+ " The Originator must make sure that given state corresponds the allowed "
63
+ "type of object. Originator may (but not should) have any methods, but "
64
+ "they *they can't make changes to the saved object state*."
65
+ msgstr ""
66
+
67
+ #: ../../Behavioral/Memento/README.rst:33
68
+ msgid ""
69
+ "Caretaker *controls the states history*. He may make changes to an "
70
+ "object; take a decision to save the state of an external object in the "
71
+ "Originator; ask from the Originator snapshot of the current state; or set"
72
+ " the Originator state to equivalence with some snapshot from history."
73
+ msgstr ""
74
+
75
+ #: ../../Behavioral/Memento/README.rst:39
44
76
msgid "Examples"
45
77
msgstr ""
46
78
47
- #: ../../Behavioral/Memento/README.rst:25
79
+ #: ../../Behavioral/Memento/README.rst:41
48
80
msgid "The seed of a pseudorandom number generator"
49
81
msgstr ""
50
82
51
- #: ../../Behavioral/Memento/README.rst:26
83
+ #: ../../Behavioral/Memento/README.rst:42
52
84
msgid "The state in a finite state machine"
53
85
msgstr ""
54
86
55
- #: ../../Behavioral/Memento/README.rst:29
87
+ #: ../../Behavioral/Memento/README.rst:43
88
+ msgid ""
89
+ "Control for intermediate states of `ORM Model "
90
+ "<http://en.wikipedia.org/wiki/Object-relational_mapping>`_ before saving"
91
+ msgstr ""
92
+
93
+ #: ../../Behavioral/Memento/README.rst:46
56
94
msgid "UML Diagram"
57
95
msgstr ""
58
96
59
- #: ../../Behavioral/Memento/README.rst:36
97
+ #: ../../Behavioral/Memento/README.rst:53
60
98
msgid "Code"
61
99
msgstr ""
62
100
63
- #: ../../Behavioral/Memento/README.rst:38
101
+ #: ../../Behavioral/Memento/README.rst:55
64
102
msgid "You can also find these code on `GitHub`_"
65
103
msgstr ""
66
104
67
- #: ../../Behavioral/Memento/README.rst:40
105
+ #: ../../Behavioral/Memento/README.rst:57
68
106
msgid "Memento.php"
69
107
msgstr ""
70
108
71
- #: ../../Behavioral/Memento/README.rst:46
109
+ #: ../../Behavioral/Memento/README.rst:63
72
110
msgid "Originator.php"
73
111
msgstr ""
74
112
75
- #: ../../Behavioral/Memento/README.rst:52
113
+ #: ../../Behavioral/Memento/README.rst:69
76
114
msgid "Caretaker.php"
77
115
msgstr ""
78
116
79
- #: ../../Behavioral/Memento/README.rst:59
117
+ #: ../../Behavioral/Memento/README.rst:76
80
118
msgid "Test"
81
119
msgstr ""
82
120
83
- #: ../../Behavioral/Memento/README.rst:61
121
+ #: ../../Behavioral/Memento/README.rst:78
84
122
msgid "Tests/MementoTest.php"
85
123
msgstr ""
124
+
0 commit comments