From a494c0725582475b09139704dd6bafd6cc384aba Mon Sep 17 00:00:00 2001 From: Dominik Liebler Date: Thu, 14 Jun 2018 21:14:53 +0200 Subject: [PATCH] removed delegation as it is not a pattern but merely a concept in OOP --- More/Delegation/JuniorDeveloper.php | 19 -- More/Delegation/README.rst | 52 ----- More/Delegation/TeamLead.php | 38 ---- More/Delegation/Tests/DelegationTest.php | 25 --- More/Delegation/uml/Delegation.uml | 21 -- More/Delegation/uml/uml.png | Bin 5924 -> 0 bytes More/Delegation/uml/uml.svg | 196 ------------------ More/README.md | 1 - More/README.rst | 1 - README.md | 2 +- .../ca/LC_MESSAGES/More/Delegation/README.po | 64 ------ .../de/LC_MESSAGES/More/Delegation/README.po | 64 ------ .../es/LC_MESSAGES/More/Delegation/README.po | 64 ------ .../LC_MESSAGES/More/Delegation/README.po | 72 ------- .../pl/LC_MESSAGES/More/Delegation/README.po | 72 ------- .../LC_MESSAGES/More/Delegation/README.po | 69 ------ .../ru/LC_MESSAGES/More/Delegation/README.po | 72 ------- .../tr/LC_MESSAGES/More/Delegation/README.po | 63 ------ .../LC_MESSAGES/More/Delegation/README.po | 64 ------ 19 files changed, 1 insertion(+), 958 deletions(-) delete mode 100644 More/Delegation/JuniorDeveloper.php delete mode 100644 More/Delegation/README.rst delete mode 100644 More/Delegation/TeamLead.php delete mode 100644 More/Delegation/Tests/DelegationTest.php delete mode 100644 More/Delegation/uml/Delegation.uml delete mode 100644 More/Delegation/uml/uml.png delete mode 100644 More/Delegation/uml/uml.svg delete mode 100644 locale/ca/LC_MESSAGES/More/Delegation/README.po delete mode 100644 locale/de/LC_MESSAGES/More/Delegation/README.po delete mode 100644 locale/es/LC_MESSAGES/More/Delegation/README.po delete mode 100644 locale/es_MX/LC_MESSAGES/More/Delegation/README.po delete mode 100644 locale/pl/LC_MESSAGES/More/Delegation/README.po delete mode 100644 locale/pt_BR/LC_MESSAGES/More/Delegation/README.po delete mode 100644 locale/ru/LC_MESSAGES/More/Delegation/README.po delete mode 100644 locale/tr/LC_MESSAGES/More/Delegation/README.po delete mode 100644 locale/zh_CN/LC_MESSAGES/More/Delegation/README.po diff --git a/More/Delegation/JuniorDeveloper.php b/More/Delegation/JuniorDeveloper.php deleted file mode 100644 index c8da3ee..0000000 --- a/More/Delegation/JuniorDeveloper.php +++ /dev/null @@ -1,19 +0,0 @@ -writeReallyBadCode(); - } -} diff --git a/More/Delegation/README.rst b/More/Delegation/README.rst deleted file mode 100644 index 65cfa72..0000000 --- a/More/Delegation/README.rst +++ /dev/null @@ -1,52 +0,0 @@ -`Delegation`__ -============== - -Purpose -------- - -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. - -Examples --------- - -Please review JuniorDeveloper.php, TeamLead.php, and then Usage.php to see it all tied together. - -UML Diagram ------------ - -.. image:: uml/uml.png - :alt: Alt Delegation UML Diagram - :align: center - -Code ----- - -You can also find this code on `GitHub`_ - -TeamLead.php - -.. literalinclude:: TeamLead.php - :language: php - :linenos: - -JuniorDeveloper.php - -.. literalinclude:: JuniorDeveloper.php - :language: php - :linenos: - -Test ----- - -Tests/DelegationTest.php - -.. literalinclude:: Tests/DelegationTest.php - :language: php - :linenos: - -.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/More/Delegation -.. __: http://en.wikipedia.org/wiki/Delegation_pattern diff --git a/More/Delegation/TeamLead.php b/More/Delegation/TeamLead.php deleted file mode 100644 index 8a515e6..0000000 --- a/More/Delegation/TeamLead.php +++ /dev/null @@ -1,38 +0,0 @@ -junior = $junior; - } - - public function writeCode(): string - { - return $this->junior->writeBadCode(); - } - - public function writeBadCode(): string - { - //note that we are passing $this from teamLead context - return $this->junior->writeReallyBadCode($this); - } - - /** - * Junior can call this method - */ - public function writeReallyBadCode(): string - { - return 'Even team lead can write bad code...'; - } -} diff --git a/More/Delegation/Tests/DelegationTest.php b/More/Delegation/Tests/DelegationTest.php deleted file mode 100644 index 0dd8083..0000000 --- a/More/Delegation/Tests/DelegationTest.php +++ /dev/null @@ -1,25 +0,0 @@ -assertEquals($junior->writeBadCode(), $teamLead->writeCode()); - } - - public function testTeamLeadCanWriteBadCode() - { - $junior = new Delegation\JuniorDeveloper(); - $teamLead = new Delegation\TeamLead($junior); - - $this->assertEquals($junior->writeReallyBadCode($teamLead), $teamLead->writeBadCode()); - } -} diff --git a/More/Delegation/uml/Delegation.uml b/More/Delegation/uml/Delegation.uml deleted file mode 100644 index ffb8e68..0000000 --- a/More/Delegation/uml/Delegation.uml +++ /dev/null @@ -1,21 +0,0 @@ - - - PHP - \DesignPatterns\More\Delegation\JuniorDeveloper - - \DesignPatterns\More\Delegation\JuniorDeveloper - \DesignPatterns\More\Delegation\TeamLead - - - - - - - Fields - Constants - Constructors - Methods - - private - - diff --git a/More/Delegation/uml/uml.png b/More/Delegation/uml/uml.png deleted file mode 100644 index f673da2f47cfa3b71c36b999a529cdc47c25e29a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5924 zcmai&cQ{;KyT%bBTJ+v~lwforI?k$%9yS#=3JMCIvXZ5Xh5+V8~aIGc2SHfs#=QzL*-K z#WpgbufLstad7=2*VB5goYn}cW>;!w`h0?i>l=Mo!_tA6_^g=NCc5_I26~>2zy6fu znD?1v_U`MmC3bHj)0pTu=A@8myHk=x5CsvT91~DU9ybcanDlQEA%Nvy-u-8^s)C^7 zZ_f&d8f2Tu-^v1W^WSDxN7W{8jk&3-v1Q(=O~dUO9^U*FTvg+y8ne@TR_==_c}ceo zZm|h83vzuq%Oz|=oI=>;K}WUQcDK028$jjDCjxkh|2arb^do2Ju5MO!l=5`lm0T$1 z{l$Um`6iE4j{Xyk99iiW(-G|{G5+rc*0n{ERa;pUF+;~HLxxbP7U#hI(8!al9uD+h zPIHJ#xA-U1Hx5Ox$vSOSF4D+0!RHQrKTLS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gbaTq0yXWi%pfefN4?j{Ae!LAk`0VV#z6DwjPXQP7L0bBh- zj}GgsyZYeo#{l-Da<4BegWS=FF?T|Zu>%v~wrA126K}(7?}z|0gehj4U(=~O65h3< zLv|>?$1@6WQIBmzs8u@2nX6bH`3bN%84I9TAPjNp6T0)r!!2Domo3f5QC~vRjj`{c zGXrHl;q4N_oe=d)ZY4Ok0&Z)}I}t)Zfnav>qg{^v_GD2^7FI56mj$!Kk;Jx-BPbq~ zA(@Y%8`9@0P5837!Y`IGIJ^2wab?vlrksvIK)sFJ|dTuYN z_f^E9xse7tJ1xOCMGYE%PLluTT6p5$=gR+#rXY9pDYLTx>E8^#$kT5WWd#lSYFYD; F{{S - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - writeBadCode() - - - - - - - - - - - - - JuniorDeveloper - - - JuniorDeveloper - - - - - - - - - - - - - - - - - - - slave - - - - - - - - - - - - - __construct(junior) - - - - - - - - - - - - - writeCode() - - - - - - - - - - - - - TeamLead - - - TeamLead - - - diff --git a/More/README.md b/More/README.md index cba33e7..be4341b 100644 --- a/More/README.md +++ b/More/README.md @@ -1,6 +1,5 @@ # More -* [Delegation](Delegation) [:notebook:](http://en.wikipedia.org/wiki/Delegation_pattern) * [ServiceLocator](ServiceLocator) [:notebook:](http://en.wikipedia.org/wiki/Service_locator_pattern) * [Repository](Repository) * [EAV](EAV) [:notebook:](https://en.wikipedia.org/wiki/Entity%E2%80%93attribute%E2%80%93value_model) diff --git a/More/README.rst b/More/README.rst index a2de938..c224c02 100644 --- a/More/README.rst +++ b/More/README.rst @@ -4,7 +4,6 @@ More .. toctree:: :titlesonly: - Delegation/README ServiceLocator/README Repository/README EAV/README diff --git a/README.md b/README.md index 872e9de..6fd823c 100755 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ The patterns can be structured in roughly three different categories. Please cli * [Visitor](Behavioral/Visitor) [:notebook:](http://en.wikipedia.org/wiki/Visitor_pattern) ### [More](More) -* [Delegation](More/Delegation) [:notebook:](http://en.wikipedia.org/wiki/Delegation_pattern) + * [ServiceLocator](More/ServiceLocator) [:notebook:](http://en.wikipedia.org/wiki/Service_locator_pattern) (is considered an anti-pattern! :no_entry:) * [Repository](More/Repository) * [EAV](More/EAV) [:notebook:](https://en.wikipedia.org/wiki/Entity%E2%80%93attribute%E2%80%93value_model) diff --git a/locale/ca/LC_MESSAGES/More/Delegation/README.po b/locale/ca/LC_MESSAGES/More/Delegation/README.po deleted file mode 100644 index 4332b4f..0000000 --- a/locale/ca/LC_MESSAGES/More/Delegation/README.po +++ /dev/null @@ -1,64 +0,0 @@ -# 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/Delegation/README.rst:2 -msgid "`Delegation`__" -msgstr "" - -#: ../../More/Delegation/README.rst:5 -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 "" - -#: ../../More/Delegation/README.rst:22 -msgid "Code" -msgstr "" - -#: ../../More/Delegation/README.rst:24 -msgid "You can also find this code on `GitHub`_" -msgstr "" - -#: ../../More/Delegation/README.rst:45 -msgid "Test" -msgstr "" - diff --git a/locale/de/LC_MESSAGES/More/Delegation/README.po b/locale/de/LC_MESSAGES/More/Delegation/README.po deleted file mode 100644 index 4332b4f..0000000 --- a/locale/de/LC_MESSAGES/More/Delegation/README.po +++ /dev/null @@ -1,64 +0,0 @@ -# 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/Delegation/README.rst:2 -msgid "`Delegation`__" -msgstr "" - -#: ../../More/Delegation/README.rst:5 -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 "" - -#: ../../More/Delegation/README.rst:22 -msgid "Code" -msgstr "" - -#: ../../More/Delegation/README.rst:24 -msgid "You can also find this code on `GitHub`_" -msgstr "" - -#: ../../More/Delegation/README.rst:45 -msgid "Test" -msgstr "" - diff --git a/locale/es/LC_MESSAGES/More/Delegation/README.po b/locale/es/LC_MESSAGES/More/Delegation/README.po deleted file mode 100644 index b725b28..0000000 --- a/locale/es/LC_MESSAGES/More/Delegation/README.po +++ /dev/null @@ -1,64 +0,0 @@ -# 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/Delegation/README.rst:2 -msgid "`Delegation`__" -msgstr "" - -#: ../../More/Delegation/README.rst:5 -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 "" - -#: ../../More/Delegation/README.rst:22 -msgid "Code" -msgstr "" - -#: ../../More/Delegation/README.rst:24 -msgid "You can also find this code on `GitHub`_" -msgstr "Puedes encontrar el código en `GitHub`_" - -#: ../../More/Delegation/README.rst:45 -msgid "Test" -msgstr "" - diff --git a/locale/es_MX/LC_MESSAGES/More/Delegation/README.po b/locale/es_MX/LC_MESSAGES/More/Delegation/README.po deleted file mode 100644 index 0485555..0000000 --- a/locale/es_MX/LC_MESSAGES/More/Delegation/README.po +++ /dev/null @@ -1,72 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: DesignPatternsPHP " -"d4972f03fc93de3ef10bb31220de49931487d5e0\n" -"POT-Creation-Date: 2016-09-23 12:56-0500\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"X-Generator: Poedit 1.8.9\n" -"Last-Translator: Axel Pardemann \n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"Language: es_MX\n" - -#: ../../More/Delegation/README.rst:1 -msgid "Delegation" -msgstr "Delegación" - -#: ../../More/Delegation/README.rst:4 -msgid "Purpose" -msgstr "Propósito" - -#: ../../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 "" -"Demostrar el patrón Delegador, en el cual un objeto, en vez de desempeñar " -"una de sus tareas asignadas, delega esta tarea a un objeto de ayuda " -"asociado. En este caso *TeamLead* (líder de equipo) establece *writeCode* " -"(escribe código) y *Usage* (uso) utiliza esta función, mientras que " -"*TeamLead* delega *writeCode* a JuniorDeveloper (desarrolaldor junior) a " -"través de la funcióin *writeBadCode* (escribe mal código). Esto invierte la " -"responsabilidad de tal manera que *Usage* está ejecutando *writeBadCode* sin " -"saberlo." - -#: ../../More/Delegation/README.rst:13 -msgid "Examples" -msgstr "Ejemplos" - -#: ../../More/Delegation/README.rst:16 -msgid "" -"Please review JuniorDeveloper.php, TeamLead.php, and then Usage.php to see " -"it all tied together." -msgstr "" -"Por favor revisa JuniorDeveloper.php, TeamLead.php y luego Usage.php para " -"ver como se integran en conjunto." - -#: ../../More/Delegation/README.rst:18 -msgid "UML Diagram" -msgstr "Diagrama UML" - -#: ../../More/Delegation/README.rst:22 -msgid "Alt Delegation UML Diagram" -msgstr "Alt Diagrama UML Delegacion" - -#: ../../More/Delegation/README.rst:25 -msgid "Code" -msgstr "Código" - -#: ../../More/Delegation/README.rst:28 -msgid "You can also find this code on `GitHub`_" -msgstr "Puedes encontrar este código también en `GitHub`_" - -#: ../../More/Delegation/README.rst:42 -msgid "Test" -msgstr "Pruebas" diff --git a/locale/pl/LC_MESSAGES/More/Delegation/README.po b/locale/pl/LC_MESSAGES/More/Delegation/README.po deleted file mode 100644 index 0686f5f..0000000 --- a/locale/pl/LC_MESSAGES/More/Delegation/README.po +++ /dev/null @@ -1,72 +0,0 @@ -# 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: Nikita Strelkov \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/Delegation/README.rst:2 -msgid "`Delegation`__" -msgstr "Delegacja (`Delegation`__)" - -#: ../../More/Delegation/README.rst:5 -msgid "Purpose" -msgstr "Przeznaczenie" - -#: ../../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 "" -"Ideą wzorca projektowego Delegacji jest przekazanie zadania, które obiekt delegujący " -"powinien wykonać (ze względu na zdefiniowaną w nim metodę) do innego, powiązanego " -"obiektu, który to zadanie wykonuje. W tym przykładzie klasa ``TeamLead`` posiada metodę " -"``writeCode()``, która jest wykorzystywana w klasie ``DelegationTest``. Jednak realizacja tej metody " -"tak na prawdę odbywa się poprzez metodę ``writeBadCode()`` w klasie ``JuniorDeveloper`` - obiekt klasy " -"``TeamLead`` wykonanie tej metody deleguje na obiekt klasy ``JuniorDeveloper``. W ten sposób test nieświadomie " -"uruchamia metodę ``writeBadCode()``." - -#: ../../More/Delegation/README.rst:10 -msgid "Examples" -msgstr "Przykłady" - -#: ../../More/Delegation/README.rst:12 -msgid "" -"Please review JuniorDeveloper.php, TeamLead.php, and then Usage.php to " -"see it all tied together." -msgstr "" -"Sprawdź zawartość klasy ``JuniorDeveloper``, ``TeamLead`` oraz ``DelegationTest``, " -"aby zapoznać się z ideą działania tego wzorca." - -#: ../../More/Delegation/README.rst:15 -msgid "UML Diagram" -msgstr "Diagram UML" - -#: ../../More/Delegation/README.rst:22 -msgid "Code" -msgstr "Kod" - -#: ../../More/Delegation/README.rst:24 -msgid "You can also find this code on `GitHub`_" -msgstr "Ten kod znajdziesz również na `GitHub`_." - -#: ../../More/Delegation/README.rst:45 -msgid "Test" -msgstr "Testy" diff --git a/locale/pt_BR/LC_MESSAGES/More/Delegation/README.po b/locale/pt_BR/LC_MESSAGES/More/Delegation/README.po deleted file mode 100644 index 7580c26..0000000 --- a/locale/pt_BR/LC_MESSAGES/More/Delegation/README.po +++ /dev/null @@ -1,69 +0,0 @@ -# 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: 2017-08-21 23:09-0300\n" -"Last-Translator: Leonam Pereira Dias \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/Delegation/README.rst:2 -msgid "`Delegation`__" -msgstr "`Delegação`__" - -#: ../../More/Delegation/README.rst:5 -msgid "Purpose" -msgstr "Objetivo" - -#: ../../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 "Demonstrar o padrão Delegação (Delegator) onde, um objeto, ao invés de executar" -" uma de suas tarefas definidas, delega essa tarefa a um objeto associado. " -" Neste caso TeamLead declara writeCode e Usage o usa," -" enquanto TeamLead delega writeCode ao método writeBadCode de JuniorDeveloper. " -" Esta implementação inverte a responsabilidade de modo que Usage não tem conhecimento da " -" execução do método writeBadCode." - -#: ../../More/Delegation/README.rst:10 -msgid "Examples" -msgstr "Exemplos" - -#: ../../More/Delegation/README.rst:12 -msgid "" -"Please review JuniorDeveloper.php, TeamLead.php, and then Usage.php to " -"see it all tied together." -msgstr "Por favor, veja JuniorDeveloper.php, TeamLead.php e depois Usage.php para " -"ver tudo de maneira conjunta" - -#: ../../More/Delegation/README.rst:15 -msgid "UML Diagram" -msgstr "Diagrama UML" - -#: ../../More/Delegation/README.rst:22 -msgid "Code" -msgstr "Código" - -#: ../../More/Delegation/README.rst:24 -msgid "You can also find this code on `GitHub`_" -msgstr "Você também pode encontrar esse código no `Github`_" - -#: ../../More/Delegation/README.rst:45 -msgid "Test" -msgstr "" diff --git a/locale/ru/LC_MESSAGES/More/Delegation/README.po b/locale/ru/LC_MESSAGES/More/Delegation/README.po deleted file mode 100644 index 4ebbd33..0000000 --- a/locale/ru/LC_MESSAGES/More/Delegation/README.po +++ /dev/null @@ -1,72 +0,0 @@ -# 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: Nikita Strelkov \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/Delegation/README.rst:2 -msgid "`Delegation`__" -msgstr "`Делегирование `_ (`Delegation`__)" - -#: ../../More/Delegation/README.rst:5 -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 "" -"В этом примере демонстрируется шаблон 'Делегирование', в котором объект, " -"вместо того чтобы выполнять одну из своих поставленных задач, поручает её " -"связанному вспомогательному объекту. В рассматриваемом ниже примере объект " -"TeamLead должен выполнять задачу writeCode, а объект Usage использовать " -"его, но при этом TeamLead перепоручает выполнение задачи writeCode функции " -"writeBadCode объекта JuniorDeveloper. Это инвертирует ответственность так, " -"что объект Usage не зная того выполняет writeBadCode." - -#: ../../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 "" -"Просмотрите, пожалуйста, сначала JuniorDeveloper.php, TeamLead.php " -"и затем Usage.php, чтобы увидеть, как они связаны." - -#: ../../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 this code on `GitHub`_" -msgstr "Вы можете найти этот код на `GitHub`_" - -#: ../../More/Delegation/README.rst:45 -msgid "Test" -msgstr "Тест" diff --git a/locale/tr/LC_MESSAGES/More/Delegation/README.po b/locale/tr/LC_MESSAGES/More/Delegation/README.po deleted file mode 100644 index c4a3b76..0000000 --- a/locale/tr/LC_MESSAGES/More/Delegation/README.po +++ /dev/null @@ -1,63 +0,0 @@ -# -msgid "" -msgstr "" -"Project-Id-Version: DesignPatternsPHP 1.0\n" -"POT-Creation-Date: 2017-12-16 05:32+0300\n" -"PO-Revision-Date: 2017-12-16 05:32+0300\n" -"Last-Translator: Faruk Zeren\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: tr\n" -"Language-Team: Mütercimler\n" - -#: ../../More/Delegation/README.rst:1 -msgid "Delegation" -msgstr "Delegation (Görevlendirme)" - -#: ../../More/Delegation/README.rst:4 -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 "" -"Örnekte gösterilen kodda, bir nesne kendisine belirlenen (defined) görevlerden bir tanesini " -"kendisi yapmaz ve görevi ilişkili bir yardımcı nesneye atar. Bu durumda ``TeamLead``, " -"``writeCode`` yöntemi ile görevi kabul eder ve ``Usage`` de bunu kullanır. Ancak " -"``TeamLead`` uyanıklık yapar :) ve görevi ``JuniorDeveloper`` içerisinden ``writeBadCode`` " -"yöntemine atar. Aslında bu, sorumluluğu tersine çevirir ve böylece ``Usage`` farkında olmadan " -"``writeBadCode`` yöntemini çalıştırmış olur." - -#: ../../More/Delegation/README.rst:13 -msgid "Examples" -msgstr "Örnekler" - -#: ../../More/Delegation/README.rst:16 -msgid "Please review JuniorDeveloper.php, TeamLead.php, and then Usage.php to see it all tied together." -msgstr "Tüm bağlantıları bir arada görebilmek için, önce JuniorDeveloper.php ve TeamLead.php dosyalarını, sonra da Usage (Test) kısmını lütfen dikkatlice inceleyiniz." - -#: ../../More/Delegation/README.rst:18 -msgid "UML Diagram" -msgstr "UML Diyagramı" - -#: ../../More/Delegation/README.rst:22 -msgid "Alt Delegation UML Diagram" -msgstr "Alt Delegation UML Diyagramı" - -#: ../../More/Delegation/README.rst:25 -msgid "Code" -msgstr "Kod" - -#: ../../More/Delegation/README.rst:28 -msgid "You can also find this code on `GitHub`_" -msgstr "Bu kodu `Github`_ üzerinde de bulabilirsiniz." - -#: ../../More/Delegation/README.rst:42 -msgid "Test" -msgstr "Test" \ No newline at end of file diff --git a/locale/zh_CN/LC_MESSAGES/More/Delegation/README.po b/locale/zh_CN/LC_MESSAGES/More/Delegation/README.po deleted file mode 100644 index 4332b4f..0000000 --- a/locale/zh_CN/LC_MESSAGES/More/Delegation/README.po +++ /dev/null @@ -1,64 +0,0 @@ -# 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/Delegation/README.rst:2 -msgid "`Delegation`__" -msgstr "" - -#: ../../More/Delegation/README.rst:5 -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 "" - -#: ../../More/Delegation/README.rst:22 -msgid "Code" -msgstr "" - -#: ../../More/Delegation/README.rst:24 -msgid "You can also find this code on `GitHub`_" -msgstr "" - -#: ../../More/Delegation/README.rst:45 -msgid "Test" -msgstr "" -