From 62e6f5dbc89e21c3fd660224c893b392e3f37bf0 Mon Sep 17 00:00:00 2001 From: Dominik Liebler Date: Sat, 14 Dec 2019 13:55:04 +0100 Subject: [PATCH] remove Multiton --- Creational/Multiton/Multiton.php | 44 ----------- Creational/Multiton/README.rst | 46 ----------- Creational/Multiton/Tests/MultitonTest.php | 28 ------- Creational/Multiton/uml/uml.png | Bin 6036 -> 0 bytes Creational/README.md | 1 - Creational/README.rst | 1 - Creational/Singleton/README.rst | 3 +- README.md | 1 - .../LC_MESSAGES/Creational/Multiton/README.po | 60 -------------- .../Creational/Singleton/README.po | 4 +- .../LC_MESSAGES/Creational/Multiton/README.po | 67 ---------------- .../Creational/Singleton/README.po | 6 +- .../LC_MESSAGES/Creational/Multiton/README.po | 67 ---------------- .../Creational/Singleton/README.po | 6 +- .../LC_MESSAGES/Creational/Multiton/README.po | 73 ----------------- .../Creational/Singleton/README.po | 6 +- .../LC_MESSAGES/Creational/Multiton/README.po | 66 ---------------- .../Creational/Singleton/README.po | 5 +- .../LC_MESSAGES/Creational/Multiton/README.po | 65 --------------- .../Creational/Singleton/README.po | 6 +- .../LC_MESSAGES/Creational/Multiton/README.po | 68 ---------------- .../Creational/Singleton/README.po | 6 +- .../LC_MESSAGES/Creational/Multiton/README.po | 74 ------------------ .../Creational/Singleton/README.po | 6 +- .../LC_MESSAGES/Creational/Multiton/README.po | 61 --------------- .../Creational/Singleton/README.po | 5 +- 26 files changed, 18 insertions(+), 757 deletions(-) delete mode 100644 Creational/Multiton/Multiton.php delete mode 100644 Creational/Multiton/README.rst delete mode 100644 Creational/Multiton/Tests/MultitonTest.php delete mode 100644 Creational/Multiton/uml/uml.png delete mode 100644 locale/ca/LC_MESSAGES/Creational/Multiton/README.po delete mode 100644 locale/de/LC_MESSAGES/Creational/Multiton/README.po delete mode 100644 locale/es/LC_MESSAGES/Creational/Multiton/README.po delete mode 100644 locale/es_MX/LC_MESSAGES/Creational/Multiton/README.po delete mode 100644 locale/pl/LC_MESSAGES/Creational/Multiton/README.po delete mode 100644 locale/pt_BR/LC_MESSAGES/Creational/Multiton/README.po delete mode 100644 locale/ru/LC_MESSAGES/Creational/Multiton/README.po delete mode 100644 locale/tr/LC_MESSAGES/Creational/Multiton/README.po delete mode 100644 locale/zh_CN/LC_MESSAGES/Creational/Multiton/README.po diff --git a/Creational/Multiton/Multiton.php b/Creational/Multiton/Multiton.php deleted file mode 100644 index 1ca9a23..0000000 --- a/Creational/Multiton/Multiton.php +++ /dev/null @@ -1,44 +0,0 @@ -assertInstanceOf(Multiton::class, $firstCall); - $this->assertSame($firstCall, $secondCall); - } - - public function testUniquenessForEveryInstance() - { - $firstCall = Multiton::getInstance(Multiton::INSTANCE_1); - $secondCall = Multiton::getInstance(Multiton::INSTANCE_2); - - $this->assertInstanceOf(Multiton::class, $firstCall); - $this->assertInstanceOf(Multiton::class, $secondCall); - $this->assertNotSame($firstCall, $secondCall); - } -} diff --git a/Creational/Multiton/uml/uml.png b/Creational/Multiton/uml/uml.png deleted file mode 100644 index df5f72167ccd4fb35d0efdae42f6dd1227dbb79d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6036 zcmZ8lXH-*Nv!)sWF$mHW42Tp_1i=@j2C0HHfzYe;E}(Q15TvLG(tD6zq$o%+QbH93 zA|Sma^bQFS2oRDReZTLnb?=XJ_FiYrnVGfsJoC&^w%}1&RR8-XL zl>P8|8p?Ziqk?<^`TMV)OOCX$>pA@o_!lZ)u$>5kG@xT-#-$?oIR9ZeHrXlTwH<(c8Lnl zK<@grIP1Q6@d6@c2r4f}z)Ngm-#-rH6Om|sRZaD(4M-ObI!^;;p@Z`McOfdV5W@M+ z|GQvmA7TK1#QwAVN1C!QDu6fbYJN26?;AJpFiKLKFVcKLzF7n1+jx~)aHliCl)Gr?`7XVdNgbspypIu z?kl?ftj?e%G^Qd<+Aa!tf#PcKZ_|YNA zuvcW)_kjn3=Y7@Q1(cB4;~@2@a^LYgGGN&f$7eNf*<)g3Kk7MNy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!Fe}>loe_H)on+!y8L7*NTPs=FNb}CIZUDYaO+gJYs-)uD$ diff --git a/Creational/README.md b/Creational/README.md index a201713..3183e7d 100644 --- a/Creational/README.md +++ b/Creational/README.md @@ -9,7 +9,6 @@ solve this problem by somehow controlling this object creation. * [AbstractFactory](AbstractFactory) [:notebook:](http://en.wikipedia.org/wiki/Abstract_factory_pattern) * [Builder](Builder) [:notebook:](http://en.wikipedia.org/wiki/Builder_pattern) * [FactoryMethod](FactoryMethod) [:notebook:](http://en.wikipedia.org/wiki/Factory_method_pattern) -* [Multiton](Multiton) (is considered an anti-pattern! :no_entry:) * [Pool](Pool) [:notebook:](http://en.wikipedia.org/wiki/Object_pool_pattern) * [Prototype](Prototype) [:notebook:](http://en.wikipedia.org/wiki/Prototype_pattern) * [SimpleFactory](SimpleFactory) diff --git a/Creational/README.rst b/Creational/README.rst index 43b9c3b..830fdd3 100644 --- a/Creational/README.rst +++ b/Creational/README.rst @@ -14,7 +14,6 @@ this object creation. AbstractFactory/README Builder/README FactoryMethod/README - Multiton/README Pool/README Prototype/README SimpleFactory/README diff --git a/Creational/Singleton/README.rst b/Creational/Singleton/README.rst index a1c7673..0398512 100644 --- a/Creational/Singleton/README.rst +++ b/Creational/Singleton/README.rst @@ -14,8 +14,7 @@ Examples -------- - DB Connector -- Logger (may also be a Multiton if there are many log files for - several purposes) +- Logger - Lock file for the application (there is only one in the filesystem ...) diff --git a/README.md b/README.md index 2d5e4bc..77fe663 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,6 @@ The patterns can be structured in roughly three different categories. Please cli * [AbstractFactory](Creational/AbstractFactory) [:notebook:](http://en.wikipedia.org/wiki/Abstract_factory_pattern) * [Builder](Creational/Builder) [:notebook:](http://en.wikipedia.org/wiki/Builder_pattern) * [FactoryMethod](Creational/FactoryMethod) [:notebook:](http://en.wikipedia.org/wiki/Factory_method_pattern) -* [Multiton](Creational/Multiton) (is considered an anti-pattern! :no_entry:) * [Pool](Creational/Pool) [:notebook:](http://en.wikipedia.org/wiki/Object_pool_pattern) * [Prototype](Creational/Prototype) [:notebook:](http://en.wikipedia.org/wiki/Prototype_pattern) * [SimpleFactory](Creational/SimpleFactory) diff --git a/locale/ca/LC_MESSAGES/Creational/Multiton/README.po b/locale/ca/LC_MESSAGES/Creational/Multiton/README.po deleted file mode 100644 index caa1137..0000000 --- a/locale/ca/LC_MESSAGES/Creational/Multiton/README.po +++ /dev/null @@ -1,60 +0,0 @@ -# -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" - -#: ../../Creational/Multiton/README.rst:2 -msgid "Multiton" -msgstr "" - -#: ../../Creational/Multiton/README.rst:4 -msgid "" -"**THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND " -"MAINTAINABILITY USE DEPENDENCY INJECTION!**" -msgstr "" - -#: ../../Creational/Multiton/README.rst:8 -msgid "Purpose" -msgstr "" - -#: ../../Creational/Multiton/README.rst:10 -msgid "" -"To have only a list of named instances that are used, like a singleton but " -"with n instances." -msgstr "" - -#: ../../Creational/Multiton/README.rst:14 -msgid "Examples" -msgstr "" - -#: ../../Creational/Multiton/README.rst:16 -msgid "2 DB Connectors, e.g. one for MySQL, the other for SQLite" -msgstr "" - -#: ../../Creational/Multiton/README.rst:17 -msgid "multiple Loggers (one for debug messages, one for errors)" -msgstr "" - -#: ../../Creational/Multiton/README.rst:20 -msgid "UML Diagram" -msgstr "" - -#: ../../Creational/Multiton/README.rst:27 -msgid "Code" -msgstr "" - -#: ../../Creational/Multiton/README.rst:29 -msgid "You can also find this code on `GitHub`_" -msgstr "" - -#: ../../Creational/Multiton/README.rst:38 -msgid "Test" -msgstr "" diff --git a/locale/ca/LC_MESSAGES/Creational/Singleton/README.po b/locale/ca/LC_MESSAGES/Creational/Singleton/README.po index bcf716e..0d64ec3 100644 --- a/locale/ca/LC_MESSAGES/Creational/Singleton/README.po +++ b/locale/ca/LC_MESSAGES/Creational/Singleton/README.po @@ -40,9 +40,7 @@ msgid "DB Connector" msgstr "" #: ../../Creational/Singleton/README.rst:17 -msgid "" -"Logger (may also be a Multiton if there are many log files for several " -"purposes)" +msgid "Logger" msgstr "" #: ../../Creational/Singleton/README.rst:19 diff --git a/locale/de/LC_MESSAGES/Creational/Multiton/README.po b/locale/de/LC_MESSAGES/Creational/Multiton/README.po deleted file mode 100644 index 33b53ab..0000000 --- a/locale/de/LC_MESSAGES/Creational/Multiton/README.po +++ /dev/null @@ -1,67 +0,0 @@ -# -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:27+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.1\n" - -#: ../../Creational/Multiton/README.rst:2 -msgid "Multiton" -msgstr "Multiton" - -#: ../../Creational/Multiton/README.rst:4 -msgid "" -"**THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND " -"MAINTAINABILITY USE DEPENDENCY INJECTION!**" -msgstr "" -"**DIESES MUSTER IST EIN ANTI-PATTERN! FÜR BESSERE TESTBARKEIT UND " -"WARTBARKEIT VERWENDE STATTDESSEN DEPENDENCY INJECTION!**" - -#: ../../Creational/Multiton/README.rst:8 -msgid "Purpose" -msgstr "Zweck" - -#: ../../Creational/Multiton/README.rst:10 -msgid "" -"To have only a list of named instances that are used, like a singleton but " -"with n instances." -msgstr "" -"stellt eine Liste an benamten Instanzen bereit, genauso wie ein Singleton, " -"aber mit n Instanzen." - -#: ../../Creational/Multiton/README.rst:14 -msgid "Examples" -msgstr "Beispiele" - -#: ../../Creational/Multiton/README.rst:16 -msgid "2 DB Connectors, e.g. one for MySQL, the other for SQLite" -msgstr "" -"zwei Datenbank-Konnektoren, z.B. einer für MySQL, ein anderer für SQLite" - -#: ../../Creational/Multiton/README.rst:17 -msgid "multiple Loggers (one for debug messages, one for errors)" -msgstr "mehrere Logger (einer für Debugmeldungen, einer für Fehler)" - -#: ../../Creational/Multiton/README.rst:20 -msgid "UML Diagram" -msgstr "UML Diagramm" - -#: ../../Creational/Multiton/README.rst:27 -msgid "Code" -msgstr "Code" - -#: ../../Creational/Multiton/README.rst:29 -msgid "You can also find this code on `GitHub`_" -msgstr "Du findest den Code auch auf `GitHub`_" - -#: ../../Creational/Multiton/README.rst:38 -msgid "Test" -msgstr "Теst" diff --git a/locale/de/LC_MESSAGES/Creational/Singleton/README.po b/locale/de/LC_MESSAGES/Creational/Singleton/README.po index 1ff2dfc..4999869 100644 --- a/locale/de/LC_MESSAGES/Creational/Singleton/README.po +++ b/locale/de/LC_MESSAGES/Creational/Singleton/README.po @@ -47,11 +47,9 @@ msgstr "DB Konnektor" #: ../../Creational/Singleton/README.rst:17 msgid "" -"Logger (may also be a Multiton if there are many log files for several " -"purposes)" +"Logger" msgstr "" -"Logger (kann auch ein Multiton sein, falls es mehrere Logfiles für " -"verschiedene Zwecke gibt)" +"Logger" #: ../../Creational/Singleton/README.rst:19 msgid "" diff --git a/locale/es/LC_MESSAGES/Creational/Multiton/README.po b/locale/es/LC_MESSAGES/Creational/Multiton/README.po deleted file mode 100644 index a877fb6..0000000 --- a/locale/es/LC_MESSAGES/Creational/Multiton/README.po +++ /dev/null @@ -1,67 +0,0 @@ -# -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-09-11 11:31+0100\n" -"Last-Translator: Daniel González \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: es\n" -"Language-Team: \n" -"X-Generator: Poedit 1.5.4\n" - -#: ../../Creational/Multiton/README.rst:2 -msgid "Multiton" -msgstr "Multiton" - -#: ../../Creational/Multiton/README.rst:4 -msgid "" -"**THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND " -"MAINTAINABILITY USE DEPENDENCY INJECTION!**" -msgstr "" -"**ESTO ES CONSIDERADO UN ANTI-PATRÓN. PARA MEJOR TESTEABILIDAD Y " -"MANTENIBILIDAD USA INYECCIÓN DE DEPENDENCIAS**" - -#: ../../Creational/Multiton/README.rst:8 -msgid "Purpose" -msgstr "Propósito" - -#: ../../Creational/Multiton/README.rst:10 -msgid "" -"To have only a list of named instances that are used, like a singleton but " -"with n instances." -msgstr "" -"Tener una única lista de los nombres de las instancias que se están " -"utilizando, como en el singleton pero con n instancias." - -#: ../../Creational/Multiton/README.rst:14 -msgid "Examples" -msgstr "Ejemplos" - -#: ../../Creational/Multiton/README.rst:16 -msgid "2 DB Connectors, e.g. one for MySQL, the other for SQLite" -msgstr "2 Conectores de base de datos, Ej. uno para MySQL y otro para SQLite." - -#: ../../Creational/Multiton/README.rst:17 -msgid "multiple Loggers (one for debug messages, one for errors)" -msgstr "" -"Múltiples sistemas de log (uno para mensajes de debug, uno para errores)." - -#: ../../Creational/Multiton/README.rst:20 -msgid "UML Diagram" -msgstr "Diagrama UML" - -#: ../../Creational/Multiton/README.rst:27 -msgid "Code" -msgstr "Código" - -#: ../../Creational/Multiton/README.rst:29 -msgid "You can also find this code on `GitHub`_" -msgstr "Puedes encontrar el código en `GitHub`_" - -#: ../../Creational/Multiton/README.rst:38 -msgid "Test" -msgstr "Test" diff --git a/locale/es/LC_MESSAGES/Creational/Singleton/README.po b/locale/es/LC_MESSAGES/Creational/Singleton/README.po index c53dcaa..a2b75fa 100644 --- a/locale/es/LC_MESSAGES/Creational/Singleton/README.po +++ b/locale/es/LC_MESSAGES/Creational/Singleton/README.po @@ -47,11 +47,9 @@ msgstr "Conexión a la base de datos" #: ../../Creational/Singleton/README.rst:17 msgid "" -"Logger (may also be a Multiton if there are many log files for several " -"purposes)" +"Logger" msgstr "" -"Logger ( también podría ser un Multiton si hay varios ficheros de log para " -"diferentes propósitos )" +"Logger" #: ../../Creational/Singleton/README.rst:19 msgid "Lock file for the application (there is only one in the filesystem ...)" diff --git a/locale/es_MX/LC_MESSAGES/Creational/Multiton/README.po b/locale/es_MX/LC_MESSAGES/Creational/Multiton/README.po deleted file mode 100644 index c13b460..0000000 --- a/locale/es_MX/LC_MESSAGES/Creational/Multiton/README.po +++ /dev/null @@ -1,73 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: DesignPatternsPHP " -"d4972f03fc93de3ef10bb31220de49931487d5e0\n" -"POT-Creation-Date: 2016-09-22 20:30-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: \n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"Language: es_MX\n" - -#: ../../Creational/Multiton/README.rst:1 -msgid "Multiton" -msgstr "Multiton" - -#: ../../Creational/Multiton/README.rst:4 -msgid "" -"**THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND " -"MAINTAINABILITY USE DEPENDENCY INJECTION!**" -msgstr "" -"**¡ESTE ES CONSIDERADO COMO UN ANTI-PATRÓN! PARA UNA MEJOR CAPACIDAD DE " -"PRUEBAS Y MANTENIMIENTO UTILIZA INYECCIÓN DE DEPENDENCIAS!**" - -#: ../../Creational/Multiton/README.rst:7 -msgid "Purpose" -msgstr "Propósito" - -#: ../../Creational/Multiton/README.rst:10 -msgid "" -"To have only a list of named instances that are used, like a singleton but " -"with n instances." -msgstr "" -"Tener solamente una lista de instancias nombradas que se pueden utilizar, " -"como un Singleton pero con n instancias." - -#: ../../Creational/Multiton/README.rst:13 -msgid "Examples" -msgstr "Ejemplos" - -#: ../../Creational/Multiton/README.rst:16 -msgid "2 DB Connectors, e.g. one for MySQL, the other for SQLite" -msgstr "" -"2 Conectores de Base de Datos, p.ej. uno para MySQL y otro para SQLite" - -#: ../../Creational/Multiton/README.rst:17 -msgid "multiple Loggers (one for debug messages, one for errors)" -msgstr "" -"Múltiples registradores de eventos (uno para mensajes de depuración y otro " -"para errores)" - -#: ../../Creational/Multiton/README.rst:19 -msgid "UML Diagram" -msgstr "Diagrama UML" - -#: ../../Creational/Multiton/README.rst:23 -msgid "Alt Multiton UML Diagram" -msgstr "Alt Diagrama UML Multiton" - -#: ../../Creational/Multiton/README.rst:26 -msgid "Code" -msgstr "Código" - -#: ../../Creational/Multiton/README.rst:29 -msgid "You can also find this code on `GitHub`_" -msgstr "Puedes encontrar este código también en `GitHub`_" - -#: ../../Creational/Multiton/README.rst:37 -msgid "Test" -msgstr "Pruebas" diff --git a/locale/es_MX/LC_MESSAGES/Creational/Singleton/README.po b/locale/es_MX/LC_MESSAGES/Creational/Singleton/README.po index db43dea..23af4a7 100644 --- a/locale/es_MX/LC_MESSAGES/Creational/Singleton/README.po +++ b/locale/es_MX/LC_MESSAGES/Creational/Singleton/README.po @@ -47,11 +47,9 @@ msgstr "Conector de Base de Datos" #: ../../Creational/Singleton/README.rst:17 msgid "" -"Logger (may also be a Multiton if there are many log files for several " -"purposes)" +"Logger" msgstr "" -"Registrador de Eventos (puede ser también un Multiton si hay archivos de " -"registro de eventos para diferentes propósitos)" +"Registrador de Eventos" #: ../../Creational/Singleton/README.rst:19 msgid "Lock file for the application (there is only one in the filesystem ...)" diff --git a/locale/pl/LC_MESSAGES/Creational/Multiton/README.po b/locale/pl/LC_MESSAGES/Creational/Multiton/README.po deleted file mode 100644 index ecc234c..0000000 --- a/locale/pl/LC_MESSAGES/Creational/Multiton/README.po +++ /dev/null @@ -1,66 +0,0 @@ -# -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 22:58+0300\n" -"Last-Translator: Piotr Grabski-Gradzinski \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Language: pl\n" - -#: ../../Creational/Multiton/README.rst:2 -msgid "Multiton" -msgstr "Multiton (Multiton)" - -#: ../../Creational/Multiton/README.rst:4 -msgid "" -"**THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND " -"MAINTAINABILITY USE DEPENDENCY INJECTION!**" -msgstr "" -"**TEN WZORZEC PROJEKTOWY JEST UZNAWANY ZA ANTY-WZORZEC! DLA LEPSZEGO TESTOWANIA I ŁATWIEJSZEGO UTRZYMANIA " -"STOSUJĄC TEN WZORZEC POWINIENEŚ STOSOWAĆ TAKŻE WZORZEC WSTRZYKIWANIA ZALEŻNOŚCI (DEPENDENCY INJECTION)!**" - -#: ../../Creational/Multiton/README.rst:8 -msgid "Purpose" -msgstr "Przeznaczenie" - -#: ../../Creational/Multiton/README.rst:10 -msgid "" -"To have only a list of named instances that are used, like a singleton but " -"with n instances." -msgstr "" -"Ten wzorzec jest bardzo podobny do Singletonu, z tą różnicą, że pozwala tworzyć unikalne instancje " -"danej klasy w ramach przechowywanego klucza." - -#: ../../Creational/Multiton/README.rst:14 -msgid "Examples" -msgstr "Przykłady" - -#: ../../Creational/Multiton/README.rst:16 -msgid "2 DB Connectors, e.g. one for MySQL, the other for SQLite" -msgstr "" -"Dwa obiekty do łączenia się z bazą danych - jeden do MySQL, a drugi do SQLite." - -#: ../../Creational/Multiton/README.rst:17 -msgid "multiple Loggers (one for debug messages, one for errors)" -msgstr "" -"Kilka Loggerów - na przykład jeden do debugowania, drugi do logowania błędów." - -#: ../../Creational/Multiton/README.rst:20 -msgid "UML Diagram" -msgstr "Diagram UML" - -#: ../../Creational/Multiton/README.rst:27 -msgid "Code" -msgstr "Kod" - -#: ../../Creational/Multiton/README.rst:29 -msgid "You can also find this code on `GitHub`_" -msgstr "Ten kod znajdziesz również na `GitHub`_." - -#: ../../Creational/Multiton/README.rst:38 -msgid "Test" -msgstr "Testy" diff --git a/locale/pl/LC_MESSAGES/Creational/Singleton/README.po b/locale/pl/LC_MESSAGES/Creational/Singleton/README.po index 849a38e..11ab85a 100644 --- a/locale/pl/LC_MESSAGES/Creational/Singleton/README.po +++ b/locale/pl/LC_MESSAGES/Creational/Singleton/README.po @@ -45,10 +45,9 @@ msgstr "Połączenie do bazy danych." #: ../../Creational/Singleton/README.rst:17 msgid "" -"Logger (may also be a Multiton if there are many log files for several " -"purposes)" +"Logger" msgstr "" -"Logger - można do tego wykorzystać również wzorzec Multitona." +"Logger" #: ../../Creational/Singleton/README.rst:19 msgid "" diff --git a/locale/pt_BR/LC_MESSAGES/Creational/Multiton/README.po b/locale/pt_BR/LC_MESSAGES/Creational/Multiton/README.po deleted file mode 100644 index 1123c87..0000000 --- a/locale/pt_BR/LC_MESSAGES/Creational/Multiton/README.po +++ /dev/null @@ -1,65 +0,0 @@ -# -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: 2019-04-10 14:25-0300\n" -"Previous-Translator: Leonam Pereira Dias \n" -"Last-Translator: Pablo Juan Garcia \n" -"Language-Team: LANGUAGE \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#: ../../Creational/Multiton/README.rst:2 -msgid "Multiton" -msgstr "Multiton" - -#: ../../Creational/Multiton/README.rst:4 -msgid "" -"**THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND " -"MAINTAINABILITY USE DEPENDENCY INJECTION!**" -msgstr "" -"**ESTE É CONSIDERADO UM ANTI-PATTERN! PARA MELHOR TESTABILIDADE E " -"MANUTENIBILIDADE USE INJEÇÃO DE DEPENDÊNCIAS!**" - -#: ../../Creational/Multiton/README.rst:8 -msgid "Purpose" -msgstr "Objetivos" - -#: ../../Creational/Multiton/README.rst:10 -msgid "" -"To have only a list of named instances that are used, like a singleton but " -"with n instances." -msgstr "" -"Para se ter uma lista conhecida de instâncias utilizáveis, como um singleton mas " -"com n instâncias." - -#: ../../Creational/Multiton/README.rst:14 -msgid "Examples" -msgstr "Exemplos" - -#: ../../Creational/Multiton/README.rst:16 -msgid "2 DB Connectors, e.g. one for MySQL, the other for SQLite" -msgstr "2 conexões à bancos de dados. Exemplo: uma para MySQL e outra para SQLite" - -#: ../../Creational/Multiton/README.rst:17 -msgid "multiple Loggers (one for debug messages, one for errors)" -msgstr "multiplos Loggers (um para mensagens de debug, outro para erros)" - -#: ../../Creational/Multiton/README.rst:20 -msgid "UML Diagram" -msgstr "Diagrama UML" - -#: ../../Creational/Multiton/README.rst:27 -msgid "Code" -msgstr "Código" - -#: ../../Creational/Multiton/README.rst:29 -msgid "You can also find this code on `GitHub`_" -msgstr "Você também pode encontrar esse código no `GitHub`_" - -#: ../../Creational/Multiton/README.rst:38 -msgid "Test" -msgstr "Teste" diff --git a/locale/pt_BR/LC_MESSAGES/Creational/Singleton/README.po b/locale/pt_BR/LC_MESSAGES/Creational/Singleton/README.po index b1a393e..abc9de2 100644 --- a/locale/pt_BR/LC_MESSAGES/Creational/Singleton/README.po +++ b/locale/pt_BR/LC_MESSAGES/Creational/Singleton/README.po @@ -46,11 +46,9 @@ msgstr "Conexão ao banco de dados (DB Connector)" #: ../../Creational/Singleton/README.rst:17 msgid "" -"Logger (may also be a Multiton if there are many log files for several " -"purposes)" +"Logger" msgstr "" -"Logger (pode ser necessário um Multiton se houverem mais de um arquivo de log para diferentes " -"necessidades" +"Logger" #: ../../Creational/Singleton/README.rst:19 msgid "" diff --git a/locale/ru/LC_MESSAGES/Creational/Multiton/README.po b/locale/ru/LC_MESSAGES/Creational/Multiton/README.po deleted file mode 100644 index 4d870b8..0000000 --- a/locale/ru/LC_MESSAGES/Creational/Multiton/README.po +++ /dev/null @@ -1,68 +0,0 @@ -# -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 22:58+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" - -#: ../../Creational/Multiton/README.rst:2 -msgid "Multiton" -msgstr "Пул одиночек (Multiton)" - -#: ../../Creational/Multiton/README.rst:4 -msgid "" -"**THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND " -"MAINTAINABILITY USE DEPENDENCY INJECTION!**" -msgstr "" -"**Этот шаблон считается анти-паттерном! Для лучшей тестируемости и сопровождения " -"кода используйте внедрение зависимости (Dependency Injection)!**" - -#: ../../Creational/Multiton/README.rst:8 -msgid "Purpose" -msgstr "Назначение" - -#: ../../Creational/Multiton/README.rst:10 -msgid "" -"To have only a list of named instances that are used, like a singleton but " -"with n instances." -msgstr "" -"Содержит список именованных созданных экземпляров классов, которые в итоге " -"используются как Singleton-ы, но в заданном заранее N-ном количестве." - -#: ../../Creational/Multiton/README.rst:14 -msgid "Examples" -msgstr "Примеры" - -#: ../../Creational/Multiton/README.rst:16 -msgid "2 DB Connectors, e.g. one for MySQL, the other for SQLite" -msgstr "" -"Два объекта для доступа к базам данных, к примеру, один для MySQL, а " -"второй для SQLite" - -#: ../../Creational/Multiton/README.rst:17 -msgid "multiple Loggers (one for debug messages, one for errors)" -msgstr "" -"Несколько логгирующих объектов (один для отладочных сообщений, другой для " -"ошибок и т.п.) " - -#: ../../Creational/Multiton/README.rst:20 -msgid "UML Diagram" -msgstr "Диаграмма UML" - -#: ../../Creational/Multiton/README.rst:27 -msgid "Code" -msgstr "Код" - -#: ../../Creational/Multiton/README.rst:29 -msgid "You can also find this code on `GitHub`_" -msgstr "Вы можете найти этот код на `GitHub`_" - -#: ../../Creational/Multiton/README.rst:38 -msgid "Test" -msgstr "Тест" diff --git a/locale/ru/LC_MESSAGES/Creational/Singleton/README.po b/locale/ru/LC_MESSAGES/Creational/Singleton/README.po index 5998420..c47e77f 100644 --- a/locale/ru/LC_MESSAGES/Creational/Singleton/README.po +++ b/locale/ru/LC_MESSAGES/Creational/Singleton/README.po @@ -49,11 +49,9 @@ msgstr "DB Connector для подключения к базе данных" #: ../../Creational/Singleton/README.rst:17 msgid "" -"Logger (may also be a Multiton if there are many log files for several " -"purposes)" +"Logger" msgstr "" -"Logger (также может быть Multiton если есть много журналов для " -"нескольких целей)" +"Logger" #: ../../Creational/Singleton/README.rst:19 msgid "" diff --git a/locale/tr/LC_MESSAGES/Creational/Multiton/README.po b/locale/tr/LC_MESSAGES/Creational/Multiton/README.po deleted file mode 100644 index 2732657..0000000 --- a/locale/tr/LC_MESSAGES/Creational/Multiton/README.po +++ /dev/null @@ -1,74 +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: Muhammet Burak Şentürk\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" - -#: ../../Creational/Multiton/README.rst:1 -msgid "Multiton" -msgstr "Multiton (Çoğullama)" - -#: ../../Creational/Multiton/README.rst:4 -msgid "" -"**THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND " -"MAINTAINABILITY USE DEPENDENCY INJECTION!**" -msgstr "" -"**BU DESEN ANTI-PATTERN OLARAK NİTELENDİRİLMİŞTİR, DAHA İYİ BİR TEST EDİLEBİLİRLİK " -"(TESTABILITY) VE BAKIM YAPILABİLİRLİK (MAINTAINABILITY) İÇİN BAĞIMLILIK ENJEKSİYONU " -"(DEPENDENCY INJECTION) KULLANINIZ!**" - -#: ../../Creational/Multiton/README.rst:7 -msgid "Purpose" -msgstr "Amaç" - -#: ../../Creational/Multiton/README.rst:10 -msgid "" -"To have only a list of named instances that are used, like a singleton " -"but with n instances." -msgstr "" -"Yalnızca kullanımda olan adlandırılmış örneklerin (named instances) bir listesine " -"sahip olmak. Mesala bir tekilleme (singleton) gibi, ancak \"N\" kez örneklenmiş " -"(initialized) olan." - -#: ../../Creational/Multiton/README.rst:13 -msgid "Examples" -msgstr "Örnekler" - -#: ../../Creational/Multiton/README.rst:16 -msgid "2 DB Connectors, e.g. one for MySQL, the other for SQLite" -msgstr "" -"2 Veritabanı Bağlantıcısı (Database Connector): Örneğin birisi MySQL, bir diğeri ise " -"SQLite bağlantısını yapar." - -#: ../../Creational/Multiton/README.rst:17 -msgid "multiple Loggers (one for debug messages, one for errors)" -msgstr "" -"Çoklu Kayıtçılar (Multiple Logger): Örneğin birisi hata yakalama (debug), bir diğeri ise " -"hata iletileri (error) ile ilgili işlemleri yapar." - -#: ../../Creational/Multiton/README.rst:19 -msgid "UML Diagram" -msgstr "UML Diyagramı" - -#: ../../Creational/Multiton/README.rst:23 -msgid "Alt Multiton UML Diagram" -msgstr "Alt Multiton UML Diyagramı" - -#: ../../Creational/Multiton/README.rst:26 -msgid "Code" -msgstr "Kod" - -#: ../../Creational/Multiton/README.rst:29 -msgid "You can also find this code on `GitHub`_" -msgstr "Bu kodu `Github`_ üzerinde de bulabilirsiniz." - -#: ../../Creational/Multiton/README.rst:37 -msgid "Test" -msgstr "Test" \ No newline at end of file diff --git a/locale/tr/LC_MESSAGES/Creational/Singleton/README.po b/locale/tr/LC_MESSAGES/Creational/Singleton/README.po index c8fb5dc..b969606 100644 --- a/locale/tr/LC_MESSAGES/Creational/Singleton/README.po +++ b/locale/tr/LC_MESSAGES/Creational/Singleton/README.po @@ -46,11 +46,9 @@ msgstr "Veritabanı Bağlantıcısı (Database Connector)" #: ../../Creational/Singleton/README.rst:17 msgid "" -"Logger (may also be a Multiton if there are many log files for " -"several purposes)" +"Logger" msgstr "" -"Kayıtçı (Logger) (çeşitli amaçlara yönelik çok sayıda kayıt dosyası varsa, " -"bu aynı zamanda bir Çoğullama (Multiton) da olabilir)." +"Kayıtçı (Logger)" #: ../../Creational/Singleton/README.rst:19 msgid "" diff --git a/locale/zh_CN/LC_MESSAGES/Creational/Multiton/README.po b/locale/zh_CN/LC_MESSAGES/Creational/Multiton/README.po deleted file mode 100644 index 724421d..0000000 --- a/locale/zh_CN/LC_MESSAGES/Creational/Multiton/README.po +++ /dev/null @@ -1,61 +0,0 @@ -# -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" - -#: ../../Creational/Multiton/README.rst:2 -msgid "Multiton" -msgstr "多例" - -#: ../../Creational/Multiton/README.rst:4 -msgid "" -"**THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND " -"MAINTAINABILITY USE DEPENDENCY INJECTION!**" -msgstr "**多例模式已经被考虑列入到反模式中!请使用依赖注入获得更好的代码可测试性和可控性!**" - -#: ../../Creational/Multiton/README.rst:8 -msgid "Purpose" -msgstr "目的" - -#: ../../Creational/Multiton/README.rst:10 -msgid "" -"To have only a list of named instances that are used, like a singleton but " -"with n instances." -msgstr "使类仅有一个命名的对象的集合可供使用,像单例模式但是有多个实例。" - -#: ../../Creational/Multiton/README.rst:14 -msgid "Examples" -msgstr "例子" - -#: ../../Creational/Multiton/README.rst:16 -msgid "2 DB Connectors, e.g. one for MySQL, the other for SQLite" -msgstr "2 个数据库连接,比如,一个连接MySQL,另一个连接SQLite" - -#: ../../Creational/Multiton/README.rst:17 -msgid "multiple Loggers (one for debug messages, one for errors)" -msgstr "多个日志记录器(一个记录调试信息,另一个记录错误信息)" - -#: ../../Creational/Multiton/README.rst:20 -msgid "UML Diagram" -msgstr "UML 图" - -#: ../../Creational/Multiton/README.rst:27 -msgid "Code" -msgstr "代码" - -#: ../../Creational/Multiton/README.rst:29 -msgid "You can also find this code on `GitHub`_" -msgstr "你可以在 `GitHub`_ 上找到这些代码" - -#: ../../Creational/Multiton/README.rst:38 -msgid "Test" -msgstr "测试" - diff --git a/locale/zh_CN/LC_MESSAGES/Creational/Singleton/README.po b/locale/zh_CN/LC_MESSAGES/Creational/Singleton/README.po index 33d3042..b5dd0da 100644 --- a/locale/zh_CN/LC_MESSAGES/Creational/Singleton/README.po +++ b/locale/zh_CN/LC_MESSAGES/Creational/Singleton/README.po @@ -41,9 +41,8 @@ msgstr "数据库连接器" #: ../../Creational/Singleton/README.rst:17 msgid "" -"Logger (may also be a Multiton if there are many log files for several " -"purposes)" -msgstr "日志记录器 (可能有多个实例,比如有多个日志文件因为不同的目的记录不同到的日志)" +"Logger" +msgstr "日志记录器" #: ../../Creational/Singleton/README.rst:19 msgid ""