From 557ac019b13d61a6641266c8928d75f8c8b2fc9a Mon Sep 17 00:00:00 2001 From: shangguokan Date: Sat, 4 Jun 2016 01:16:55 +0200 Subject: [PATCH] update all .po files --- More/README.rst | 1 + README.md | 1 + README.rst | 2 +- Structural/Flyweight/README.rst | 2 +- Structural/README.md | 1 + Structural/README.rst | 1 + .../LC_MESSAGES/Behavioral/Mediator/README.po | 4 +- .../LC_MESSAGES/Behavioral/Memento/README.po | 113 ++++--- .../ca/LC_MESSAGES/More/Delegation/README.po | 30 +- locale/ca/LC_MESSAGES/More/EAV/README.po | 78 +++++ locale/ca/LC_MESSAGES/README.po | 2 +- .../Structural/Flyweight/README.po | 69 +++++ .../LC_MESSAGES/Structural/Registry/README.po | 4 +- .../LC_MESSAGES/Behavioral/Mediator/README.po | 6 +- .../LC_MESSAGES/Behavioral/Memento/README.po | 253 ++++++++++++---- .../de/LC_MESSAGES/More/Delegation/README.po | 60 ++-- locale/de/LC_MESSAGES/More/EAV/README.po | 78 +++++ locale/de/LC_MESSAGES/README.po | 4 +- .../Structural/Flyweight/README.po | 69 +++++ .../LC_MESSAGES/Structural/Registry/README.po | 6 +- .../LC_MESSAGES/Behavioral/Mediator/README.po | 4 +- .../LC_MESSAGES/Behavioral/Memento/README.po | 200 ++++++++++--- .../es/LC_MESSAGES/More/Delegation/README.po | 30 +- locale/es/LC_MESSAGES/More/EAV/README.po | 78 +++++ locale/es/LC_MESSAGES/README.po | 4 +- .../Structural/Flyweight/README.po | 69 +++++ .../LC_MESSAGES/Structural/Registry/README.po | 4 +- .../LC_MESSAGES/Behavioral/Mediator/README.po | 4 +- .../LC_MESSAGES/Behavioral/Memento/README.po | 200 ++++++++++--- .../LC_MESSAGES/More/Delegation/README.po | 32 +- locale/pt_BR/LC_MESSAGES/More/EAV/README.po | 78 +++++ locale/pt_BR/LC_MESSAGES/README.po | 4 +- .../Structural/Flyweight/README.po | 69 +++++ .../LC_MESSAGES/Structural/Registry/README.po | 4 +- .../LC_MESSAGES/Behavioral/Mediator/README.po | 6 +- .../LC_MESSAGES/Behavioral/Memento/README.po | 282 +++++++++++++----- .../ru/LC_MESSAGES/More/Delegation/README.po | 120 ++++++-- locale/ru/LC_MESSAGES/More/EAV/README.po | 78 +++++ locale/ru/LC_MESSAGES/README.po | 4 +- .../Structural/Flyweight/README.po | 69 +++++ .../LC_MESSAGES/Structural/Registry/README.po | 6 +- .../LC_MESSAGES/Behavioral/Mediator/README.po | 4 +- .../LC_MESSAGES/Behavioral/Memento/README.po | 133 ++++----- .../LC_MESSAGES/More/Delegation/README.po | 45 +-- locale/zh_CN/LC_MESSAGES/More/EAV/README.po | 78 +++++ locale/zh_CN/LC_MESSAGES/README.po | 4 +- .../Structural/Flyweight/README.po | 69 +++++ .../LC_MESSAGES/Structural/Registry/README.po | 4 +- 48 files changed, 2024 insertions(+), 442 deletions(-) create mode 100644 locale/ca/LC_MESSAGES/More/EAV/README.po create mode 100644 locale/ca/LC_MESSAGES/Structural/Flyweight/README.po create mode 100644 locale/de/LC_MESSAGES/More/EAV/README.po create mode 100644 locale/de/LC_MESSAGES/Structural/Flyweight/README.po create mode 100644 locale/es/LC_MESSAGES/More/EAV/README.po create mode 100644 locale/es/LC_MESSAGES/Structural/Flyweight/README.po create mode 100644 locale/pt_BR/LC_MESSAGES/More/EAV/README.po create mode 100644 locale/pt_BR/LC_MESSAGES/Structural/Flyweight/README.po create mode 100644 locale/ru/LC_MESSAGES/More/EAV/README.po create mode 100644 locale/ru/LC_MESSAGES/Structural/Flyweight/README.po create mode 100644 locale/zh_CN/LC_MESSAGES/More/EAV/README.po create mode 100644 locale/zh_CN/LC_MESSAGES/Structural/Flyweight/README.po diff --git a/More/README.rst b/More/README.rst index dbab1f6..a2de938 100644 --- a/More/README.rst +++ b/More/README.rst @@ -7,3 +7,4 @@ More Delegation/README ServiceLocator/README Repository/README + EAV/README diff --git a/README.md b/README.md index a378e35..9f3bef6 100755 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ The patterns can be structured in roughly three different categories. Please cli * [DependencyInjection](Structural/DependencyInjection) [:notebook:](http://en.wikipedia.org/wiki/Dependency_injection) * [Facade](Structural/Facade) [:notebook:](http://en.wikipedia.org/wiki/Facade_pattern) * [FluentInterface](Structural/FluentInterface) [:notebook:](http://en.wikipedia.org/wiki/Fluent_interface) +* [Flyweight](Structural/Flyweight) [:notebook:](https://en.wikipedia.org/wiki/Flyweight_pattern) * [Proxy](Structural/Proxy) [:notebook:](http://en.wikipedia.org/wiki/Proxy_pattern) * [Registry](Structural/Registry) [:notebook:](http://en.wikipedia.org/wiki/Service_locator_pattern) diff --git a/README.rst b/README.rst index 3db54a9..bc32f77 100644 --- a/README.rst +++ b/README.rst @@ -45,7 +45,7 @@ License (The MIT License) -Copyright (c) 2014 `Dominik Liebler`_ and `contributors`_ +Copyright (c) 2011 - 2016 `Dominik Liebler`_ and `contributors`_ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/Structural/Flyweight/README.rst b/Structural/Flyweight/README.rst index 322ebad..dec239b 100644 --- a/Structural/Flyweight/README.rst +++ b/Structural/Flyweight/README.rst @@ -1,5 +1,5 @@ `Flyweight`__ -========== +============= Purpose ------- diff --git a/Structural/README.md b/Structural/README.md index 6def831..40f2c10 100644 --- a/Structural/README.md +++ b/Structural/README.md @@ -12,5 +12,6 @@ entities. * [DependencyInjection](DependencyInjection) [:notebook:](http://en.wikipedia.org/wiki/Dependency_injection) * [Facade](Facade) [:notebook:](http://en.wikipedia.org/wiki/Facade_pattern) * [FluentInterface](FluentInterface) [:notebook:](http://en.wikipedia.org/wiki/Fluent_interface) +* [Flyweight](Flyweight) [:notebook:](https://en.wikipedia.org/wiki/Flyweight_pattern) * [Proxy](Proxy) [:notebook:](http://en.wikipedia.org/wiki/Proxy_pattern) * [Registry](Registry) [:notebook:](http://en.wikipedia.org/wiki/Service_locator_pattern) diff --git a/Structural/README.rst b/Structural/README.rst index fcf7c58..8715963 100644 --- a/Structural/README.rst +++ b/Structural/README.rst @@ -16,6 +16,7 @@ relationships between entities. DependencyInjection/README Facade/README FluentInterface/README + Flyweight/README Proxy/README Registry/README diff --git a/locale/ca/LC_MESSAGES/Behavioral/Mediator/README.po b/locale/ca/LC_MESSAGES/Behavioral/Mediator/README.po index 9c6694b..6474cd1 100644 --- a/locale/ca/LC_MESSAGES/Behavioral/Mediator/README.po +++ b/locale/ca/LC_MESSAGES/Behavioral/Mediator/README.po @@ -21,8 +21,8 @@ msgstr "" #: ../../Behavioral/Mediator/README.rst:7 msgid "" -"This pattern provides an easy to decouple many components working together. " -"It is a good alternative over Observer IF you have a \"central " +"This pattern provides an easy way to decouple many components working " +"together. It is a good alternative to Observer IF you have a \"central " "intelligence\", like a controller (but not in the sense of the MVC)." msgstr "" diff --git a/locale/ca/LC_MESSAGES/Behavioral/Memento/README.po b/locale/ca/LC_MESSAGES/Behavioral/Memento/README.po index 913069a..e92a849 100644 --- a/locale/ca/LC_MESSAGES/Behavioral/Memento/README.po +++ b/locale/ca/LC_MESSAGES/Behavioral/Memento/README.po @@ -1,15 +1,22 @@ -# +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. +# +#, fuzzy msgid "" msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-05-29 12:18+0200\n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" +"Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.3.4\n" #: ../../Behavioral/Memento/README.rst:2 msgid "`Memento`__" @@ -21,65 +28,97 @@ msgstr "" #: ../../Behavioral/Memento/README.rst:7 msgid "" -"Provide the ability to restore an object to its previous state (undo via " -"rollback)." +"It provides the ability to restore an object to it's previous state (undo" +" via rollback) or to gain access to state of the object, without " +"revealing it's implementation (i.e., the object is not required to have a" +" functional for return the current state)." msgstr "" -#: ../../Behavioral/Memento/README.rst:10 +#: ../../Behavioral/Memento/README.rst:12 msgid "" -"The memento pattern is implemented with three objects: the originator, a " -"caretaker and a memento. The originator is some object that has an internal " -"state. The caretaker is going to do something to the originator, but wants " -"to be able to undo the change. The caretaker first asks the originator for a" -" memento object. Then it does whatever operation (or sequence of operations)" -" it was going to do. To roll back to the state before the operations, it " -"returns the memento object to the originator. The memento object itself is " -"an opaque object (one which the caretaker cannot, or should not, change). " -"When using this pattern, care should be taken if the originator may change " -"other objects or resources - the memento pattern operates on a single " -"object." +"The memento pattern is implemented with three objects: the Originator, a " +"Caretaker and a Memento." msgstr "" -#: ../../Behavioral/Memento/README.rst:23 +#: ../../Behavioral/Memento/README.rst:15 +msgid "" +"Memento – an object that *contains a concrete unique snapshot of state* " +"of any object or resource: string, number, array, an instance of class " +"and so on. The uniqueness in this case does not imply the prohibition " +"existence of similar states in different snapshots. That means the state " +"can be extracted as the independent clone. Any object stored in the " +"Memento should be *a full copy of the original object rather than a " +"reference* to the original object. The Memento object is a \"opaque " +"object\" (the object that no one can or should change)." +msgstr "" + +#: ../../Behavioral/Memento/README.rst:24 +msgid "" +"Originator – it is an object that contains the *actual state of an " +"external object is strictly specified type*. Originator is able to create" +" a unique copy of this state and return it wrapped in a Memento. The " +"Originator does not know the history of changes. You can set a concrete " +"state to Originator from the outside, which will be considered as actual." +" The Originator must make sure that given state corresponds the allowed " +"type of object. Originator may (but not should) have any methods, but " +"they *they can't make changes to the saved object state*." +msgstr "" + +#: ../../Behavioral/Memento/README.rst:33 +msgid "" +"Caretaker *controls the states history*. He may make changes to an " +"object; take a decision to save the state of an external object in the " +"Originator; ask from the Originator snapshot of the current state; or set" +" the Originator state to equivalence with some snapshot from history." +msgstr "" + +#: ../../Behavioral/Memento/README.rst:39 msgid "Examples" msgstr "" -#: ../../Behavioral/Memento/README.rst:25 +#: ../../Behavioral/Memento/README.rst:41 msgid "The seed of a pseudorandom number generator" msgstr "" -#: ../../Behavioral/Memento/README.rst:26 +#: ../../Behavioral/Memento/README.rst:42 msgid "The state in a finite state machine" msgstr "" -#: ../../Behavioral/Memento/README.rst:29 -msgid "UML Diagram" -msgstr "" - -#: ../../Behavioral/Memento/README.rst:36 -msgid "Code" -msgstr "" - -#: ../../Behavioral/Memento/README.rst:38 -msgid "You can also find these code on `GitHub`_" -msgstr "" - -#: ../../Behavioral/Memento/README.rst:40 -msgid "Memento.php" +#: ../../Behavioral/Memento/README.rst:43 +msgid "" +"Control for intermediate states of `ORM Model " +"`_ before saving" msgstr "" #: ../../Behavioral/Memento/README.rst:46 +msgid "UML Diagram" +msgstr "" + +#: ../../Behavioral/Memento/README.rst:53 +msgid "Code" +msgstr "" + +#: ../../Behavioral/Memento/README.rst:55 +msgid "You can also find these code on `GitHub`_" +msgstr "" + +#: ../../Behavioral/Memento/README.rst:57 +msgid "Memento.php" +msgstr "" + +#: ../../Behavioral/Memento/README.rst:63 msgid "Originator.php" msgstr "" -#: ../../Behavioral/Memento/README.rst:52 +#: ../../Behavioral/Memento/README.rst:69 msgid "Caretaker.php" msgstr "" -#: ../../Behavioral/Memento/README.rst:59 +#: ../../Behavioral/Memento/README.rst:76 msgid "Test" msgstr "" -#: ../../Behavioral/Memento/README.rst:61 +#: ../../Behavioral/Memento/README.rst:78 msgid "Tests/MementoTest.php" msgstr "" + diff --git a/locale/ca/LC_MESSAGES/More/Delegation/README.po b/locale/ca/LC_MESSAGES/More/Delegation/README.po index 169e8fd..ac259f0 100644 --- a/locale/ca/LC_MESSAGES/More/Delegation/README.po +++ b/locale/ca/LC_MESSAGES/More/Delegation/README.po @@ -1,15 +1,22 @@ -# +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. +# +#, fuzzy msgid "" msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-05-29 12:18+0200\n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" +"Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.3.4\n" #: ../../More/Delegation/README.rst:2 msgid "`Delegation`__" @@ -19,14 +26,26 @@ msgstr "" msgid "Purpose" msgstr "" -#: ../../More/Delegation/README.rst:7 ../../More/Delegation/README.rst:12 -msgid "..." +#: ../../More/Delegation/README.rst:7 +msgid "" +"Demonstrate the Delegator pattern, where an object, instead of performing" +" one of its stated tasks, delegates that task to an associated helper " +"object. In this case TeamLead professes to writeCode and Usage uses this," +" while TeamLead delegates writeCode to JuniorDeveloper's writeBadCode " +"function. This inverts the responsibility so that Usage is unknowingly " +"executing writeBadCode." msgstr "" #: ../../More/Delegation/README.rst:10 msgid "Examples" msgstr "" +#: ../../More/Delegation/README.rst:12 +msgid "" +"Please review JuniorDeveloper.php, TeamLead.php, and then Usage.php to " +"see it all tied together." +msgstr "" + #: ../../More/Delegation/README.rst:15 msgid "UML Diagram" msgstr "" @@ -58,3 +77,4 @@ msgstr "" #: ../../More/Delegation/README.rst:47 msgid "Tests/DelegationTest.php" msgstr "" + diff --git a/locale/ca/LC_MESSAGES/More/EAV/README.po b/locale/ca/LC_MESSAGES/More/EAV/README.po new file mode 100644 index 0000000..c101913 --- /dev/null +++ b/locale/ca/LC_MESSAGES/More/EAV/README.po @@ -0,0 +1,78 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: DesignPatternsPHP 1.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.3.4\n" + +#: ../../More/EAV/README.rst:2 +msgid "`Entity-Attribute-Value (EAV)`__" +msgstr "" + +#: ../../More/EAV/README.rst:4 +msgid "" +"The Entity–attribute–value (EAV) pattern in order to implement EAV model " +"with PHP." +msgstr "" + +#: ../../More/EAV/README.rst:7 +msgid "Purpose" +msgstr "" + +#: ../../More/EAV/README.rst:9 +msgid "" +"The Entity–attribute–value (EAV) model is a data model to describe " +"entities where the number of attributes (properties, parameters) that can" +" be used to describe them is potentially vast, but the number that will " +"actually apply to a given entity is relatively modest." +msgstr "" + +#: ../../More/EAV/README.rst:15 +msgid "Examples" +msgstr "" + +#: ../../More/EAV/README.rst:17 +msgid "Check full work example in `example.php`_ file." +msgstr "" + +#: ../../More/EAV/README.rst:90 +msgid "UML Diagram" +msgstr "" + +#: ../../More/EAV/README.rst:97 +msgid "Code" +msgstr "" + +#: ../../More/EAV/README.rst:99 +msgid "You can also find these code on `GitHub`_" +msgstr "" + +#: ../../More/EAV/README.rst:102 +msgid "Test" +msgstr "" + +#: ../../More/EAV/README.rst:104 +msgid "Tests/EntityTest.php" +msgstr "" + +#: ../../More/EAV/README.rst:110 +msgid "Tests/AttributeTest.php" +msgstr "" + +#: ../../More/EAV/README.rst:116 +msgid "Tests/ValueTest.php" +msgstr "" + diff --git a/locale/ca/LC_MESSAGES/README.po b/locale/ca/LC_MESSAGES/README.po index 3a26db2..8588590 100644 --- a/locale/ca/LC_MESSAGES/README.po +++ b/locale/ca/LC_MESSAGES/README.po @@ -62,7 +62,7 @@ msgid "(The MIT License)" msgstr "" #: ../../README.rst:48 -msgid "Copyright (c) 2014 `Dominik Liebler`_ and `contributors`_" +msgid "Copyright (c) 2011 - 2016 `Dominik Liebler`_ and `contributors`_" msgstr "" #: ../../README.rst:50 diff --git a/locale/ca/LC_MESSAGES/Structural/Flyweight/README.po b/locale/ca/LC_MESSAGES/Structural/Flyweight/README.po new file mode 100644 index 0000000..9a8b771 --- /dev/null +++ b/locale/ca/LC_MESSAGES/Structural/Flyweight/README.po @@ -0,0 +1,69 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: DesignPatternsPHP 1.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.3.4\n" + +#: ../../Structural/Flyweight/README.rst:2 +msgid "`Flyweight`__" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:5 +msgid "Purpose" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:7 +msgid "" +"To minimise memory usage, a Flyweight shares as much as possible memory " +"with similar objects. It is needed when a large amount of objects is used" +" that don't differ much in state. A common practice is to hold state in " +"external data structures and pass them to the flyweight object when " +"needed." +msgstr "" + +#: ../../Structural/Flyweight/README.rst:12 +msgid "UML Diagram" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:19 +msgid "Code" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:21 +msgid "You can also find these code on `GitHub`_" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:23 +msgid "FlyweightInterface.php" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:29 +msgid "CharacterFlyweight.php" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:35 +msgid "FlyweightFactory.php" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:42 +msgid "Test" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:44 +msgid "Tests/FlyweightTest.php" +msgstr "" + diff --git a/locale/ca/LC_MESSAGES/Structural/Registry/README.po b/locale/ca/LC_MESSAGES/Structural/Registry/README.po index 843138c..ddc6079 100644 --- a/locale/ca/LC_MESSAGES/Structural/Registry/README.po +++ b/locale/ca/LC_MESSAGES/Structural/Registry/README.po @@ -32,8 +32,8 @@ msgstr "" #: ../../Structural/Registry/README.rst:14 msgid "" -"Zend Framework: ``Zend_Registry`` holds the application's logger object, " -"front controller etc." +"Zend Framework 1: ``Zend_Registry`` holds the application's logger " +"object, front controller etc." msgstr "" #: ../../Structural/Registry/README.rst:16 diff --git a/locale/de/LC_MESSAGES/Behavioral/Mediator/README.po b/locale/de/LC_MESSAGES/Behavioral/Mediator/README.po index 7735326..bd3e76a 100644 --- a/locale/de/LC_MESSAGES/Behavioral/Mediator/README.po +++ b/locale/de/LC_MESSAGES/Behavioral/Mediator/README.po @@ -23,9 +23,9 @@ msgstr "Zweck" #: ../../Behavioral/Mediator/README.rst:7 msgid "" -"This pattern provides an easy to decouple many components working together. It is a good " -"alternative over Observer IF you have a \"central intelligence\", like a controller (but not in the " -"sense of the MVC)." +"This pattern provides an easy way to decouple many components working " +"together. It is a good alternative to Observer IF you have a \"central " +"intelligence\", like a controller (but not in the sense of the MVC)." msgstr "" "Dieses Muster bietet eine einfache Möglichkeit, viele, miteinander arbeitende Komponenten zu " "entkoppeln. Es ist eine gute Alternative für das Observer-Pattern, wenn du eine „zentrale " diff --git a/locale/de/LC_MESSAGES/Behavioral/Memento/README.po b/locale/de/LC_MESSAGES/Behavioral/Memento/README.po index 9bbe94b..aa8752f 100644 --- a/locale/de/LC_MESSAGES/Behavioral/Memento/README.po +++ b/locale/de/LC_MESSAGES/Behavioral/Memento/README.po @@ -1,100 +1,225 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. # +#, fuzzy msgid "" msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-05-29 12:18+0200\n" -"PO-Revision-Date: 2016-04-03 12:52+0200\n" -"Last-Translator: Dominik Liebler \n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" +"Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: de\n" -"Language-Team: \n" -"X-Generator: Poedit 1.8.7\n" +"Generated-By: Babel 2.3.4\n" #: ../../Behavioral/Memento/README.rst:2 msgid "`Memento`__" -msgstr "`Memento`__" +msgstr "" #: ../../Behavioral/Memento/README.rst:5 msgid "Purpose" -msgstr "Zweck" +msgstr "" #: ../../Behavioral/Memento/README.rst:7 msgid "" -"Provide the ability to restore an object to its previous state (undo via " -"rollback)." +"It provides the ability to restore an object to it's previous state (undo" +" via rollback) or to gain access to state of the object, without " +"revealing it's implementation (i.e., the object is not required to have a" +" functional for return the current state)." msgstr "" -"Bietet die Möglichkeit, einen Objektzustand zu einem vorigen Zustand " -"zurückzusetzen (mit Hilfe eines Rollbacks)." -#: ../../Behavioral/Memento/README.rst:10 +#: ../../Behavioral/Memento/README.rst:12 msgid "" -"The memento pattern is implemented with three objects: the originator, a " -"caretaker and a memento. The originator is some object that has an internal " -"state. The caretaker is going to do something to the originator, but wants to " -"be able to undo the change. The caretaker first asks the originator for a " -"memento object. Then it does whatever operation (or sequence of operations) it " -"was going to do. To roll back to the state before the operations, it returns " -"the memento object to the originator. The memento object itself is an opaque " -"object (one which the caretaker cannot, or should not, change). When using " -"this pattern, care should be taken if the originator may change other objects " -"or resources - the memento pattern operates on a single object." +"The memento pattern is implemented with three objects: the Originator, a " +"Caretaker and a Memento." msgstr "" -"Das Memento-Muster wird mit Hilfe von drei Objekten implementiert: der " -"Originalton, ein Caretaker und das Memento. Der Originalton ist ein Objekt, " -"das einen internen State besitzt. Der Caretaker wird etwas mit dem Originalton " -"machen, aber möchte evtl. diese Änderung auch rückgängig machen wollen. Der " -"Caretaker fragt den Originalton zuerst nach dem Memento-Objekt. Dann wird die " -"angefragte Operation (oder Sequenz von Änderungen) ausgeführt. Um diese " -"Änderung zurückzurollen, wird das Memento-Objekt an den Originalton " -"zurückgegeben. Das Memento-Objekt selbst ist intransparent, so dass der " -"Caretaker selbstständig keine Änderungen am Objekt durchführen kann. Bei der " -"Implementierung dieses Musters ist darauf zu achten, dass der Originator auch " -"Seiteneffekte auslösen kann, das Pattern aber nur auf einem einzelnen Objekt " -"operiert." -#: ../../Behavioral/Memento/README.rst:23 +#: ../../Behavioral/Memento/README.rst:15 +msgid "" +"Memento – an object that *contains a concrete unique snapshot of state* " +"of any object or resource: string, number, array, an instance of class " +"and so on. The uniqueness in this case does not imply the prohibition " +"existence of similar states in different snapshots. That means the state " +"can be extracted as the independent clone. Any object stored in the " +"Memento should be *a full copy of the original object rather than a " +"reference* to the original object. The Memento object is a \"opaque " +"object\" (the object that no one can or should change)." +msgstr "" + +#: ../../Behavioral/Memento/README.rst:24 +msgid "" +"Originator – it is an object that contains the *actual state of an " +"external object is strictly specified type*. Originator is able to create" +" a unique copy of this state and return it wrapped in a Memento. The " +"Originator does not know the history of changes. You can set a concrete " +"state to Originator from the outside, which will be considered as actual." +" The Originator must make sure that given state corresponds the allowed " +"type of object. Originator may (but not should) have any methods, but " +"they *they can't make changes to the saved object state*." +msgstr "" + +#: ../../Behavioral/Memento/README.rst:33 +msgid "" +"Caretaker *controls the states history*. He may make changes to an " +"object; take a decision to save the state of an external object in the " +"Originator; ask from the Originator snapshot of the current state; or set" +" the Originator state to equivalence with some snapshot from history." +msgstr "" + +#: ../../Behavioral/Memento/README.rst:39 msgid "Examples" -msgstr "Beispiele" +msgstr "" -#: ../../Behavioral/Memento/README.rst:25 +#: ../../Behavioral/Memento/README.rst:41 msgid "The seed of a pseudorandom number generator" -msgstr "Das seeden eines Pseudozufallszahlengenerators" +msgstr "" -#: ../../Behavioral/Memento/README.rst:26 +#: ../../Behavioral/Memento/README.rst:42 msgid "The state in a finite state machine" -msgstr "Der State in einer FSM (Finite State Machine)" +msgstr "" -#: ../../Behavioral/Memento/README.rst:29 -msgid "UML Diagram" -msgstr "UML-Diagramm" - -#: ../../Behavioral/Memento/README.rst:36 -msgid "Code" -msgstr "Code" - -#: ../../Behavioral/Memento/README.rst:38 -msgid "You can also find these code on `GitHub`_" -msgstr "Du findest den Code hierzu auf `GitHub`_" - -#: ../../Behavioral/Memento/README.rst:40 -msgid "Memento.php" -msgstr "Memento.php" +#: ../../Behavioral/Memento/README.rst:43 +msgid "" +"Control for intermediate states of `ORM Model " +"`_ before saving" +msgstr "" #: ../../Behavioral/Memento/README.rst:46 +msgid "UML Diagram" +msgstr "" + +#: ../../Behavioral/Memento/README.rst:53 +msgid "Code" +msgstr "" + +#: ../../Behavioral/Memento/README.rst:55 +msgid "You can also find these code on `GitHub`_" +msgstr "" + +#: ../../Behavioral/Memento/README.rst:57 +msgid "Memento.php" +msgstr "" + +#: ../../Behavioral/Memento/README.rst:63 msgid "Originator.php" -msgstr "Originator.php" +msgstr "" -#: ../../Behavioral/Memento/README.rst:52 +#: ../../Behavioral/Memento/README.rst:69 msgid "Caretaker.php" -msgstr "Caretaker.php" +msgstr "" -#: ../../Behavioral/Memento/README.rst:59 +#: ../../Behavioral/Memento/README.rst:76 msgid "Test" -msgstr "Test" +msgstr "" -#: ../../Behavioral/Memento/README.rst:61 +#: ../../Behavioral/Memento/README.rst:78 msgid "Tests/MementoTest.php" -msgstr "Tests/MementoTest.php" +msgstr "" + + +#. # +#. msgid "" +#. msgstr "" +#. "Project-Id-Version: DesignPatternsPHP 1.0\n" +#. "Report-Msgid-Bugs-To: \n" +#. "POT-Creation-Date: 2015-05-29 12:18+0200\n" +#. "PO-Revision-Date: 2016-04-03 12:52+0200\n" +#. "Last-Translator: Dominik Liebler \n" +#. "MIME-Version: 1.0\n" +#. "Content-Type: text/plain; charset=UTF-8\n" +#. "Content-Transfer-Encoding: 8bit\n" +#. "Language: de\n" +#. "Language-Team: \n" +#. "X-Generator: Poedit 1.8.7\n" +#. +#. #: ../../Behavioral/Memento/README.rst:2 +#. msgid "`Memento`__" +#. msgstr "`Memento`__" +#. +#. #: ../../Behavioral/Memento/README.rst:5 +#. msgid "Purpose" +#. msgstr "Zweck" +#. +#. #: ../../Behavioral/Memento/README.rst:7 +#. msgid "" +#. "Provide the ability to restore an object to its previous state (undo via " +#. "rollback)." +#. msgstr "" +#. "Bietet die Möglichkeit, einen Objektzustand zu einem vorigen Zustand " +#. "zurückzusetzen (mit Hilfe eines Rollbacks)." +#. +#. #: ../../Behavioral/Memento/README.rst:10 +#. msgid "" +#. "The memento pattern is implemented with three objects: the originator, a " +#. "caretaker and a memento. The originator is some object that has an internal " +#. "state. The caretaker is going to do something to the originator, but wants to " +#. "be able to undo the change. The caretaker first asks the originator for a " +#. "memento object. Then it does whatever operation (or sequence of operations) it " +#. "was going to do. To roll back to the state before the operations, it returns " +#. "the memento object to the originator. The memento object itself is an opaque " +#. "object (one which the caretaker cannot, or should not, change). When using " +#. "this pattern, care should be taken if the originator may change other objects " +#. "or resources - the memento pattern operates on a single object." +#. msgstr "" +#. "Das Memento-Muster wird mit Hilfe von drei Objekten implementiert: der " +#. "Originalton, ein Caretaker und das Memento. Der Originalton ist ein Objekt, " +#. "das einen internen State besitzt. Der Caretaker wird etwas mit dem Originalton " +#. "machen, aber möchte evtl. diese Änderung auch rückgängig machen wollen. Der " +#. "Caretaker fragt den Originalton zuerst nach dem Memento-Objekt. Dann wird die " +#. "angefragte Operation (oder Sequenz von Änderungen) ausgeführt. Um diese " +#. "Änderung zurückzurollen, wird das Memento-Objekt an den Originalton " +#. "zurückgegeben. Das Memento-Objekt selbst ist intransparent, so dass der " +#. "Caretaker selbstständig keine Änderungen am Objekt durchführen kann. Bei der " +#. "Implementierung dieses Musters ist darauf zu achten, dass der Originator auch " +#. "Seiteneffekte auslösen kann, das Pattern aber nur auf einem einzelnen Objekt " +#. "operiert." +#. +#. #: ../../Behavioral/Memento/README.rst:23 +#. msgid "Examples" +#. msgstr "Beispiele" +#. +#. #: ../../Behavioral/Memento/README.rst:25 +#. msgid "The seed of a pseudorandom number generator" +#. msgstr "Das seeden eines Pseudozufallszahlengenerators" +#. +#. #: ../../Behavioral/Memento/README.rst:26 +#. msgid "The state in a finite state machine" +#. msgstr "Der State in einer FSM (Finite State Machine)" +#. +#. #: ../../Behavioral/Memento/README.rst:29 +#. msgid "UML Diagram" +#. msgstr "UML-Diagramm" +#. +#. #: ../../Behavioral/Memento/README.rst:36 +#. msgid "Code" +#. msgstr "Code" +#. +#. #: ../../Behavioral/Memento/README.rst:38 +#. msgid "You can also find these code on `GitHub`_" +#. msgstr "Du findest den Code hierzu auf `GitHub`_" +#. +#. #: ../../Behavioral/Memento/README.rst:40 +#. msgid "Memento.php" +#. msgstr "Memento.php" +#. +#. #: ../../Behavioral/Memento/README.rst:46 +#. msgid "Originator.php" +#. msgstr "Originator.php" +#. +#. #: ../../Behavioral/Memento/README.rst:52 +#. msgid "Caretaker.php" +#. msgstr "Caretaker.php" +#. +#. #: ../../Behavioral/Memento/README.rst:59 +#. msgid "Test" +#. msgstr "Test" +#. +#. #: ../../Behavioral/Memento/README.rst:61 +#. msgid "Tests/MementoTest.php" +#. msgstr "Tests/MementoTest.php" diff --git a/locale/de/LC_MESSAGES/More/Delegation/README.po b/locale/de/LC_MESSAGES/More/Delegation/README.po index be8af51..ac259f0 100644 --- a/locale/de/LC_MESSAGES/More/Delegation/README.po +++ b/locale/de/LC_MESSAGES/More/Delegation/README.po @@ -1,62 +1,80 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. # +#, fuzzy msgid "" msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-05-29 12:18+0200\n" -"PO-Revision-Date: 2016-04-04 08:05+0200\n" -"Last-Translator: Dominik Liebler \n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" +"Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: de\n" -"Language-Team: \n" -"X-Generator: Poedit 1.8.7.1\n" +"Generated-By: Babel 2.3.4\n" #: ../../More/Delegation/README.rst:2 msgid "`Delegation`__" -msgstr "`Delegation`__" +msgstr "" #: ../../More/Delegation/README.rst:5 msgid "Purpose" -msgstr "Zweck" +msgstr "" -#: ../../More/Delegation/README.rst:7 ../../More/Delegation/README.rst:12 -msgid "..." -msgstr "..." +#: ../../More/Delegation/README.rst:7 +msgid "" +"Demonstrate the Delegator pattern, where an object, instead of performing" +" one of its stated tasks, delegates that task to an associated helper " +"object. In this case TeamLead professes to writeCode and Usage uses this," +" while TeamLead delegates writeCode to JuniorDeveloper's writeBadCode " +"function. This inverts the responsibility so that Usage is unknowingly " +"executing writeBadCode." +msgstr "" #: ../../More/Delegation/README.rst:10 msgid "Examples" -msgstr "Beispiele" +msgstr "" + +#: ../../More/Delegation/README.rst:12 +msgid "" +"Please review JuniorDeveloper.php, TeamLead.php, and then Usage.php to " +"see it all tied together." +msgstr "" #: ../../More/Delegation/README.rst:15 msgid "UML Diagram" -msgstr "UML Diagramm" +msgstr "" #: ../../More/Delegation/README.rst:22 msgid "Code" -msgstr "Code" +msgstr "" #: ../../More/Delegation/README.rst:24 msgid "You can also find these code on `GitHub`_" -msgstr "Du findest den Code auch auf `GitHub`_" +msgstr "" #: ../../More/Delegation/README.rst:26 msgid "Usage.php" -msgstr "Usage.php" +msgstr "" #: ../../More/Delegation/README.rst:32 msgid "TeamLead.php" -msgstr "TeamLead.php" +msgstr "" #: ../../More/Delegation/README.rst:38 msgid "JuniorDeveloper.php" -msgstr "JuniorDeveloper.php" +msgstr "" #: ../../More/Delegation/README.rst:45 msgid "Test" -msgstr "Теst" +msgstr "" #: ../../More/Delegation/README.rst:47 msgid "Tests/DelegationTest.php" -msgstr "Tests/DelegationTest.php" +msgstr "" + diff --git a/locale/de/LC_MESSAGES/More/EAV/README.po b/locale/de/LC_MESSAGES/More/EAV/README.po new file mode 100644 index 0000000..c101913 --- /dev/null +++ b/locale/de/LC_MESSAGES/More/EAV/README.po @@ -0,0 +1,78 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: DesignPatternsPHP 1.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.3.4\n" + +#: ../../More/EAV/README.rst:2 +msgid "`Entity-Attribute-Value (EAV)`__" +msgstr "" + +#: ../../More/EAV/README.rst:4 +msgid "" +"The Entity–attribute–value (EAV) pattern in order to implement EAV model " +"with PHP." +msgstr "" + +#: ../../More/EAV/README.rst:7 +msgid "Purpose" +msgstr "" + +#: ../../More/EAV/README.rst:9 +msgid "" +"The Entity–attribute–value (EAV) model is a data model to describe " +"entities where the number of attributes (properties, parameters) that can" +" be used to describe them is potentially vast, but the number that will " +"actually apply to a given entity is relatively modest." +msgstr "" + +#: ../../More/EAV/README.rst:15 +msgid "Examples" +msgstr "" + +#: ../../More/EAV/README.rst:17 +msgid "Check full work example in `example.php`_ file." +msgstr "" + +#: ../../More/EAV/README.rst:90 +msgid "UML Diagram" +msgstr "" + +#: ../../More/EAV/README.rst:97 +msgid "Code" +msgstr "" + +#: ../../More/EAV/README.rst:99 +msgid "You can also find these code on `GitHub`_" +msgstr "" + +#: ../../More/EAV/README.rst:102 +msgid "Test" +msgstr "" + +#: ../../More/EAV/README.rst:104 +msgid "Tests/EntityTest.php" +msgstr "" + +#: ../../More/EAV/README.rst:110 +msgid "Tests/AttributeTest.php" +msgstr "" + +#: ../../More/EAV/README.rst:116 +msgid "Tests/ValueTest.php" +msgstr "" + diff --git a/locale/de/LC_MESSAGES/README.po b/locale/de/LC_MESSAGES/README.po index 3eb7c9c..3cd8baa 100644 --- a/locale/de/LC_MESSAGES/README.po +++ b/locale/de/LC_MESSAGES/README.po @@ -67,8 +67,8 @@ msgid "(The MIT License)" msgstr "(The MIT License)" #: ../../README.rst:48 -msgid "Copyright (c) 2014 `Dominik Liebler`_ and `contributors`_" -msgstr "Copyright (c) 2014 `Dominik Liebler`_ and `contributors`_" +msgid "Copyright (c) 2011 - 2016 `Dominik Liebler`_ and `contributors`_" +msgstr "Copyright (c) 2011 - 2016 `Dominik Liebler`_ and `contributors`_" #: ../../README.rst:50 msgid "" diff --git a/locale/de/LC_MESSAGES/Structural/Flyweight/README.po b/locale/de/LC_MESSAGES/Structural/Flyweight/README.po new file mode 100644 index 0000000..9a8b771 --- /dev/null +++ b/locale/de/LC_MESSAGES/Structural/Flyweight/README.po @@ -0,0 +1,69 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: DesignPatternsPHP 1.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.3.4\n" + +#: ../../Structural/Flyweight/README.rst:2 +msgid "`Flyweight`__" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:5 +msgid "Purpose" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:7 +msgid "" +"To minimise memory usage, a Flyweight shares as much as possible memory " +"with similar objects. It is needed when a large amount of objects is used" +" that don't differ much in state. A common practice is to hold state in " +"external data structures and pass them to the flyweight object when " +"needed." +msgstr "" + +#: ../../Structural/Flyweight/README.rst:12 +msgid "UML Diagram" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:19 +msgid "Code" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:21 +msgid "You can also find these code on `GitHub`_" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:23 +msgid "FlyweightInterface.php" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:29 +msgid "CharacterFlyweight.php" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:35 +msgid "FlyweightFactory.php" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:42 +msgid "Test" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:44 +msgid "Tests/FlyweightTest.php" +msgstr "" + diff --git a/locale/de/LC_MESSAGES/Structural/Registry/README.po b/locale/de/LC_MESSAGES/Structural/Registry/README.po index b890133..648c0aa 100644 --- a/locale/de/LC_MESSAGES/Structural/Registry/README.po +++ b/locale/de/LC_MESSAGES/Structural/Registry/README.po @@ -38,10 +38,10 @@ msgstr "Beispiele" #: ../../Structural/Registry/README.rst:14 msgid "" -"Zend Framework: ``Zend_Registry`` holds the application's logger object, " -"front controller etc." +"Zend Framework 1: ``Zend_Registry`` holds the application's logger " +"object, front controller etc." msgstr "" -"Zend Framework: ``Zend_Registry`` hält die zentralen Objekte der " +"Zend Framework 1: ``Zend_Registry`` hält die zentralen Objekte der " "Anwendung: z.B. Logger oder Front Controller" #: ../../Structural/Registry/README.rst:16 diff --git a/locale/es/LC_MESSAGES/Behavioral/Mediator/README.po b/locale/es/LC_MESSAGES/Behavioral/Mediator/README.po index 9c6694b..6474cd1 100644 --- a/locale/es/LC_MESSAGES/Behavioral/Mediator/README.po +++ b/locale/es/LC_MESSAGES/Behavioral/Mediator/README.po @@ -21,8 +21,8 @@ msgstr "" #: ../../Behavioral/Mediator/README.rst:7 msgid "" -"This pattern provides an easy to decouple many components working together. " -"It is a good alternative over Observer IF you have a \"central " +"This pattern provides an easy way to decouple many components working " +"together. It is a good alternative to Observer IF you have a \"central " "intelligence\", like a controller (but not in the sense of the MVC)." msgstr "" diff --git a/locale/es/LC_MESSAGES/Behavioral/Memento/README.po b/locale/es/LC_MESSAGES/Behavioral/Memento/README.po index 913069a..9aa14bc 100644 --- a/locale/es/LC_MESSAGES/Behavioral/Memento/README.po +++ b/locale/es/LC_MESSAGES/Behavioral/Memento/README.po @@ -1,15 +1,22 @@ -# +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. +# +#, fuzzy msgid "" msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-05-29 12:18+0200\n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" +"Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.3.4\n" #: ../../Behavioral/Memento/README.rst:2 msgid "`Memento`__" @@ -21,65 +28,184 @@ msgstr "" #: ../../Behavioral/Memento/README.rst:7 msgid "" -"Provide the ability to restore an object to its previous state (undo via " -"rollback)." +"It provides the ability to restore an object to it's previous state (undo" +" via rollback) or to gain access to state of the object, without " +"revealing it's implementation (i.e., the object is not required to have a" +" functional for return the current state)." msgstr "" -#: ../../Behavioral/Memento/README.rst:10 +#: ../../Behavioral/Memento/README.rst:12 msgid "" -"The memento pattern is implemented with three objects: the originator, a " -"caretaker and a memento. The originator is some object that has an internal " -"state. The caretaker is going to do something to the originator, but wants " -"to be able to undo the change. The caretaker first asks the originator for a" -" memento object. Then it does whatever operation (or sequence of operations)" -" it was going to do. To roll back to the state before the operations, it " -"returns the memento object to the originator. The memento object itself is " -"an opaque object (one which the caretaker cannot, or should not, change). " -"When using this pattern, care should be taken if the originator may change " -"other objects or resources - the memento pattern operates on a single " -"object." +"The memento pattern is implemented with three objects: the Originator, a " +"Caretaker and a Memento." msgstr "" -#: ../../Behavioral/Memento/README.rst:23 +#: ../../Behavioral/Memento/README.rst:15 +msgid "" +"Memento – an object that *contains a concrete unique snapshot of state* " +"of any object or resource: string, number, array, an instance of class " +"and so on. The uniqueness in this case does not imply the prohibition " +"existence of similar states in different snapshots. That means the state " +"can be extracted as the independent clone. Any object stored in the " +"Memento should be *a full copy of the original object rather than a " +"reference* to the original object. The Memento object is a \"opaque " +"object\" (the object that no one can or should change)." +msgstr "" + +#: ../../Behavioral/Memento/README.rst:24 +msgid "" +"Originator – it is an object that contains the *actual state of an " +"external object is strictly specified type*. Originator is able to create" +" a unique copy of this state and return it wrapped in a Memento. The " +"Originator does not know the history of changes. You can set a concrete " +"state to Originator from the outside, which will be considered as actual." +" The Originator must make sure that given state corresponds the allowed " +"type of object. Originator may (but not should) have any methods, but " +"they *they can't make changes to the saved object state*." +msgstr "" + +#: ../../Behavioral/Memento/README.rst:33 +msgid "" +"Caretaker *controls the states history*. He may make changes to an " +"object; take a decision to save the state of an external object in the " +"Originator; ask from the Originator snapshot of the current state; or set" +" the Originator state to equivalence with some snapshot from history." +msgstr "" + +#: ../../Behavioral/Memento/README.rst:39 msgid "Examples" msgstr "" -#: ../../Behavioral/Memento/README.rst:25 +#: ../../Behavioral/Memento/README.rst:41 msgid "The seed of a pseudorandom number generator" msgstr "" -#: ../../Behavioral/Memento/README.rst:26 +#: ../../Behavioral/Memento/README.rst:42 msgid "The state in a finite state machine" msgstr "" -#: ../../Behavioral/Memento/README.rst:29 -msgid "UML Diagram" -msgstr "" - -#: ../../Behavioral/Memento/README.rst:36 -msgid "Code" -msgstr "" - -#: ../../Behavioral/Memento/README.rst:38 -msgid "You can also find these code on `GitHub`_" -msgstr "" - -#: ../../Behavioral/Memento/README.rst:40 -msgid "Memento.php" +#: ../../Behavioral/Memento/README.rst:43 +msgid "" +"Control for intermediate states of `ORM Model " +"`_ before saving" msgstr "" #: ../../Behavioral/Memento/README.rst:46 +msgid "UML Diagram" +msgstr "" + +#: ../../Behavioral/Memento/README.rst:53 +msgid "Code" +msgstr "" + +#: ../../Behavioral/Memento/README.rst:55 +msgid "You can also find these code on `GitHub`_" +msgstr "" + +#: ../../Behavioral/Memento/README.rst:57 +msgid "Memento.php" +msgstr "" + +#: ../../Behavioral/Memento/README.rst:63 msgid "Originator.php" msgstr "" -#: ../../Behavioral/Memento/README.rst:52 +#: ../../Behavioral/Memento/README.rst:69 msgid "Caretaker.php" msgstr "" -#: ../../Behavioral/Memento/README.rst:59 +#: ../../Behavioral/Memento/README.rst:76 msgid "Test" msgstr "" -#: ../../Behavioral/Memento/README.rst:61 +#: ../../Behavioral/Memento/README.rst:78 msgid "Tests/MementoTest.php" msgstr "" + + + +#. # +#. msgid "" +#. msgstr "" +#. "Project-Id-Version: DesignPatternsPHP 1.0\n" +#. "Report-Msgid-Bugs-To: \n" +#. "POT-Creation-Date: 2015-05-29 12:18+0200\n" +#. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +#. "Last-Translator: FULL NAME \n" +#. "Language-Team: LANGUAGE \n" +#. "MIME-Version: 1.0\n" +#. "Content-Type: text/plain; charset=UTF-8\n" +#. "Content-Transfer-Encoding: 8bit\n" +#. +#. #: ../../Behavioral/Memento/README.rst:2 +#. msgid "`Memento`__" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:5 +#. msgid "Purpose" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:7 +#. msgid "" +#. "Provide the ability to restore an object to its previous state (undo via " +#. "rollback)." +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:10 +#. msgid "" +#. "The memento pattern is implemented with three objects: the originator, a " +#. "caretaker and a memento. The originator is some object that has an internal " +#. "state. The caretaker is going to do something to the originator, but wants " +#. "to be able to undo the change. The caretaker first asks the originator for a" +#. " memento object. Then it does whatever operation (or sequence of operations)" +#. " it was going to do. To roll back to the state before the operations, it " +#. "returns the memento object to the originator. The memento object itself is " +#. "an opaque object (one which the caretaker cannot, or should not, change). " +#. "When using this pattern, care should be taken if the originator may change " +#. "other objects or resources - the memento pattern operates on a single " +#. "object." +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:23 +#. msgid "Examples" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:25 +#. msgid "The seed of a pseudorandom number generator" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:26 +#. msgid "The state in a finite state machine" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:29 +#. msgid "UML Diagram" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:36 +#. msgid "Code" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:38 +#. msgid "You can also find these code on `GitHub`_" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:40 +#. msgid "Memento.php" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:46 +#. msgid "Originator.php" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:52 +#. msgid "Caretaker.php" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:59 +#. msgid "Test" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:61 +#. msgid "Tests/MementoTest.php" +#. msgstr "" diff --git a/locale/es/LC_MESSAGES/More/Delegation/README.po b/locale/es/LC_MESSAGES/More/Delegation/README.po index 169e8fd..ac259f0 100644 --- a/locale/es/LC_MESSAGES/More/Delegation/README.po +++ b/locale/es/LC_MESSAGES/More/Delegation/README.po @@ -1,15 +1,22 @@ -# +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. +# +#, fuzzy msgid "" msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-05-29 12:18+0200\n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" +"Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.3.4\n" #: ../../More/Delegation/README.rst:2 msgid "`Delegation`__" @@ -19,14 +26,26 @@ msgstr "" msgid "Purpose" msgstr "" -#: ../../More/Delegation/README.rst:7 ../../More/Delegation/README.rst:12 -msgid "..." +#: ../../More/Delegation/README.rst:7 +msgid "" +"Demonstrate the Delegator pattern, where an object, instead of performing" +" one of its stated tasks, delegates that task to an associated helper " +"object. In this case TeamLead professes to writeCode and Usage uses this," +" while TeamLead delegates writeCode to JuniorDeveloper's writeBadCode " +"function. This inverts the responsibility so that Usage is unknowingly " +"executing writeBadCode." msgstr "" #: ../../More/Delegation/README.rst:10 msgid "Examples" msgstr "" +#: ../../More/Delegation/README.rst:12 +msgid "" +"Please review JuniorDeveloper.php, TeamLead.php, and then Usage.php to " +"see it all tied together." +msgstr "" + #: ../../More/Delegation/README.rst:15 msgid "UML Diagram" msgstr "" @@ -58,3 +77,4 @@ msgstr "" #: ../../More/Delegation/README.rst:47 msgid "Tests/DelegationTest.php" msgstr "" + diff --git a/locale/es/LC_MESSAGES/More/EAV/README.po b/locale/es/LC_MESSAGES/More/EAV/README.po new file mode 100644 index 0000000..c101913 --- /dev/null +++ b/locale/es/LC_MESSAGES/More/EAV/README.po @@ -0,0 +1,78 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: DesignPatternsPHP 1.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.3.4\n" + +#: ../../More/EAV/README.rst:2 +msgid "`Entity-Attribute-Value (EAV)`__" +msgstr "" + +#: ../../More/EAV/README.rst:4 +msgid "" +"The Entity–attribute–value (EAV) pattern in order to implement EAV model " +"with PHP." +msgstr "" + +#: ../../More/EAV/README.rst:7 +msgid "Purpose" +msgstr "" + +#: ../../More/EAV/README.rst:9 +msgid "" +"The Entity–attribute–value (EAV) model is a data model to describe " +"entities where the number of attributes (properties, parameters) that can" +" be used to describe them is potentially vast, but the number that will " +"actually apply to a given entity is relatively modest." +msgstr "" + +#: ../../More/EAV/README.rst:15 +msgid "Examples" +msgstr "" + +#: ../../More/EAV/README.rst:17 +msgid "Check full work example in `example.php`_ file." +msgstr "" + +#: ../../More/EAV/README.rst:90 +msgid "UML Diagram" +msgstr "" + +#: ../../More/EAV/README.rst:97 +msgid "Code" +msgstr "" + +#: ../../More/EAV/README.rst:99 +msgid "You can also find these code on `GitHub`_" +msgstr "" + +#: ../../More/EAV/README.rst:102 +msgid "Test" +msgstr "" + +#: ../../More/EAV/README.rst:104 +msgid "Tests/EntityTest.php" +msgstr "" + +#: ../../More/EAV/README.rst:110 +msgid "Tests/AttributeTest.php" +msgstr "" + +#: ../../More/EAV/README.rst:116 +msgid "Tests/ValueTest.php" +msgstr "" + diff --git a/locale/es/LC_MESSAGES/README.po b/locale/es/LC_MESSAGES/README.po index ddebaed..80021bb 100644 --- a/locale/es/LC_MESSAGES/README.po +++ b/locale/es/LC_MESSAGES/README.po @@ -77,8 +77,8 @@ msgid "(The MIT License)" msgstr "(La licencia MIT)" #: ../../README.rst:48 -msgid "Copyright (c) 2014 `Dominik Liebler`_ and `contributors`_" -msgstr "Copyright (c) 2014 `Dominik Liebler`_ and `contributors`_" +msgid "Copyright (c) 2011 - 2016 `Dominik Liebler`_ and `contributors`_" +msgstr "Copyright (c) 2011 - 2016 `Dominik Liebler`_ and `contributors`_" #: ../../README.rst:50 msgid "" diff --git a/locale/es/LC_MESSAGES/Structural/Flyweight/README.po b/locale/es/LC_MESSAGES/Structural/Flyweight/README.po new file mode 100644 index 0000000..9a8b771 --- /dev/null +++ b/locale/es/LC_MESSAGES/Structural/Flyweight/README.po @@ -0,0 +1,69 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: DesignPatternsPHP 1.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.3.4\n" + +#: ../../Structural/Flyweight/README.rst:2 +msgid "`Flyweight`__" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:5 +msgid "Purpose" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:7 +msgid "" +"To minimise memory usage, a Flyweight shares as much as possible memory " +"with similar objects. It is needed when a large amount of objects is used" +" that don't differ much in state. A common practice is to hold state in " +"external data structures and pass them to the flyweight object when " +"needed." +msgstr "" + +#: ../../Structural/Flyweight/README.rst:12 +msgid "UML Diagram" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:19 +msgid "Code" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:21 +msgid "You can also find these code on `GitHub`_" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:23 +msgid "FlyweightInterface.php" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:29 +msgid "CharacterFlyweight.php" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:35 +msgid "FlyweightFactory.php" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:42 +msgid "Test" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:44 +msgid "Tests/FlyweightTest.php" +msgstr "" + diff --git a/locale/es/LC_MESSAGES/Structural/Registry/README.po b/locale/es/LC_MESSAGES/Structural/Registry/README.po index 843138c..ddc6079 100644 --- a/locale/es/LC_MESSAGES/Structural/Registry/README.po +++ b/locale/es/LC_MESSAGES/Structural/Registry/README.po @@ -32,8 +32,8 @@ msgstr "" #: ../../Structural/Registry/README.rst:14 msgid "" -"Zend Framework: ``Zend_Registry`` holds the application's logger object, " -"front controller etc." +"Zend Framework 1: ``Zend_Registry`` holds the application's logger " +"object, front controller etc." msgstr "" #: ../../Structural/Registry/README.rst:16 diff --git a/locale/pt_BR/LC_MESSAGES/Behavioral/Mediator/README.po b/locale/pt_BR/LC_MESSAGES/Behavioral/Mediator/README.po index 9c6694b..6474cd1 100644 --- a/locale/pt_BR/LC_MESSAGES/Behavioral/Mediator/README.po +++ b/locale/pt_BR/LC_MESSAGES/Behavioral/Mediator/README.po @@ -21,8 +21,8 @@ msgstr "" #: ../../Behavioral/Mediator/README.rst:7 msgid "" -"This pattern provides an easy to decouple many components working together. " -"It is a good alternative over Observer IF you have a \"central " +"This pattern provides an easy way to decouple many components working " +"together. It is a good alternative to Observer IF you have a \"central " "intelligence\", like a controller (but not in the sense of the MVC)." msgstr "" diff --git a/locale/pt_BR/LC_MESSAGES/Behavioral/Memento/README.po b/locale/pt_BR/LC_MESSAGES/Behavioral/Memento/README.po index 913069a..9aa14bc 100644 --- a/locale/pt_BR/LC_MESSAGES/Behavioral/Memento/README.po +++ b/locale/pt_BR/LC_MESSAGES/Behavioral/Memento/README.po @@ -1,15 +1,22 @@ -# +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. +# +#, fuzzy msgid "" msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-05-29 12:18+0200\n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" +"Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.3.4\n" #: ../../Behavioral/Memento/README.rst:2 msgid "`Memento`__" @@ -21,65 +28,184 @@ msgstr "" #: ../../Behavioral/Memento/README.rst:7 msgid "" -"Provide the ability to restore an object to its previous state (undo via " -"rollback)." +"It provides the ability to restore an object to it's previous state (undo" +" via rollback) or to gain access to state of the object, without " +"revealing it's implementation (i.e., the object is not required to have a" +" functional for return the current state)." msgstr "" -#: ../../Behavioral/Memento/README.rst:10 +#: ../../Behavioral/Memento/README.rst:12 msgid "" -"The memento pattern is implemented with three objects: the originator, a " -"caretaker and a memento. The originator is some object that has an internal " -"state. The caretaker is going to do something to the originator, but wants " -"to be able to undo the change. The caretaker first asks the originator for a" -" memento object. Then it does whatever operation (or sequence of operations)" -" it was going to do. To roll back to the state before the operations, it " -"returns the memento object to the originator. The memento object itself is " -"an opaque object (one which the caretaker cannot, or should not, change). " -"When using this pattern, care should be taken if the originator may change " -"other objects or resources - the memento pattern operates on a single " -"object." +"The memento pattern is implemented with three objects: the Originator, a " +"Caretaker and a Memento." msgstr "" -#: ../../Behavioral/Memento/README.rst:23 +#: ../../Behavioral/Memento/README.rst:15 +msgid "" +"Memento – an object that *contains a concrete unique snapshot of state* " +"of any object or resource: string, number, array, an instance of class " +"and so on. The uniqueness in this case does not imply the prohibition " +"existence of similar states in different snapshots. That means the state " +"can be extracted as the independent clone. Any object stored in the " +"Memento should be *a full copy of the original object rather than a " +"reference* to the original object. The Memento object is a \"opaque " +"object\" (the object that no one can or should change)." +msgstr "" + +#: ../../Behavioral/Memento/README.rst:24 +msgid "" +"Originator – it is an object that contains the *actual state of an " +"external object is strictly specified type*. Originator is able to create" +" a unique copy of this state and return it wrapped in a Memento. The " +"Originator does not know the history of changes. You can set a concrete " +"state to Originator from the outside, which will be considered as actual." +" The Originator must make sure that given state corresponds the allowed " +"type of object. Originator may (but not should) have any methods, but " +"they *they can't make changes to the saved object state*." +msgstr "" + +#: ../../Behavioral/Memento/README.rst:33 +msgid "" +"Caretaker *controls the states history*. He may make changes to an " +"object; take a decision to save the state of an external object in the " +"Originator; ask from the Originator snapshot of the current state; or set" +" the Originator state to equivalence with some snapshot from history." +msgstr "" + +#: ../../Behavioral/Memento/README.rst:39 msgid "Examples" msgstr "" -#: ../../Behavioral/Memento/README.rst:25 +#: ../../Behavioral/Memento/README.rst:41 msgid "The seed of a pseudorandom number generator" msgstr "" -#: ../../Behavioral/Memento/README.rst:26 +#: ../../Behavioral/Memento/README.rst:42 msgid "The state in a finite state machine" msgstr "" -#: ../../Behavioral/Memento/README.rst:29 -msgid "UML Diagram" -msgstr "" - -#: ../../Behavioral/Memento/README.rst:36 -msgid "Code" -msgstr "" - -#: ../../Behavioral/Memento/README.rst:38 -msgid "You can also find these code on `GitHub`_" -msgstr "" - -#: ../../Behavioral/Memento/README.rst:40 -msgid "Memento.php" +#: ../../Behavioral/Memento/README.rst:43 +msgid "" +"Control for intermediate states of `ORM Model " +"`_ before saving" msgstr "" #: ../../Behavioral/Memento/README.rst:46 +msgid "UML Diagram" +msgstr "" + +#: ../../Behavioral/Memento/README.rst:53 +msgid "Code" +msgstr "" + +#: ../../Behavioral/Memento/README.rst:55 +msgid "You can also find these code on `GitHub`_" +msgstr "" + +#: ../../Behavioral/Memento/README.rst:57 +msgid "Memento.php" +msgstr "" + +#: ../../Behavioral/Memento/README.rst:63 msgid "Originator.php" msgstr "" -#: ../../Behavioral/Memento/README.rst:52 +#: ../../Behavioral/Memento/README.rst:69 msgid "Caretaker.php" msgstr "" -#: ../../Behavioral/Memento/README.rst:59 +#: ../../Behavioral/Memento/README.rst:76 msgid "Test" msgstr "" -#: ../../Behavioral/Memento/README.rst:61 +#: ../../Behavioral/Memento/README.rst:78 msgid "Tests/MementoTest.php" msgstr "" + + + +#. # +#. msgid "" +#. msgstr "" +#. "Project-Id-Version: DesignPatternsPHP 1.0\n" +#. "Report-Msgid-Bugs-To: \n" +#. "POT-Creation-Date: 2015-05-29 12:18+0200\n" +#. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +#. "Last-Translator: FULL NAME \n" +#. "Language-Team: LANGUAGE \n" +#. "MIME-Version: 1.0\n" +#. "Content-Type: text/plain; charset=UTF-8\n" +#. "Content-Transfer-Encoding: 8bit\n" +#. +#. #: ../../Behavioral/Memento/README.rst:2 +#. msgid "`Memento`__" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:5 +#. msgid "Purpose" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:7 +#. msgid "" +#. "Provide the ability to restore an object to its previous state (undo via " +#. "rollback)." +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:10 +#. msgid "" +#. "The memento pattern is implemented with three objects: the originator, a " +#. "caretaker and a memento. The originator is some object that has an internal " +#. "state. The caretaker is going to do something to the originator, but wants " +#. "to be able to undo the change. The caretaker first asks the originator for a" +#. " memento object. Then it does whatever operation (or sequence of operations)" +#. " it was going to do. To roll back to the state before the operations, it " +#. "returns the memento object to the originator. The memento object itself is " +#. "an opaque object (one which the caretaker cannot, or should not, change). " +#. "When using this pattern, care should be taken if the originator may change " +#. "other objects or resources - the memento pattern operates on a single " +#. "object." +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:23 +#. msgid "Examples" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:25 +#. msgid "The seed of a pseudorandom number generator" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:26 +#. msgid "The state in a finite state machine" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:29 +#. msgid "UML Diagram" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:36 +#. msgid "Code" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:38 +#. msgid "You can also find these code on `GitHub`_" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:40 +#. msgid "Memento.php" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:46 +#. msgid "Originator.php" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:52 +#. msgid "Caretaker.php" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:59 +#. msgid "Test" +#. msgstr "" +#. +#. #: ../../Behavioral/Memento/README.rst:61 +#. msgid "Tests/MementoTest.php" +#. msgstr "" diff --git a/locale/pt_BR/LC_MESSAGES/More/Delegation/README.po b/locale/pt_BR/LC_MESSAGES/More/Delegation/README.po index 21a201b..ac259f0 100644 --- a/locale/pt_BR/LC_MESSAGES/More/Delegation/README.po +++ b/locale/pt_BR/LC_MESSAGES/More/Delegation/README.po @@ -1,15 +1,22 @@ -# +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. +# +#, fuzzy msgid "" msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-05-29 12:18+0200\n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" +"Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.3.4\n" #: ../../More/Delegation/README.rst:2 msgid "`Delegation`__" @@ -19,17 +26,29 @@ msgstr "" msgid "Purpose" msgstr "" -#: ../../More/Delegation/README.rst:7 ../../More/Delegation/README.rst:12 -msgid "..." +#: ../../More/Delegation/README.rst:7 +msgid "" +"Demonstrate the Delegator pattern, where an object, instead of performing" +" one of its stated tasks, delegates that task to an associated helper " +"object. In this case TeamLead professes to writeCode and Usage uses this," +" while TeamLead delegates writeCode to JuniorDeveloper's writeBadCode " +"function. This inverts the responsibility so that Usage is unknowingly " +"executing writeBadCode." msgstr "" #: ../../More/Delegation/README.rst:10 msgid "Examples" msgstr "" +#: ../../More/Delegation/README.rst:12 +msgid "" +"Please review JuniorDeveloper.php, TeamLead.php, and then Usage.php to " +"see it all tied together." +msgstr "" + #: ../../More/Delegation/README.rst:15 msgid "UML Diagram" -msgstr "Diagrama UML" +msgstr "" #: ../../More/Delegation/README.rst:22 msgid "Code" @@ -58,3 +77,4 @@ msgstr "" #: ../../More/Delegation/README.rst:47 msgid "Tests/DelegationTest.php" msgstr "" + diff --git a/locale/pt_BR/LC_MESSAGES/More/EAV/README.po b/locale/pt_BR/LC_MESSAGES/More/EAV/README.po new file mode 100644 index 0000000..c101913 --- /dev/null +++ b/locale/pt_BR/LC_MESSAGES/More/EAV/README.po @@ -0,0 +1,78 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: DesignPatternsPHP 1.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.3.4\n" + +#: ../../More/EAV/README.rst:2 +msgid "`Entity-Attribute-Value (EAV)`__" +msgstr "" + +#: ../../More/EAV/README.rst:4 +msgid "" +"The Entity–attribute–value (EAV) pattern in order to implement EAV model " +"with PHP." +msgstr "" + +#: ../../More/EAV/README.rst:7 +msgid "Purpose" +msgstr "" + +#: ../../More/EAV/README.rst:9 +msgid "" +"The Entity–attribute–value (EAV) model is a data model to describe " +"entities where the number of attributes (properties, parameters) that can" +" be used to describe them is potentially vast, but the number that will " +"actually apply to a given entity is relatively modest." +msgstr "" + +#: ../../More/EAV/README.rst:15 +msgid "Examples" +msgstr "" + +#: ../../More/EAV/README.rst:17 +msgid "Check full work example in `example.php`_ file." +msgstr "" + +#: ../../More/EAV/README.rst:90 +msgid "UML Diagram" +msgstr "" + +#: ../../More/EAV/README.rst:97 +msgid "Code" +msgstr "" + +#: ../../More/EAV/README.rst:99 +msgid "You can also find these code on `GitHub`_" +msgstr "" + +#: ../../More/EAV/README.rst:102 +msgid "Test" +msgstr "" + +#: ../../More/EAV/README.rst:104 +msgid "Tests/EntityTest.php" +msgstr "" + +#: ../../More/EAV/README.rst:110 +msgid "Tests/AttributeTest.php" +msgstr "" + +#: ../../More/EAV/README.rst:116 +msgid "Tests/ValueTest.php" +msgstr "" + diff --git a/locale/pt_BR/LC_MESSAGES/README.po b/locale/pt_BR/LC_MESSAGES/README.po index a10ea0b..ab971d8 100644 --- a/locale/pt_BR/LC_MESSAGES/README.po +++ b/locale/pt_BR/LC_MESSAGES/README.po @@ -78,8 +78,8 @@ msgid "(The MIT License)" msgstr "(The MIT License)" #: ../../README.rst:48 -msgid "Copyright (c) 2014 `Dominik Liebler`_ and `contributors`_" -msgstr "Copyright (c) 2014 `Dominik Liebler`_ and `contributors`_" +msgid "Copyright (c) 2011 - 2016 `Dominik Liebler`_ and `contributors`_" +msgstr "Copyright (c) 2011 - 2016 `Dominik Liebler`_ and `contributors`_" #: ../../README.rst:50 msgid "" diff --git a/locale/pt_BR/LC_MESSAGES/Structural/Flyweight/README.po b/locale/pt_BR/LC_MESSAGES/Structural/Flyweight/README.po new file mode 100644 index 0000000..9a8b771 --- /dev/null +++ b/locale/pt_BR/LC_MESSAGES/Structural/Flyweight/README.po @@ -0,0 +1,69 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: DesignPatternsPHP 1.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.3.4\n" + +#: ../../Structural/Flyweight/README.rst:2 +msgid "`Flyweight`__" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:5 +msgid "Purpose" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:7 +msgid "" +"To minimise memory usage, a Flyweight shares as much as possible memory " +"with similar objects. It is needed when a large amount of objects is used" +" that don't differ much in state. A common practice is to hold state in " +"external data structures and pass them to the flyweight object when " +"needed." +msgstr "" + +#: ../../Structural/Flyweight/README.rst:12 +msgid "UML Diagram" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:19 +msgid "Code" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:21 +msgid "You can also find these code on `GitHub`_" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:23 +msgid "FlyweightInterface.php" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:29 +msgid "CharacterFlyweight.php" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:35 +msgid "FlyweightFactory.php" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:42 +msgid "Test" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:44 +msgid "Tests/FlyweightTest.php" +msgstr "" + diff --git a/locale/pt_BR/LC_MESSAGES/Structural/Registry/README.po b/locale/pt_BR/LC_MESSAGES/Structural/Registry/README.po index 843138c..ddc6079 100644 --- a/locale/pt_BR/LC_MESSAGES/Structural/Registry/README.po +++ b/locale/pt_BR/LC_MESSAGES/Structural/Registry/README.po @@ -32,8 +32,8 @@ msgstr "" #: ../../Structural/Registry/README.rst:14 msgid "" -"Zend Framework: ``Zend_Registry`` holds the application's logger object, " -"front controller etc." +"Zend Framework 1: ``Zend_Registry`` holds the application's logger " +"object, front controller etc." msgstr "" #: ../../Structural/Registry/README.rst:16 diff --git a/locale/ru/LC_MESSAGES/Behavioral/Mediator/README.po b/locale/ru/LC_MESSAGES/Behavioral/Mediator/README.po index 13b8089..7d07e12 100644 --- a/locale/ru/LC_MESSAGES/Behavioral/Mediator/README.po +++ b/locale/ru/LC_MESSAGES/Behavioral/Mediator/README.po @@ -23,9 +23,9 @@ msgstr "Назначение" #: ../../Behavioral/Mediator/README.rst:7 msgid "" -"This pattern provides an easy to decouple many components working together. " -"It is a good alternative over Observer IF you have a \"central intelligence" -"\", like a controller (but not in the sense of the MVC)." +"This pattern provides an easy way to decouple many components working " +"together. It is a good alternative to Observer IF you have a \"central " +"intelligence\", like a controller (but not in the sense of the MVC)." msgstr "" "Этот паттерн позволяет снизить связность множества компонентов, работающих " "совместно. Объектам больше нет нужды вызывать друг друга напрямую. Это " diff --git a/locale/ru/LC_MESSAGES/Behavioral/Memento/README.po b/locale/ru/LC_MESSAGES/Behavioral/Memento/README.po index 146f4f5..5107f84 100644 --- a/locale/ru/LC_MESSAGES/Behavioral/Memento/README.po +++ b/locale/ru/LC_MESSAGES/Behavioral/Memento/README.po @@ -1,115 +1,241 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. # +#, fuzzy msgid "" msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-05-29 12:18+0200\n" -"PO-Revision-Date: 2015-05-30 01:42+0300\n" -"Last-Translator: Eugene Glotov \n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" +"Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ru\n" +"Generated-By: Babel 2.3.4\n" #: ../../Behavioral/Memento/README.rst:2 msgid "`Memento`__" -msgstr "`Хранитель`__" +msgstr "" #: ../../Behavioral/Memento/README.rst:5 msgid "Purpose" -msgstr "Назначение" +msgstr "" #: ../../Behavioral/Memento/README.rst:7 msgid "" -"Provide the ability to restore an object to its previous state (undo via " -"rollback)." +"It provides the ability to restore an object to it's previous state (undo" +" via rollback) or to gain access to state of the object, without " +"revealing it's implementation (i.e., the object is not required to have a" +" functional for return the current state)." msgstr "" -"Предоставляет возможность восстановить объект в его предыдущем состоянии или " -"получить доступ к состоянию объекта, не раскрывая его реализацию (т.е. сам " -"объект не обязан иметь функционал возврата текущего состояния)." -#: ../../Behavioral/Memento/README.rst:10 +#: ../../Behavioral/Memento/README.rst:12 msgid "" -"The memento pattern is implemented with three objects: the originator, a " -"caretaker and a memento. The originator is some object that has an internal " -"state. The caretaker is going to do something to the originator, but wants " -"to be able to undo the change. The caretaker first asks the originator for a" -" memento object. Then it does whatever operation (or sequence of operations)" -" it was going to do. To roll back to the state before the operations, it " -"returns the memento object to the originator. The memento object itself is " -"an opaque object (one which the caretaker cannot, or should not, change). " -"When using this pattern, care should be taken if the originator may change " -"other objects or resources - the memento pattern operates on a single " -"object." +"The memento pattern is implemented with three objects: the Originator, a " +"Caretaker and a Memento." msgstr "" -"Паттерн «Хранитель» реализуется тремя объектами: Создатель, Опекун и " -"Хранитель.\n" -"\n" -"Хранитель — объект, который *хранит конкретный уникальный слепок состояния* " -"любого объекта или ресурса: строка, число, массив, экземпляр класса и так " -"далее. Уникальность в данном случае подразумевает не запрет существования " -"одинаковых состояний в слепках, а то, что состояние можно извлечь в виде " -"независимого клона. Это значит, объект, сохраняемый в Хранитель, должен *быть " -"полной копией исходного объекта а не ссылкой* на исходный объект. Сам объект " -"Хранитель является «непрозрачным объектом» (тот, который никто не может и не " -"должен изменять).\n" -"\n" -"Создатель — это объект, который *содержит в себе актуальное состояние внешнего " -"объекта строго заданного типа* и умеет создать уникальную копию этого " -"состояния, возвращая её обёрнутую в Хранитель. Создатель не знает истории " -"изменений. Создателю можно принудительно установить конкретное состояние " -"извне, которое будет считаться актуальным. Создатель должен позаботиться, " -"чтобы это состояние соответствовало типу объекта, с которым ему разрешено " -"работать. Создатель может (но не обязан) иметь любые методы, но они *не могут " -"менять сохранённое состояние объекта*.\n" -"\n" -"Опекун *управляет историей слепков состояний*. Он может вносить изменения в " -"объект, принимать решение о сохранении состояния внешнего объекта в Создателе, " -"требовать от Создателя слепок текущего состояния, или привести состояние " -"Создателя в соответствие состоянию какого-то слепка из истории." -#: ../../Behavioral/Memento/README.rst:23 +#: ../../Behavioral/Memento/README.rst:15 +msgid "" +"Memento – an object that *contains a concrete unique snapshot of state* " +"of any object or resource: string, number, array, an instance of class " +"and so on. The uniqueness in this case does not imply the prohibition " +"existence of similar states in different snapshots. That means the state " +"can be extracted as the independent clone. Any object stored in the " +"Memento should be *a full copy of the original object rather than a " +"reference* to the original object. The Memento object is a \"opaque " +"object\" (the object that no one can or should change)." +msgstr "" + +#: ../../Behavioral/Memento/README.rst:24 +msgid "" +"Originator – it is an object that contains the *actual state of an " +"external object is strictly specified type*. Originator is able to create" +" a unique copy of this state and return it wrapped in a Memento. The " +"Originator does not know the history of changes. You can set a concrete " +"state to Originator from the outside, which will be considered as actual." +" The Originator must make sure that given state corresponds the allowed " +"type of object. Originator may (but not should) have any methods, but " +"they *they can't make changes to the saved object state*." +msgstr "" + +#: ../../Behavioral/Memento/README.rst:33 +msgid "" +"Caretaker *controls the states history*. He may make changes to an " +"object; take a decision to save the state of an external object in the " +"Originator; ask from the Originator snapshot of the current state; or set" +" the Originator state to equivalence with some snapshot from history." +msgstr "" + +#: ../../Behavioral/Memento/README.rst:39 msgid "Examples" -msgstr "Примеры" +msgstr "" -#: ../../Behavioral/Memento/README.rst:25 +#: ../../Behavioral/Memento/README.rst:41 msgid "The seed of a pseudorandom number generator" msgstr "" -"`Семя `_ псевдослучайного генератора " -"чисел." -#: ../../Behavioral/Memento/README.rst:26 +#: ../../Behavioral/Memento/README.rst:42 msgid "The state in a finite state machine" -msgstr "Состояние конечного автомата" +msgstr "" -#: ../../Behavioral/Memento/README.rst:29 -msgid "UML Diagram" -msgstr "UML Диаграмма" - -#: ../../Behavioral/Memento/README.rst:36 -msgid "Code" -msgstr "Код" - -#: ../../Behavioral/Memento/README.rst:38 -msgid "You can also find these code on `GitHub`_" -msgstr "Вы можете найти этот код на `GitHub`_" - -#: ../../Behavioral/Memento/README.rst:40 -msgid "Memento.php" -msgstr "Memento.php" +#: ../../Behavioral/Memento/README.rst:43 +msgid "" +"Control for intermediate states of `ORM Model " +"`_ before saving" +msgstr "" #: ../../Behavioral/Memento/README.rst:46 +msgid "UML Diagram" +msgstr "" + +#: ../../Behavioral/Memento/README.rst:53 +msgid "Code" +msgstr "" + +#: ../../Behavioral/Memento/README.rst:55 +msgid "You can also find these code on `GitHub`_" +msgstr "" + +#: ../../Behavioral/Memento/README.rst:57 +msgid "Memento.php" +msgstr "" + +#: ../../Behavioral/Memento/README.rst:63 msgid "Originator.php" -msgstr "Originator.php" +msgstr "" -#: ../../Behavioral/Memento/README.rst:52 +#: ../../Behavioral/Memento/README.rst:69 msgid "Caretaker.php" -msgstr "Caretaker.php" +msgstr "" -#: ../../Behavioral/Memento/README.rst:59 +#: ../../Behavioral/Memento/README.rst:76 msgid "Test" -msgstr "Тест" +msgstr "" -#: ../../Behavioral/Memento/README.rst:61 +#: ../../Behavioral/Memento/README.rst:78 msgid "Tests/MementoTest.php" -msgstr "Tests/MementoTest.php" +msgstr "" + + + +#. # +#. msgid "" +#. msgstr "" +#. "Project-Id-Version: DesignPatternsPHP 1.0\n" +#. "Report-Msgid-Bugs-To: \n" +#. "POT-Creation-Date: 2015-05-29 12:18+0200\n" +#. "PO-Revision-Date: 2015-05-30 01:42+0300\n" +#. "Last-Translator: Eugene Glotov \n" +#. "MIME-Version: 1.0\n" +#. "Content-Type: text/plain; charset=UTF-8\n" +#. "Content-Transfer-Encoding: 8bit\n" +#. "Language: ru\n" +#. +#. #: ../../Behavioral/Memento/README.rst:2 +#. msgid "`Memento`__" +#. msgstr "`Хранитель`__" +#. +#. #: ../../Behavioral/Memento/README.rst:5 +#. msgid "Purpose" +#. msgstr "Назначение" +#. +#. #: ../../Behavioral/Memento/README.rst:7 +#. msgid "" +#. "Provide the ability to restore an object to its previous state (undo via " +#. "rollback)." +#. msgstr "" +#. "Предоставляет возможность восстановить объект в его предыдущем состоянии или " +#. "получить доступ к состоянию объекта, не раскрывая его реализацию (т.е. сам " +#. "объект не обязан иметь функционал возврата текущего состояния)." +#. +#. #: ../../Behavioral/Memento/README.rst:10 +#. msgid "" +#. "The memento pattern is implemented with three objects: the originator, a " +#. "caretaker and a memento. The originator is some object that has an internal " +#. "state. The caretaker is going to do something to the originator, but wants " +#. "to be able to undo the change. The caretaker first asks the originator for a" +#. " memento object. Then it does whatever operation (or sequence of operations)" +#. " it was going to do. To roll back to the state before the operations, it " +#. "returns the memento object to the originator. The memento object itself is " +#. "an opaque object (one which the caretaker cannot, or should not, change). " +#. "When using this pattern, care should be taken if the originator may change " +#. "other objects or resources - the memento pattern operates on a single " +#. "object." +#. msgstr "" +#. "Паттерн «Хранитель» реализуется тремя объектами: Создатель, Опекун и " +#. "Хранитель.\n" +#. "\n" +#. "Хранитель — объект, который *хранит конкретный уникальный слепок состояния* " +#. "любого объекта или ресурса: строка, число, массив, экземпляр класса и так " +#. "далее. Уникальность в данном случае подразумевает не запрет существования " +#. "одинаковых состояний в слепках, а то, что состояние можно извлечь в виде " +#. "независимого клона. Это значит, объект, сохраняемый в Хранитель, должен *быть " +#. "полной копией исходного объекта а не ссылкой* на исходный объект. Сам объект " +#. "Хранитель является «непрозрачным объектом» (тот, который никто не может и не " +#. "должен изменять).\n" +#. "\n" +#. "Создатель — это объект, который *содержит в себе актуальное состояние внешнего " +#. "объекта строго заданного типа* и умеет создать уникальную копию этого " +#. "состояния, возвращая её обёрнутую в Хранитель. Создатель не знает истории " +#. "изменений. Создателю можно принудительно установить конкретное состояние " +#. "извне, которое будет считаться актуальным. Создатель должен позаботиться, " +#. "чтобы это состояние соответствовало типу объекта, с которым ему разрешено " +#. "работать. Создатель может (но не обязан) иметь любые методы, но они *не могут " +#. "менять сохранённое состояние объекта*.\n" +#. "\n" +#. "Опекун *управляет историей слепков состояний*. Он может вносить изменения в " +#. "объект, принимать решение о сохранении состояния внешнего объекта в Создателе, " +#. "требовать от Создателя слепок текущего состояния, или привести состояние " +#. "Создателя в соответствие состоянию какого-то слепка из истории." +#. +#. #: ../../Behavioral/Memento/README.rst:23 +#. msgid "Examples" +#. msgstr "Примеры" +#. +#. #: ../../Behavioral/Memento/README.rst:25 +#. msgid "The seed of a pseudorandom number generator" +#. msgstr "" +#. "`Семя `_ псевдослучайного генератора " +#. "чисел." +#. +#. #: ../../Behavioral/Memento/README.rst:26 +#. msgid "The state in a finite state machine" +#. msgstr "Состояние конечного автомата" +#. +#. #: ../../Behavioral/Memento/README.rst:29 +#. msgid "UML Diagram" +#. msgstr "UML Диаграмма" +#. +#. #: ../../Behavioral/Memento/README.rst:36 +#. msgid "Code" +#. msgstr "Код" +#. +#. #: ../../Behavioral/Memento/README.rst:38 +#. msgid "You can also find these code on `GitHub`_" +#. msgstr "Вы можете найти этот код на `GitHub`_" +#. +#. #: ../../Behavioral/Memento/README.rst:40 +#. msgid "Memento.php" +#. msgstr "Memento.php" +#. +#. #: ../../Behavioral/Memento/README.rst:46 +#. msgid "Originator.php" +#. msgstr "Originator.php" +#. +#. #: ../../Behavioral/Memento/README.rst:52 +#. msgid "Caretaker.php" +#. msgstr "Caretaker.php" +#. +#. #: ../../Behavioral/Memento/README.rst:59 +#. msgid "Test" +#. msgstr "Тест" +#. +#. #: ../../Behavioral/Memento/README.rst:61 +#. msgid "Tests/MementoTest.php" +#. msgstr "Tests/MementoTest.php" diff --git a/locale/ru/LC_MESSAGES/More/Delegation/README.po b/locale/ru/LC_MESSAGES/More/Delegation/README.po index 958fd7a..3e2676f 100644 --- a/locale/ru/LC_MESSAGES/More/Delegation/README.po +++ b/locale/ru/LC_MESSAGES/More/Delegation/README.po @@ -1,60 +1,142 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. # +#, fuzzy msgid "" msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-05-29 12:18+0200\n" -"PO-Revision-Date: 2015-05-30 04:46+0300\n" -"Last-Translator: Eugene Glotov \n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" +"Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Language: ru\n" +"Generated-By: Babel 2.3.4\n" #: ../../More/Delegation/README.rst:2 msgid "`Delegation`__" -msgstr "`Делегирование `_ (`Delegation`__)" +msgstr "" #: ../../More/Delegation/README.rst:5 msgid "Purpose" -msgstr "Назначение" +msgstr "" -#: ../../More/Delegation/README.rst:7 ../../More/Delegation/README.rst:12 -msgid "..." -msgstr "Основной шаблон проектирования, в котором объект внешне выражает некоторое поведение, но в реальности передаёт ответственность за выполнение этого поведения связанному объекту. Шаблон делегирования является фундаментальной абстракцией, на основе которой реализованы другие шаблоны - композиция (также называемая агрегацией), примеси (mixins) и аспекты (aspects). (c) wiki" +#: ../../More/Delegation/README.rst:7 +msgid "" +"Demonstrate the Delegator pattern, where an object, instead of performing" +" one of its stated tasks, delegates that task to an associated helper " +"object. In this case TeamLead professes to writeCode and Usage uses this," +" while TeamLead delegates writeCode to JuniorDeveloper's writeBadCode " +"function. This inverts the responsibility so that Usage is unknowingly " +"executing writeBadCode." +msgstr "" #: ../../More/Delegation/README.rst:10 msgid "Examples" -msgstr "Примеры" +msgstr "" + +#: ../../More/Delegation/README.rst:12 +msgid "" +"Please review JuniorDeveloper.php, TeamLead.php, and then Usage.php to " +"see it all tied together." +msgstr "" #: ../../More/Delegation/README.rst:15 msgid "UML Diagram" -msgstr "UML Диаграмма" +msgstr "" #: ../../More/Delegation/README.rst:22 msgid "Code" -msgstr "Код" +msgstr "" #: ../../More/Delegation/README.rst:24 msgid "You can also find these code on `GitHub`_" -msgstr "Вы можете найти этот код на `GitHub`_" +msgstr "" #: ../../More/Delegation/README.rst:26 msgid "Usage.php" -msgstr "Usage.php" +msgstr "" #: ../../More/Delegation/README.rst:32 msgid "TeamLead.php" -msgstr "TeamLead.php" +msgstr "" #: ../../More/Delegation/README.rst:38 msgid "JuniorDeveloper.php" -msgstr "JuniorDeveloper.php" +msgstr "" #: ../../More/Delegation/README.rst:45 msgid "Test" -msgstr "Тест" +msgstr "" #: ../../More/Delegation/README.rst:47 msgid "Tests/DelegationTest.php" -msgstr "Tests/DelegationTest.php" +msgstr "" + + + +#. # +#. msgid "" +#. msgstr "" +#. "Project-Id-Version: DesignPatternsPHP 1.0\n" +#. "Report-Msgid-Bugs-To: \n" +#. "POT-Creation-Date: 2015-05-29 12:18+0200\n" +#. "PO-Revision-Date: 2015-05-30 04:46+0300\n" +#. "Last-Translator: Eugene Glotov \n" +#. "MIME-Version: 1.0\n" +#. "Content-Type: text/plain; charset=UTF-8\n" +#. "Content-Transfer-Encoding: 8bit\n" +#. "Language: ru\n" +#. +#. #: ../../More/Delegation/README.rst:2 +#. msgid "`Delegation`__" +#. msgstr "`Делегирование `_ (`Delegation`__)" +#. +#. #: ../../More/Delegation/README.rst:5 +#. msgid "Purpose" +#. msgstr "Назначение" +#. +#. #: ../../More/Delegation/README.rst:7 ../../More/Delegation/README.rst:12 +#. msgid "..." +#. msgstr "Основной шаблон проектирования, в котором объект внешне выражает некоторое поведение, но в реальности передаёт ответственность за выполнение этого поведения связанному объекту. Шаблон делегирования является фундаментальной абстракцией, на основе которой реализованы другие шаблоны - композиция (также называемая агрегацией), примеси (mixins) и аспекты (aspects). (c) wiki" +#. +#. #: ../../More/Delegation/README.rst:10 +#. msgid "Examples" +#. msgstr "Примеры" +#. +#. #: ../../More/Delegation/README.rst:15 +#. msgid "UML Diagram" +#. msgstr "UML Диаграмма" +#. +#. #: ../../More/Delegation/README.rst:22 +#. msgid "Code" +#. msgstr "Код" +#. +#. #: ../../More/Delegation/README.rst:24 +#. msgid "You can also find these code on `GitHub`_" +#. msgstr "Вы можете найти этот код на `GitHub`_" +#. +#. #: ../../More/Delegation/README.rst:26 +#. msgid "Usage.php" +#. msgstr "Usage.php" +#. +#. #: ../../More/Delegation/README.rst:32 +#. msgid "TeamLead.php" +#. msgstr "TeamLead.php" +#. +#. #: ../../More/Delegation/README.rst:38 +#. msgid "JuniorDeveloper.php" +#. msgstr "JuniorDeveloper.php" +#. +#. #: ../../More/Delegation/README.rst:45 +#. msgid "Test" +#. msgstr "Тест" +#. +#. #: ../../More/Delegation/README.rst:47 +#. msgid "Tests/DelegationTest.php" +#. msgstr "Tests/DelegationTest.php" diff --git a/locale/ru/LC_MESSAGES/More/EAV/README.po b/locale/ru/LC_MESSAGES/More/EAV/README.po new file mode 100644 index 0000000..c101913 --- /dev/null +++ b/locale/ru/LC_MESSAGES/More/EAV/README.po @@ -0,0 +1,78 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: DesignPatternsPHP 1.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.3.4\n" + +#: ../../More/EAV/README.rst:2 +msgid "`Entity-Attribute-Value (EAV)`__" +msgstr "" + +#: ../../More/EAV/README.rst:4 +msgid "" +"The Entity–attribute–value (EAV) pattern in order to implement EAV model " +"with PHP." +msgstr "" + +#: ../../More/EAV/README.rst:7 +msgid "Purpose" +msgstr "" + +#: ../../More/EAV/README.rst:9 +msgid "" +"The Entity–attribute–value (EAV) model is a data model to describe " +"entities where the number of attributes (properties, parameters) that can" +" be used to describe them is potentially vast, but the number that will " +"actually apply to a given entity is relatively modest." +msgstr "" + +#: ../../More/EAV/README.rst:15 +msgid "Examples" +msgstr "" + +#: ../../More/EAV/README.rst:17 +msgid "Check full work example in `example.php`_ file." +msgstr "" + +#: ../../More/EAV/README.rst:90 +msgid "UML Diagram" +msgstr "" + +#: ../../More/EAV/README.rst:97 +msgid "Code" +msgstr "" + +#: ../../More/EAV/README.rst:99 +msgid "You can also find these code on `GitHub`_" +msgstr "" + +#: ../../More/EAV/README.rst:102 +msgid "Test" +msgstr "" + +#: ../../More/EAV/README.rst:104 +msgid "Tests/EntityTest.php" +msgstr "" + +#: ../../More/EAV/README.rst:110 +msgid "Tests/AttributeTest.php" +msgstr "" + +#: ../../More/EAV/README.rst:116 +msgid "Tests/ValueTest.php" +msgstr "" + diff --git a/locale/ru/LC_MESSAGES/README.po b/locale/ru/LC_MESSAGES/README.po index 5efb48e..5ef6690 100644 --- a/locale/ru/LC_MESSAGES/README.po +++ b/locale/ru/LC_MESSAGES/README.po @@ -76,8 +76,8 @@ msgid "(The MIT License)" msgstr "(The MIT License)" #: ../../README.rst:48 -msgid "Copyright (c) 2014 `Dominik Liebler`_ and `contributors`_" -msgstr "Copyright (c) 2014 `Dominik Liebler`_ and `contributors`_" +msgid "Copyright (c) 2011 - 2016 `Dominik Liebler`_ and `contributors`_" +msgstr "Copyright (c) 2011 - 2016 `Dominik Liebler`_ and `contributors`_" #: ../../README.rst:50 msgid "" diff --git a/locale/ru/LC_MESSAGES/Structural/Flyweight/README.po b/locale/ru/LC_MESSAGES/Structural/Flyweight/README.po new file mode 100644 index 0000000..9a8b771 --- /dev/null +++ b/locale/ru/LC_MESSAGES/Structural/Flyweight/README.po @@ -0,0 +1,69 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: DesignPatternsPHP 1.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.3.4\n" + +#: ../../Structural/Flyweight/README.rst:2 +msgid "`Flyweight`__" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:5 +msgid "Purpose" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:7 +msgid "" +"To minimise memory usage, a Flyweight shares as much as possible memory " +"with similar objects. It is needed when a large amount of objects is used" +" that don't differ much in state. A common practice is to hold state in " +"external data structures and pass them to the flyweight object when " +"needed." +msgstr "" + +#: ../../Structural/Flyweight/README.rst:12 +msgid "UML Diagram" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:19 +msgid "Code" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:21 +msgid "You can also find these code on `GitHub`_" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:23 +msgid "FlyweightInterface.php" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:29 +msgid "CharacterFlyweight.php" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:35 +msgid "FlyweightFactory.php" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:42 +msgid "Test" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:44 +msgid "Tests/FlyweightTest.php" +msgstr "" + diff --git a/locale/ru/LC_MESSAGES/Structural/Registry/README.po b/locale/ru/LC_MESSAGES/Structural/Registry/README.po index b7b7fe4..9c151a2 100644 --- a/locale/ru/LC_MESSAGES/Structural/Registry/README.po +++ b/locale/ru/LC_MESSAGES/Structural/Registry/README.po @@ -35,10 +35,10 @@ msgstr "Примеры" #: ../../Structural/Registry/README.rst:14 msgid "" -"Zend Framework: ``Zend_Registry`` holds the application's logger object, " -"front controller etc." +"Zend Framework 1: ``Zend_Registry`` holds the application's logger " +"object, front controller etc." msgstr "" -"Zend Framework: ``Zend_Registry`` содержит объект журналирования " +"Zend Framework 1: ``Zend_Registry`` содержит объект журналирования " "приложения (логгер), фронт-контроллер и т.д." #: ../../Structural/Registry/README.rst:16 diff --git a/locale/zh_CN/LC_MESSAGES/Behavioral/Mediator/README.po b/locale/zh_CN/LC_MESSAGES/Behavioral/Mediator/README.po index 9c6694b..6474cd1 100644 --- a/locale/zh_CN/LC_MESSAGES/Behavioral/Mediator/README.po +++ b/locale/zh_CN/LC_MESSAGES/Behavioral/Mediator/README.po @@ -21,8 +21,8 @@ msgstr "" #: ../../Behavioral/Mediator/README.rst:7 msgid "" -"This pattern provides an easy to decouple many components working together. " -"It is a good alternative over Observer IF you have a \"central " +"This pattern provides an easy way to decouple many components working " +"together. It is a good alternative to Observer IF you have a \"central " "intelligence\", like a controller (but not in the sense of the MVC)." msgstr "" diff --git a/locale/zh_CN/LC_MESSAGES/Behavioral/Memento/README.po b/locale/zh_CN/LC_MESSAGES/Behavioral/Memento/README.po index fa2378c..e92a849 100644 --- a/locale/zh_CN/LC_MESSAGES/Behavioral/Memento/README.po +++ b/locale/zh_CN/LC_MESSAGES/Behavioral/Memento/README.po @@ -1,15 +1,22 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. # +#, fuzzy msgid "" msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-05-29 12:18+0200\n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" +"Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.3.4\n" #: ../../Behavioral/Memento/README.rst:2 msgid "`Memento`__" @@ -19,6 +26,52 @@ msgstr "" msgid "Purpose" msgstr "" +#: ../../Behavioral/Memento/README.rst:7 +msgid "" +"It provides the ability to restore an object to it's previous state (undo" +" via rollback) or to gain access to state of the object, without " +"revealing it's implementation (i.e., the object is not required to have a" +" functional for return the current state)." +msgstr "" + +#: ../../Behavioral/Memento/README.rst:12 +msgid "" +"The memento pattern is implemented with three objects: the Originator, a " +"Caretaker and a Memento." +msgstr "" + +#: ../../Behavioral/Memento/README.rst:15 +msgid "" +"Memento – an object that *contains a concrete unique snapshot of state* " +"of any object or resource: string, number, array, an instance of class " +"and so on. The uniqueness in this case does not imply the prohibition " +"existence of similar states in different snapshots. That means the state " +"can be extracted as the independent clone. Any object stored in the " +"Memento should be *a full copy of the original object rather than a " +"reference* to the original object. The Memento object is a \"opaque " +"object\" (the object that no one can or should change)." +msgstr "" + +#: ../../Behavioral/Memento/README.rst:24 +msgid "" +"Originator – it is an object that contains the *actual state of an " +"external object is strictly specified type*. Originator is able to create" +" a unique copy of this state and return it wrapped in a Memento. The " +"Originator does not know the history of changes. You can set a concrete " +"state to Originator from the outside, which will be considered as actual." +" The Originator must make sure that given state corresponds the allowed " +"type of object. Originator may (but not should) have any methods, but " +"they *they can't make changes to the saved object state*." +msgstr "" + +#: ../../Behavioral/Memento/README.rst:33 +msgid "" +"Caretaker *controls the states history*. He may make changes to an " +"object; take a decision to save the state of an external object in the " +"Originator; ask from the Originator snapshot of the current state; or set" +" the Originator state to equivalence with some snapshot from history." +msgstr "" + #: ../../Behavioral/Memento/README.rst:39 msgid "Examples" msgstr "" @@ -31,6 +84,12 @@ msgstr "" msgid "The state in a finite state machine" msgstr "" +#: ../../Behavioral/Memento/README.rst:43 +msgid "" +"Control for intermediate states of `ORM Model " +"`_ before saving" +msgstr "" + #: ../../Behavioral/Memento/README.rst:46 msgid "UML Diagram" msgstr "" @@ -63,73 +122,3 @@ msgstr "" msgid "Tests/MementoTest.php" msgstr "" -#: ../../Behavioral/Memento/README.rst:7 -msgid "" -"It provides the ability to restore an object to it's previous state (undo " -"via rollback) or to gain access to state of the object, without revealing " -"it's implementation (i.e., the object is not required to have a functional " -"for return the current state)." -msgstr "" - -#: ../../Behavioral/Memento/README.rst:12 -msgid "" -"The memento pattern is implemented with three objects: the Originator, a " -"Caretaker and a Memento." -msgstr "" - -#: ../../Behavioral/Memento/README.rst:15 -msgid "" -"Memento – an object that *contains a concrete unique snapshot of state* of " -"any object or resource: string, number, array, an instance of class and so " -"on. The uniqueness in this case does not imply the prohibition existence of " -"similar states in different snapshots. That means the state can be extracted" -" as the independent clone. Any object stored in the Memento should be *a " -"full copy of the original object rather than a reference* to the original " -"object. The Memento object is a \"opaque object\" (the object that no one " -"can or should change)." -msgstr "" - -#: ../../Behavioral/Memento/README.rst:24 -msgid "" -"Originator – it is an object that contains the *actual state of an external " -"object is strictly specified type*. Originator is able to create a unique " -"copy of this state and return it wrapped in a Memento. The Originator does " -"not know the history of changes. You can set a concrete state to Originator " -"from the outside, which will be considered as actual. The Originator must " -"make sure that given state corresponds the allowed type of object. " -"Originator may (but not should) have any methods, but they *they can't make " -"changes to the saved object state*." -msgstr "" - -#: ../../Behavioral/Memento/README.rst:33 -msgid "" -"Caretaker *controls the states history*. He may make changes to an object; " -"take a decision to save the state of an external object in the Originator; " -"ask from the Originator snapshot of the current state; or set the Originator" -" state to equivalence with some snapshot from history." -msgstr "" - -#: ../../Behavioral/Memento/README.rst:43 -msgid "" -"Control for intermediate states of `ORM Model `_ before saving" -msgstr "" - -#~ msgid "" -#~ "Provide the ability to restore an object to its previous state (undo via " -#~ "rollback)." -#~ msgstr "" - -#~ msgid "" -#~ "The memento pattern is implemented with three objects: the originator, a " -#~ "caretaker and a memento. The originator is some object that has an internal " -#~ "state. The caretaker is going to do something to the originator, but wants " -#~ "to be able to undo the change. The caretaker first asks the originator for a" -#~ " memento object. Then it does whatever operation (or sequence of operations)" -#~ " it was going to do. To roll back to the state before the operations, it " -#~ "returns the memento object to the originator. The memento object itself is " -#~ "an opaque object (one which the caretaker cannot, or should not, change). " -#~ "When using this pattern, care should be taken if the originator may change " -#~ "other objects or resources - the memento pattern operates on a single " -#~ "object." -#~ msgstr "" diff --git a/locale/zh_CN/LC_MESSAGES/More/Delegation/README.po b/locale/zh_CN/LC_MESSAGES/More/Delegation/README.po index 0b52512..ac259f0 100644 --- a/locale/zh_CN/LC_MESSAGES/More/Delegation/README.po +++ b/locale/zh_CN/LC_MESSAGES/More/Delegation/README.po @@ -1,15 +1,22 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. # +#, fuzzy msgid "" msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-05-29 12:18+0200\n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" +"Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.3.4\n" #: ../../More/Delegation/README.rst:2 msgid "`Delegation`__" @@ -19,10 +26,26 @@ msgstr "" msgid "Purpose" msgstr "" +#: ../../More/Delegation/README.rst:7 +msgid "" +"Demonstrate the Delegator pattern, where an object, instead of performing" +" one of its stated tasks, delegates that task to an associated helper " +"object. In this case TeamLead professes to writeCode and Usage uses this," +" while TeamLead delegates writeCode to JuniorDeveloper's writeBadCode " +"function. This inverts the responsibility so that Usage is unknowingly " +"executing writeBadCode." +msgstr "" + #: ../../More/Delegation/README.rst:10 msgid "Examples" msgstr "" +#: ../../More/Delegation/README.rst:12 +msgid "" +"Please review JuniorDeveloper.php, TeamLead.php, and then Usage.php to " +"see it all tied together." +msgstr "" + #: ../../More/Delegation/README.rst:15 msgid "UML Diagram" msgstr "" @@ -55,21 +78,3 @@ msgstr "" msgid "Tests/DelegationTest.php" msgstr "" -#: ../../More/Delegation/README.rst:7 -msgid "" -"Demonstrate the Delegator pattern, where an object, instead of performing " -"one of its stated tasks, delegates that task to an associated helper object." -" In this case TeamLead professes to writeCode and Usage uses this, while " -"TeamLead delegates writeCode to JuniorDeveloper's writeBadCode function. " -"This inverts the responsibility so that Usage is unknowingly executing " -"writeBadCode." -msgstr "" - -#: ../../More/Delegation/README.rst:12 -msgid "" -"Please review JuniorDeveloper.php, TeamLead.php, and then Usage.php to see " -"it all tied together." -msgstr "" - -#~ msgid "..." -#~ msgstr "" diff --git a/locale/zh_CN/LC_MESSAGES/More/EAV/README.po b/locale/zh_CN/LC_MESSAGES/More/EAV/README.po new file mode 100644 index 0000000..c101913 --- /dev/null +++ b/locale/zh_CN/LC_MESSAGES/More/EAV/README.po @@ -0,0 +1,78 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: DesignPatternsPHP 1.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.3.4\n" + +#: ../../More/EAV/README.rst:2 +msgid "`Entity-Attribute-Value (EAV)`__" +msgstr "" + +#: ../../More/EAV/README.rst:4 +msgid "" +"The Entity–attribute–value (EAV) pattern in order to implement EAV model " +"with PHP." +msgstr "" + +#: ../../More/EAV/README.rst:7 +msgid "Purpose" +msgstr "" + +#: ../../More/EAV/README.rst:9 +msgid "" +"The Entity–attribute–value (EAV) model is a data model to describe " +"entities where the number of attributes (properties, parameters) that can" +" be used to describe them is potentially vast, but the number that will " +"actually apply to a given entity is relatively modest." +msgstr "" + +#: ../../More/EAV/README.rst:15 +msgid "Examples" +msgstr "" + +#: ../../More/EAV/README.rst:17 +msgid "Check full work example in `example.php`_ file." +msgstr "" + +#: ../../More/EAV/README.rst:90 +msgid "UML Diagram" +msgstr "" + +#: ../../More/EAV/README.rst:97 +msgid "Code" +msgstr "" + +#: ../../More/EAV/README.rst:99 +msgid "You can also find these code on `GitHub`_" +msgstr "" + +#: ../../More/EAV/README.rst:102 +msgid "Test" +msgstr "" + +#: ../../More/EAV/README.rst:104 +msgid "Tests/EntityTest.php" +msgstr "" + +#: ../../More/EAV/README.rst:110 +msgid "Tests/AttributeTest.php" +msgstr "" + +#: ../../More/EAV/README.rst:116 +msgid "Tests/ValueTest.php" +msgstr "" + diff --git a/locale/zh_CN/LC_MESSAGES/README.po b/locale/zh_CN/LC_MESSAGES/README.po index b2d9e60..f3bae2c 100644 --- a/locale/zh_CN/LC_MESSAGES/README.po +++ b/locale/zh_CN/LC_MESSAGES/README.po @@ -71,8 +71,8 @@ msgid "(The MIT License)" msgstr "MIT 授权协议" #: ../../README.rst:48 -msgid "Copyright (c) 2014 `Dominik Liebler`_ and `contributors`_" -msgstr "Copyright (c) 2014 `Dominik Liebler`_ 和 `贡献者`_" +msgid "Copyright (c) 2011 - 2016 `Dominik Liebler`_ and `contributors`_" +msgstr "Copyright (c) 2011 - 2016 `Dominik Liebler`_ 和 `贡献者`_" #: ../../README.rst:50 msgid "" diff --git a/locale/zh_CN/LC_MESSAGES/Structural/Flyweight/README.po b/locale/zh_CN/LC_MESSAGES/Structural/Flyweight/README.po new file mode 100644 index 0000000..9a8b771 --- /dev/null +++ b/locale/zh_CN/LC_MESSAGES/Structural/Flyweight/README.po @@ -0,0 +1,69 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015, Dominik Liebler and contributors +# This file is distributed under the same license as the DesignPatternsPHP +# package. +# FIRST AUTHOR , 2016. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: DesignPatternsPHP 1.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-06-03 23:59+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.3.4\n" + +#: ../../Structural/Flyweight/README.rst:2 +msgid "`Flyweight`__" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:5 +msgid "Purpose" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:7 +msgid "" +"To minimise memory usage, a Flyweight shares as much as possible memory " +"with similar objects. It is needed when a large amount of objects is used" +" that don't differ much in state. A common practice is to hold state in " +"external data structures and pass them to the flyweight object when " +"needed." +msgstr "" + +#: ../../Structural/Flyweight/README.rst:12 +msgid "UML Diagram" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:19 +msgid "Code" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:21 +msgid "You can also find these code on `GitHub`_" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:23 +msgid "FlyweightInterface.php" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:29 +msgid "CharacterFlyweight.php" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:35 +msgid "FlyweightFactory.php" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:42 +msgid "Test" +msgstr "" + +#: ../../Structural/Flyweight/README.rst:44 +msgid "Tests/FlyweightTest.php" +msgstr "" + diff --git a/locale/zh_CN/LC_MESSAGES/Structural/Registry/README.po b/locale/zh_CN/LC_MESSAGES/Structural/Registry/README.po index f01d956..d56535f 100644 --- a/locale/zh_CN/LC_MESSAGES/Structural/Registry/README.po +++ b/locale/zh_CN/LC_MESSAGES/Structural/Registry/README.po @@ -66,8 +66,8 @@ msgstr "" #: ../../Structural/Registry/README.rst:14 msgid "" -"Zend Framework 1: ``Zend_Registry`` holds the application's logger object, " -"front controller etc." +"Zend Framework 1: ``Zend_Registry`` holds the application's logger " +"object, front controller etc." msgstr "" "Zend Framework 1: ``Zend_Registry`` 持有应用的logger对象,前端控制器等。"