Merge pull request #389 from tanden/feature/add_translate_Japanese

[WIP] add translation in Japanese
This commit is contained in:
Dominik Liebler
2020-06-07 10:45:48 +02:00
committed by GitHub
39 changed files with 3175 additions and 0 deletions

View File

@@ -0,0 +1,87 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Behavioral/ChainOfResponsibilities/README.rst:2
msgid "`Chain Of Responsibilities`__"
msgstr ""
#: ../../Behavioral/ChainOfResponsibilities/README.rst:5
msgid "Purpose"
msgstr ""
#: ../../Behavioral/ChainOfResponsibilities/README.rst:7
msgid ""
"To build a chain of objects to handle a call in sequential order. If one "
"object cannot handle a call, it delegates the call to the next in the "
"chain and so forth."
msgstr ""
#: ../../Behavioral/ChainOfResponsibilities/README.rst:12
msgid "Examples"
msgstr ""
#: ../../Behavioral/ChainOfResponsibilities/README.rst:14
msgid ""
"logging framework, where each chain element decides autonomously what to "
"do with a log message"
msgstr ""
#: ../../Behavioral/ChainOfResponsibilities/README.rst:16
msgid "a Spam filter"
msgstr ""
#: ../../Behavioral/ChainOfResponsibilities/README.rst:17
msgid ""
"Caching: first object is an instance of e.g. a Memcached Interface, if "
"that \"misses\" it delegates the call to the database interface"
msgstr ""
#: ../../Behavioral/ChainOfResponsibilities/README.rst:21
msgid "UML Diagram"
msgstr ""
#: ../../Behavioral/ChainOfResponsibilities/README.rst:28
msgid "Code"
msgstr ""
#: ../../Behavioral/ChainOfResponsibilities/README.rst:30
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../Behavioral/ChainOfResponsibilities/README.rst:32
msgid "Handler.php"
msgstr ""
#: ../../Behavioral/ChainOfResponsibilities/README.rst:38
msgid "Responsible/FastStorage.php"
msgstr ""
#: ../../Behavioral/ChainOfResponsibilities/README.rst:44
msgid "Responsible/SlowStorage.php"
msgstr ""
#: ../../Behavioral/ChainOfResponsibilities/README.rst:51
msgid "Test"
msgstr ""
#: ../../Behavioral/ChainOfResponsibilities/README.rst:53
msgid "Tests/ChainTest.php"
msgstr ""

View File

@@ -0,0 +1,114 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Behavioral/Command/README.rst:2
msgid "`Command`__"
msgstr ""
#: ../../Behavioral/Command/README.rst:5
msgid "Purpose"
msgstr ""
#: ../../Behavioral/Command/README.rst:7
msgid "To encapsulate invocation and decoupling."
msgstr ""
#: ../../Behavioral/Command/README.rst:9
msgid ""
"We have an Invoker and a Receiver. This pattern uses a \"Command\" to "
"delegate the method call against the Receiver and presents the same "
"method \"execute\". Therefore, the Invoker just knows to call \"execute\""
" to process the Command of the client. The Receiver is decoupled from the"
" Invoker."
msgstr ""
#: ../../Behavioral/Command/README.rst:15
msgid ""
"The second aspect of this pattern is the undo(), which undoes the method "
"execute(). Command can also be aggregated to combine more complex "
"commands with minimum copy-paste and relying on composition over "
"inheritance."
msgstr ""
#: ../../Behavioral/Command/README.rst:21
msgid "Examples"
msgstr ""
#: ../../Behavioral/Command/README.rst:23
msgid ""
"A text editor : all events are commands which can be undone, stacked and "
"saved."
msgstr ""
#: ../../Behavioral/Command/README.rst:25
msgid ""
"big CLI tools use subcommands to distribute various tasks and pack them "
"in \"modules\", each of these can be implemented with the Command pattern"
" (e.g. vagrant)"
msgstr ""
#: ../../Behavioral/Command/README.rst:30
msgid "UML Diagram"
msgstr ""
#: ../../Behavioral/Command/README.rst:37
msgid "Code"
msgstr ""
#: ../../Behavioral/Command/README.rst:39
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../Behavioral/Command/README.rst:41
msgid "Command.php"
msgstr ""
#: ../../Behavioral/Command/README.rst:47
msgid "UndoableCommand.php"
msgstr ""
#: ../../Behavioral/Command/README.rst:53
msgid "HelloCommand.php"
msgstr ""
#: ../../Behavioral/Command/README.rst:59
msgid "AddMessageDateCommand.php"
msgstr ""
#: ../../Behavioral/Command/README.rst:65
msgid "Receiver.php"
msgstr ""
#: ../../Behavioral/Command/README.rst:71
msgid "Invoker.php"
msgstr ""
#: ../../Behavioral/Command/README.rst:78
msgid "Test"
msgstr ""
#: ../../Behavioral/Command/README.rst:80
msgid "Tests/CommandTest.php"
msgstr ""
#: ../../Behavioral/Command/README.rst:86
msgid "Tests/UndoableCommandTest.php"
msgstr ""

View File

@@ -0,0 +1,83 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Behavioral/Iterator/README.rst:2
msgid "`Iterator`__"
msgstr ""
#: ../../Behavioral/Iterator/README.rst:5
msgid "Purpose"
msgstr ""
#: ../../Behavioral/Iterator/README.rst:7
msgid ""
"To make an object iterable and to make it appear like a collection of "
"objects."
msgstr ""
#: ../../Behavioral/Iterator/README.rst:10
msgid "Examples"
msgstr ""
#: ../../Behavioral/Iterator/README.rst:12
msgid ""
"to process a file line by line by just running over all lines (which have"
" an object representation) for a file (which of course is an object, too)"
msgstr ""
#: ../../Behavioral/Iterator/README.rst:17
msgid "Note"
msgstr ""
#: ../../Behavioral/Iterator/README.rst:19
msgid ""
"Standard PHP Library (SPL) defines an interface Iterator which is best "
"suited for this! Often you would want to implement the Countable "
"interface too, to allow ``count($object)`` on your iterable object"
msgstr ""
#: ../../Behavioral/Iterator/README.rst:24
msgid "UML Diagram"
msgstr ""
#: ../../Behavioral/Iterator/README.rst:31
msgid "Code"
msgstr ""
#: ../../Behavioral/Iterator/README.rst:33
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../Behavioral/Iterator/README.rst:35
msgid "Book.php"
msgstr ""
#: ../../Behavioral/Iterator/README.rst:41
msgid "BookList.php"
msgstr ""
#: ../../Behavioral/Iterator/README.rst:48
msgid "Test"
msgstr ""
#: ../../Behavioral/Iterator/README.rst:50
msgid "Tests/IteratorTest.php"
msgstr ""

View File

@@ -0,0 +1,82 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Behavioral/Mediator/README.rst:2
msgid "`Mediator`__"
msgstr ""
#: ../../Behavioral/Mediator/README.rst:5
msgid "Purpose"
msgstr ""
#: ../../Behavioral/Mediator/README.rst:7
msgid ""
"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 ""
#: ../../Behavioral/Mediator/README.rst:11
msgid ""
"All components (called Colleague) are only coupled to the Mediator "
"interface and it is a good thing because in OOP, one good friend is "
"better than many. This is the key-feature of this pattern."
msgstr ""
#: ../../Behavioral/Mediator/README.rst:16
msgid "UML Diagram"
msgstr ""
#: ../../Behavioral/Mediator/README.rst:23
msgid "Code"
msgstr ""
#: ../../Behavioral/Mediator/README.rst:25
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../Behavioral/Mediator/README.rst:27
msgid "Mediator.php"
msgstr ""
#: ../../Behavioral/Mediator/README.rst:33
msgid "Colleague.php"
msgstr ""
#: ../../Behavioral/Mediator/README.rst:39
msgid "Ui.php"
msgstr ""
#: ../../Behavioral/Mediator/README.rst:45
msgid "UserRepository.php"
msgstr ""
#: ../../Behavioral/Mediator/README.rst:51
msgid "UserRepositoryUiMediator.php"
msgstr ""
#: ../../Behavioral/Mediator/README.rst:58
msgid "Test"
msgstr ""
#: ../../Behavioral/Mediator/README.rst:60
msgid "Tests/MediatorTest.php"
msgstr ""

View File

@@ -0,0 +1,124 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Behavioral/Memento/README.rst:2
msgid "`Memento`__"
msgstr ""
#: ../../Behavioral/Memento/README.rst:5
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"
" function to 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 ""
#: ../../Behavioral/Memento/README.rst:41
msgid "The seed of a pseudorandom number generator"
msgstr ""
#: ../../Behavioral/Memento/README.rst:42
msgid "The state in a finite state machine"
msgstr ""
#: ../../Behavioral/Memento/README.rst:43
msgid ""
"Control for intermediate states of `ORM Model "
"<http://en.wikipedia.org/wiki/Object-relational_mapping>`_ 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 this code on `GitHub`_"
msgstr ""
#: ../../Behavioral/Memento/README.rst:57
msgid "Memento.php"
msgstr ""
#: ../../Behavioral/Memento/README.rst:63
msgid "State.php"
msgstr ""
#: ../../Behavioral/Memento/README.rst:69
msgid "Ticket.php"
msgstr ""
#: ../../Behavioral/Memento/README.rst:76
msgid "Test"
msgstr ""
#: ../../Behavioral/Memento/README.rst:78
msgid "Tests/MementoTest.php"
msgstr ""

View File

@@ -0,0 +1,110 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Behavioral/NullObject/README.rst:2
msgid "`Null Object`__"
msgstr ""
#: ../../Behavioral/NullObject/README.rst:5
msgid "Purpose"
msgstr ""
#: ../../Behavioral/NullObject/README.rst:7
msgid ""
"NullObject is not a GoF design pattern but a schema which appears "
"frequently enough to be considered a pattern. It has the following "
"benefits:"
msgstr ""
#: ../../Behavioral/NullObject/README.rst:11
msgid "Client code is simplified"
msgstr ""
#: ../../Behavioral/NullObject/README.rst:12
msgid "Reduces the chance of null pointer exceptions"
msgstr ""
#: ../../Behavioral/NullObject/README.rst:13
msgid "Fewer conditionals require less test cases"
msgstr ""
#: ../../Behavioral/NullObject/README.rst:15
msgid ""
"Methods that return an object or null should instead return an object or "
"``NullObject``. ``NullObject``\\ s simplify boilerplate code such as ``if"
" (!is_null($obj)) { $obj->callSomething(); }`` to just "
"``$obj->callSomething();`` by eliminating the conditional check in client"
" code."
msgstr ""
#: ../../Behavioral/NullObject/README.rst:22
msgid "Examples"
msgstr ""
#: ../../Behavioral/NullObject/README.rst:24
msgid ""
"Null logger or null output to preserve a standard way of interaction "
"between objects, even if the shouldn't do anything"
msgstr ""
#: ../../Behavioral/NullObject/README.rst:25
msgid "null handler in a Chain of Responsibilities pattern"
msgstr ""
#: ../../Behavioral/NullObject/README.rst:26
msgid "null command in a Command pattern"
msgstr ""
#: ../../Behavioral/NullObject/README.rst:29
msgid "UML Diagram"
msgstr ""
#: ../../Behavioral/NullObject/README.rst:36
msgid "Code"
msgstr ""
#: ../../Behavioral/NullObject/README.rst:38
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../Behavioral/NullObject/README.rst:40
msgid "Service.php"
msgstr ""
#: ../../Behavioral/NullObject/README.rst:46
msgid "Logger.php"
msgstr ""
#: ../../Behavioral/NullObject/README.rst:52
msgid "PrintLogger.php"
msgstr ""
#: ../../Behavioral/NullObject/README.rst:58
msgid "NullLogger.php"
msgstr ""
#: ../../Behavioral/NullObject/README.rst:65
msgid "Test"
msgstr ""
#: ../../Behavioral/NullObject/README.rst:67
msgid "Tests/LoggerTest.php"
msgstr ""

View File

@@ -0,0 +1,82 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Behavioral/Observer/README.rst:2
msgid "`Observer`__"
msgstr ""
#: ../../Behavioral/Observer/README.rst:5
msgid "Purpose"
msgstr ""
#: ../../Behavioral/Observer/README.rst:7
msgid ""
"To implement a publish/subscribe behaviour to an object, whenever a "
"\"Subject\" object changes its state, the attached \"Observers\" will be "
"notified. It is used to shorten the amount of coupled objects and uses "
"loose coupling instead."
msgstr ""
#: ../../Behavioral/Observer/README.rst:13
msgid "Examples"
msgstr ""
#: ../../Behavioral/Observer/README.rst:15
msgid "a message queue system is observed to show the progress of a job in a GUI"
msgstr ""
#: ../../Behavioral/Observer/README.rst:19
msgid "Note"
msgstr ""
#: ../../Behavioral/Observer/README.rst:21
msgid ""
"PHP already defines two interfaces that can help to implement this "
"pattern: SplObserver and SplSubject."
msgstr ""
#: ../../Behavioral/Observer/README.rst:25
msgid "UML Diagram"
msgstr ""
#: ../../Behavioral/Observer/README.rst:32
msgid "Code"
msgstr ""
#: ../../Behavioral/Observer/README.rst:34
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../Behavioral/Observer/README.rst:36
msgid "User.php"
msgstr ""
#: ../../Behavioral/Observer/README.rst:42
msgid "UserObserver.php"
msgstr ""
#: ../../Behavioral/Observer/README.rst:49
msgid "Test"
msgstr ""
#: ../../Behavioral/Observer/README.rst:51
msgid "Tests/ObserverTest.php"
msgstr ""

View File

@@ -0,0 +1,32 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Behavioral/README.rst:2
msgid "`Behavioral`__"
msgstr ""
#: ../../Behavioral/README.rst:4
msgid ""
"In software engineering, behavioral design patterns are design patterns "
"that identify common communication patterns between objects and realize "
"these patterns. By doing so, these patterns increase flexibility in "
"carrying out this communication."
msgstr ""

View File

@@ -0,0 +1,88 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Behavioral/Specification/README.rst:2
msgid "`Specification`__"
msgstr ""
#: ../../Behavioral/Specification/README.rst:5
msgid "Purpose"
msgstr ""
#: ../../Behavioral/Specification/README.rst:7
msgid ""
"Builds a clear specification of business rules, where objects can be "
"checked against. The composite specification class has one method called "
"``isSatisfiedBy`` that returns either true or false depending on whether "
"the given object satisfies the specification."
msgstr ""
#: ../../Behavioral/Specification/README.rst:13
msgid "Examples"
msgstr ""
#: ../../Behavioral/Specification/README.rst:15
msgid "`RulerZ <https://github.com/K-Phoen/rulerz>`__"
msgstr ""
#: ../../Behavioral/Specification/README.rst:18
msgid "UML Diagram"
msgstr ""
#: ../../Behavioral/Specification/README.rst:25
msgid "Code"
msgstr ""
#: ../../Behavioral/Specification/README.rst:27
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../Behavioral/Specification/README.rst:29
msgid "Item.php"
msgstr ""
#: ../../Behavioral/Specification/README.rst:35
msgid "Specification.php"
msgstr ""
#: ../../Behavioral/Specification/README.rst:41
msgid "OrSpecification.php"
msgstr ""
#: ../../Behavioral/Specification/README.rst:47
msgid "PriceSpecification.php"
msgstr ""
#: ../../Behavioral/Specification/README.rst:53
msgid "AndSpecification.php"
msgstr ""
#: ../../Behavioral/Specification/README.rst:59
msgid "NotSpecification.php"
msgstr ""
#: ../../Behavioral/Specification/README.rst:66
msgid "Test"
msgstr ""
#: ../../Behavioral/Specification/README.rst:68
msgid "Tests/SpecificationTest.php"
msgstr ""

View File

@@ -0,0 +1,75 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Behavioral/State/README.rst:2
msgid "`State`__"
msgstr ""
#: ../../Behavioral/State/README.rst:5
msgid "Purpose"
msgstr ""
#: ../../Behavioral/State/README.rst:7
msgid ""
"Encapsulate varying behavior for the same routine based on an object's "
"state. This can be a cleaner way for an object to change its behavior at "
"runtime without resorting to large monolithic conditional statements."
msgstr ""
#: ../../Behavioral/State/README.rst:12
msgid "UML Diagram"
msgstr ""
#: ../../Behavioral/State/README.rst:19
msgid "Code"
msgstr ""
#: ../../Behavioral/State/README.rst:21
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../Behavioral/State/README.rst:23
msgid "OrderContext.php"
msgstr ""
#: ../../Behavioral/State/README.rst:29
msgid "State.php"
msgstr ""
#: ../../Behavioral/State/README.rst:35
msgid "StateCreated.php"
msgstr ""
#: ../../Behavioral/State/README.rst:41
msgid "StateShipped.php"
msgstr ""
#: ../../Behavioral/State/README.rst:47
msgid "StateDone.php"
msgstr ""
#: ../../Behavioral/State/README.rst:54
msgid "Test"
msgstr ""
#: ../../Behavioral/State/README.rst:56
msgid "Tests/StateTest.php"
msgstr ""

View File

@@ -0,0 +1,99 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Behavioral/Strategy/README.rst:2
msgid "`Strategy`__"
msgstr ""
#: ../../Behavioral/Strategy/README.rst:5
msgid "Terminology:"
msgstr ""
#: ../../Behavioral/Strategy/README.rst:7
msgid "Context"
msgstr ""
#: ../../Behavioral/Strategy/README.rst:8
msgid "Strategy"
msgstr ""
#: ../../Behavioral/Strategy/README.rst:9
msgid "Concrete Strategy"
msgstr ""
#: ../../Behavioral/Strategy/README.rst:12
msgid "Purpose"
msgstr ""
#: ../../Behavioral/Strategy/README.rst:14
msgid ""
"To separate strategies and to enable fast switching between them. Also "
"this pattern is a good alternative to inheritance (instead of having an "
"abstract class that is extended)."
msgstr ""
#: ../../Behavioral/Strategy/README.rst:19
msgid "Examples"
msgstr ""
#: ../../Behavioral/Strategy/README.rst:21
msgid "sorting a list of objects, one strategy by date, the other by id"
msgstr ""
#: ../../Behavioral/Strategy/README.rst:22
msgid "simplify unit testing: e.g. switching between file and in-memory storage"
msgstr ""
#: ../../Behavioral/Strategy/README.rst:26
msgid "UML Diagram"
msgstr ""
#: ../../Behavioral/Strategy/README.rst:33
msgid "Code"
msgstr ""
#: ../../Behavioral/Strategy/README.rst:35
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../Behavioral/Strategy/README.rst:37
msgid "Context.php"
msgstr ""
#: ../../Behavioral/Strategy/README.rst:43
msgid "Comparator.php"
msgstr ""
#: ../../Behavioral/Strategy/README.rst:49
msgid "DateComparator.php"
msgstr ""
#: ../../Behavioral/Strategy/README.rst:55
msgid "IdComparator.php"
msgstr ""
#: ../../Behavioral/Strategy/README.rst:62
msgid "Test"
msgstr ""
#: ../../Behavioral/Strategy/README.rst:64
msgid "Tests/StrategyTest.php"
msgstr ""

View File

@@ -0,0 +1,91 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Behavioral/TemplateMethod/README.rst:2
msgid "`Template Method`__"
msgstr ""
#: ../../Behavioral/TemplateMethod/README.rst:5
msgid "Purpose"
msgstr ""
#: ../../Behavioral/TemplateMethod/README.rst:7
msgid "Template Method is a behavioral design pattern."
msgstr ""
#: ../../Behavioral/TemplateMethod/README.rst:9
msgid ""
"Perhaps you have encountered it many times already. The idea is to let "
"subclasses of this abstract template \"finish\" the behavior of an "
"algorithm."
msgstr ""
#: ../../Behavioral/TemplateMethod/README.rst:13
msgid ""
"A.k.a the \"Hollywood principle\": \"Don't call us, we call you.\" This "
"class is not called by subclasses but the inverse. How? With abstraction "
"of course."
msgstr ""
#: ../../Behavioral/TemplateMethod/README.rst:17
msgid ""
"In other words, this is a skeleton of algorithm, well-suited for "
"framework libraries. The user has just to implement one method and the "
"superclass do the job."
msgstr ""
#: ../../Behavioral/TemplateMethod/README.rst:21
msgid ""
"It is an easy way to decouple concrete classes and reduce copy-paste, "
"that's why you'll find it everywhere."
msgstr ""
#: ../../Behavioral/TemplateMethod/README.rst:25
msgid "UML Diagram"
msgstr ""
#: ../../Behavioral/TemplateMethod/README.rst:32
msgid "Code"
msgstr ""
#: ../../Behavioral/TemplateMethod/README.rst:34
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../Behavioral/TemplateMethod/README.rst:36
msgid "Journey.php"
msgstr ""
#: ../../Behavioral/TemplateMethod/README.rst:42
msgid "BeachJourney.php"
msgstr ""
#: ../../Behavioral/TemplateMethod/README.rst:48
msgid "CityJourney.php"
msgstr ""
#: ../../Behavioral/TemplateMethod/README.rst:55
msgid "Test"
msgstr ""
#: ../../Behavioral/TemplateMethod/README.rst:57
msgid "Tests/JourneyTest.php"
msgstr ""

View File

@@ -0,0 +1,83 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Behavioral/Visitor/README.rst:2
msgid "`Visitor`__"
msgstr ""
#: ../../Behavioral/Visitor/README.rst:5
msgid "Purpose"
msgstr ""
#: ../../Behavioral/Visitor/README.rst:7
msgid ""
"The Visitor Pattern lets you outsource operations on objects to other "
"objects. The main reason to do this is to keep a separation of concerns. "
"But classes have to define a contract to allow visitors (the "
"``Role::accept`` method in the example)."
msgstr ""
#: ../../Behavioral/Visitor/README.rst:12
msgid ""
"The contract is an abstract class but you can have also a clean "
"interface. In that case, each Visitor has to choose itself which method "
"to invoke on the visitor."
msgstr ""
#: ../../Behavioral/Visitor/README.rst:17
msgid "UML Diagram"
msgstr ""
#: ../../Behavioral/Visitor/README.rst:24
msgid "Code"
msgstr ""
#: ../../Behavioral/Visitor/README.rst:26
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../Behavioral/Visitor/README.rst:28
msgid "RoleVisitor.php"
msgstr ""
#: ../../Behavioral/Visitor/README.rst:34
msgid "RecordingVisitor.php"
msgstr ""
#: ../../Behavioral/Visitor/README.rst:40
msgid "Role.php"
msgstr ""
#: ../../Behavioral/Visitor/README.rst:46
msgid "User.php"
msgstr ""
#: ../../Behavioral/Visitor/README.rst:52
msgid "Group.php"
msgstr ""
#: ../../Behavioral/Visitor/README.rst:59
msgid "Test"
msgstr ""
#: ../../Behavioral/Visitor/README.rst:61
msgid "Tests/VisitorTest.php"
msgstr ""

View File

@@ -0,0 +1,96 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# Sumita Takaki <sumita.takaki@gmail.com>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Sumita Takaki <sumita.takaki@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Creational/AbstractFactory/README.rst:2
msgid "`Abstract Factory`__"
msgstr "`Abstract Factory パターン`__"
#: ../../Creational/AbstractFactory/README.rst:5
msgid "Purpose"
msgstr "目的"
#: ../../Creational/AbstractFactory/README.rst:7
msgid ""
"To create series of related or dependent objects without specifying their"
" concrete classes. Usually the created classes all implement the same "
"interface. The client of the abstract factory does not care about how "
"these objects are created, it just knows how they go together."
msgstr ""
"具体的なクラスを指定せずに、互いに関連・依存し合う一連のオブジェクト郡を生成します。"
"一般に、生成された全てのクラスは同じインターフェースを実装します。"
"AbstractFactoryクラスを利用するClientクラスは、これらのオブジェクト郡がどのように連携するかについては知っていますが、"
"どのように生成されたかについて把握する必要はありません。"
#: ../../Creational/AbstractFactory/README.rst:13
msgid "UML Diagram"
msgstr "クラス図"
#: ../../Creational/AbstractFactory/README.rst:20
msgid "Code"
msgstr "サンプルコード"
#: ../../Creational/AbstractFactory/README.rst:22
msgid "You can also find this code on `GitHub`_"
msgstr "サンプルコードは `GitHub`_ でも確認することができます。"
#: ../../Creational/AbstractFactory/README.rst:24
msgid "WriterFactory.php"
msgstr ""
#: ../../Creational/AbstractFactory/README.rst:30
msgid "CsvWriter.php"
msgstr ""
#: ../../Creational/AbstractFactory/README.rst:36
msgid "JsonWriter.php"
msgstr ""
#: ../../Creational/AbstractFactory/README.rst:42
msgid "UnixCsvWriter.php"
msgstr ""
#: ../../Creational/AbstractFactory/README.rst:48
msgid "UnixJsonWriter.php"
msgstr ""
#: ../../Creational/AbstractFactory/README.rst:54
msgid "UnixWriterFactory.php"
msgstr ""
#: ../../Creational/AbstractFactory/README.rst:60
msgid "WinCsvWriter.php"
msgstr ""
#: ../../Creational/AbstractFactory/README.rst:66
msgid "WinJsonWriter.php"
msgstr ""
#: ../../Creational/AbstractFactory/README.rst:72
msgid "WinWriterFactory.php"
msgstr ""
#: ../../Creational/AbstractFactory/README.rst:79
msgid "Test"
msgstr "テスト"
#: ../../Creational/AbstractFactory/README.rst:81
msgid "Tests/AbstractFactoryTest.php"
msgstr ""

View File

@@ -0,0 +1,123 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# Sumita Takaki <sumita.takaki@gmail.com>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Sumita Takaki <sumita.takaki@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Creational/Builder/README.rst:2
msgid "`Builder`__"
msgstr "`Builder パターン`__"
#: ../../Creational/Builder/README.rst:5
msgid "Purpose"
msgstr "目的"
#: ../../Creational/Builder/README.rst:7
msgid "Builder is an interface that build parts of a complex object."
msgstr "オブジェクトを組み合わせて、複雑なオブジェクトを構築するインターフェースをBuilderクラスと呼びます。"
#: ../../Creational/Builder/README.rst:9
msgid ""
"Sometimes, if the builder has a better knowledge of what it builds, this "
"interface could be an abstract class with default methods (aka adapter)."
msgstr ""
"ときに、Builderクラス自身が何を構築するのか知っている場合、このインターフェースはデフォルトメソッド"
"を持つ抽象クラスとなりますAdapter パターン)。"
#: ../../Creational/Builder/README.rst:12
msgid ""
"If you have a complex inheritance tree for objects, it is logical to have"
" a complex inheritance tree for builders too."
msgstr ""
"オブジェクトの複雑な継承ツリーがある場合、Builderクラスにも複雑な継承ツリーがあっておかしくありません。"
#: ../../Creational/Builder/README.rst:15
msgid ""
"Note: Builders have often a fluent interface, see the mock builder of "
"PHPUnit for example."
msgstr ""
"注: Builderクラスの多くは、流れるようなインターフェースfluent interfaceを持っています。"
"例としてPHPUnitのモックビルダーをご覧ください。"
#: ../../Creational/Builder/README.rst:19
msgid "Examples"
msgstr "例"
#: ../../Creational/Builder/README.rst:21
msgid "PHPUnit: Mock Builder"
msgstr "PHPUnit: モックビルダー"
#: ../../Creational/Builder/README.rst:24
msgid "UML Diagram"
msgstr "クラス図"
#: ../../Creational/Builder/README.rst:31
msgid "Code"
msgstr "サンプルコード"
#: ../../Creational/Builder/README.rst:33
msgid "You can also find this code on `GitHub`_"
msgstr "サンプルコードは `GitHub`_ でも確認することができます。"
#: ../../Creational/Builder/README.rst:35
msgid "Director.php"
msgstr ""
#: ../../Creational/Builder/README.rst:41
msgid "Builder.php"
msgstr ""
#: ../../Creational/Builder/README.rst:47
msgid "TruckBuilder.php"
msgstr ""
#: ../../Creational/Builder/README.rst:53
msgid "CarBuilder.php"
msgstr ""
#: ../../Creational/Builder/README.rst:59
msgid "Parts/Vehicle.php"
msgstr ""
#: ../../Creational/Builder/README.rst:65
msgid "Parts/Truck.php"
msgstr ""
#: ../../Creational/Builder/README.rst:71
msgid "Parts/Car.php"
msgstr ""
#: ../../Creational/Builder/README.rst:77
msgid "Parts/Engine.php"
msgstr ""
#: ../../Creational/Builder/README.rst:83
msgid "Parts/Wheel.php"
msgstr ""
#: ../../Creational/Builder/README.rst:89
msgid "Parts/Door.php"
msgstr ""
#: ../../Creational/Builder/README.rst:96
msgid "Test"
msgstr "テスト"
#: ../../Creational/Builder/README.rst:98
msgid "Tests/DirectorTest.php"
msgstr ""

View File

@@ -0,0 +1,101 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# Sumita Takaki <sumita.takaki@gmail.com>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Sumita Takaki <sumita.takaki@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Creational/FactoryMethod/README.rst:2
msgid "`Factory Method`__"
msgstr "`Factory Method パターン`__"
#: ../../Creational/FactoryMethod/README.rst:5
msgid "Purpose"
msgstr "目的"
#: ../../Creational/FactoryMethod/README.rst:7
msgid ""
"The good point over the SimpleFactory is you can subclass it to implement"
" different ways to create objects."
msgstr ""
"FacboryMethod パターンはSimpleFactory パターンと比べて、"
"オブジェクト生成のために行う様々な実装を、サブクラスに任せる点が優れています。"
#: ../../Creational/FactoryMethod/README.rst:10
msgid "For simple cases, this abstract class could be just an interface."
msgstr "単純なケースとして、FactoryMethodクラスはただのインターフェースとして扱われます。"
#: ../../Creational/FactoryMethod/README.rst:12
msgid ""
"This pattern is a \"real\" Design Pattern because it achieves the "
"Dependency Inversion principle a.k.a the \"D\" in SOLID principles."
msgstr ""
"このFactoryMethod パターンは、SOLIDとして知られているソフトウェア設計の5つの原則のうち、「D」の依存性逆転の法則"
"Dependency Inversion principleを実現するための「実用的な」デザインパターンです。"
#: ../../Creational/FactoryMethod/README.rst:15
msgid ""
"It means the FactoryMethod class depends on abstractions, not concrete "
"classes. This is the real trick compared to SimpleFactory or "
"StaticFactory."
msgstr ""
"つまり、FactoryMethodクラスは具象クラスではなく、抽象クラスに依存するということです。"
"この部分が、SimpleFactory パターンや、StaticFactory パターンと比較したときに、優れていると言えます。"
#: ../../Creational/FactoryMethod/README.rst:20
msgid "UML Diagram"
msgstr "クラス図"
#: ../../Creational/FactoryMethod/README.rst:27
msgid "Code"
msgstr "サンプルコード"
#: ../../Creational/FactoryMethod/README.rst:29
msgid "You can also find this code on `GitHub`_"
msgstr "サンプルコードは `GitHub`_ でも確認することができます。"
#: ../../Creational/FactoryMethod/README.rst:31
msgid "Logger.php"
msgstr ""
#: ../../Creational/FactoryMethod/README.rst:37
msgid "StdoutLogger.php"
msgstr ""
#: ../../Creational/FactoryMethod/README.rst:43
msgid "FileLogger.php"
msgstr ""
#: ../../Creational/FactoryMethod/README.rst:49
msgid "LoggerFactory.php"
msgstr ""
#: ../../Creational/FactoryMethod/README.rst:55
msgid "StdoutLoggerFactory.php"
msgstr ""
#: ../../Creational/FactoryMethod/README.rst:61
msgid "FileLoggerFactory.php"
msgstr ""
#: ../../Creational/FactoryMethod/README.rst:68
msgid "Test"
msgstr "テスト"
#: ../../Creational/FactoryMethod/README.rst:70
msgid "Tests/FactoryMethodTest.php"
msgstr ""

View File

@@ -0,0 +1,98 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Creational/Pool/README.rst:2
msgid "`Pool`__"
msgstr "`Object Pool パターン`__"
#: ../../Creational/Pool/README.rst:5
msgid "Purpose"
msgstr "目的"
#: ../../Creational/Pool/README.rst:7
msgid ""
"The **object pool pattern** is a software creational design pattern that "
"uses a set of initialized objects kept ready to use a \"pool\" rather"
" than allocating and destroying them on demand. A client of the pool will"
" request an object from the pool and perform operations on the returned "
"object. When the client has finished, it returns the object, which is a "
"specific type of factory object, to the pool rather than destroying it."
msgstr ""
"**Object Pool パターン** は、オブジェクトを必要な場合に割当て利用後に破棄するのではなく、"
"初期化済みのいつでも利用可能なオブジェクトを\"プール\"に保持し、それらを使用する生成に関するデザインパターンです。"
"このプールのClientクラスは、プールにオブジェクトを要求し、プールから返却されたオブジェクトを使用します。"
"クライアントはオブジェクトの使用終了後、オブジェクト特定の型のFacboryオブジェクトを破棄するでのはなくプールに返却します。"
#: ../../Creational/Pool/README.rst:14
msgid ""
"Object pooling can offer a significant performance boost in situations "
"where the cost of initializing a class instance is high, the rate of "
"instantiation of a class is high, and the number of instances in use at "
"any one time is low. The pooled object is obtained in predictable time "
"when creation of the new objects (especially over network) may take "
"variable time."
msgstr ""
"オブジェクトプーリングは、クラスインスタンスの初期化のコストが高く、"
"クラスをインスタンス化する割合が高く、一度に使用されるインスタンスの数が少ない状況で、"
"パフォーマンスを大幅に向上させることができます。"
"また、新しいオブジェクトの生成に時間がかかる可能性がある場合(特にネットワーク経由での生成の場合)に、プールされたオブジェクトを取得することで"
"予測可能な時間でオブジェクトを得ることができるようになります。"
#: ../../Creational/Pool/README.rst:21
msgid ""
"However these benefits are mostly true for objects that are expensive "
"with respect to time, such as database connections, socket connections, "
"threads and large graphic objects like fonts or bitmaps. In certain "
"situations, simple object pooling (that hold no external resources, but "
"only occupy memory) may not be efficient and could decrease performance."
msgstr ""
"しかし、これらのメリットは、データベース接続、ソケット接続、スレッド、フォントやビットマップのような大きなグラフィックオブジェクトなど、"
"時間に関してコストがかかるオブジェクトのほとんどに当てはまります。"
"特定の状況下では、単純なオブジェクトプーリング(外部リソースを保持せず、メモリを占有するだけ)"
"は効率的でなく、パフォーマンスが低下する可能性があります。"
#: ../../Creational/Pool/README.rst:28
msgid "UML Diagram"
msgstr "クラス図"
#: ../../Creational/Pool/README.rst:35
msgid "Code"
msgstr "サンプルコード"
#: ../../Creational/Pool/README.rst:37
msgid "You can also find this code on `GitHub`_"
msgstr "サンプルコードは `GitHub`_ でも確認することができます。"
#: ../../Creational/Pool/README.rst:39
msgid "WorkerPool.php"
msgstr ""
#: ../../Creational/Pool/README.rst:45
msgid "StringReverseWorker.php"
msgstr ""
#: ../../Creational/Pool/README.rst:52
msgid "Test"
msgstr "テスト"
#: ../../Creational/Pool/README.rst:54
msgid "Tests/PoolTest.php"
msgstr ""

View File

@@ -0,0 +1,79 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# Sumita Takaki <sumita.takaki@gmail.com>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Sumita Takaki <sumita.takaki@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Creational/Prototype/README.rst:2
msgid "`Prototype`__"
msgstr "`Prototype パターン`__"
#: ../../Creational/Prototype/README.rst:5
msgid "Purpose"
msgstr "目的"
#: ../../Creational/Prototype/README.rst:7
msgid ""
"To avoid the cost of creating objects the standard way (new Foo()) and "
"instead create a prototype and clone it."
msgstr ""
"オブジェクトを新しく生成するnew Foo())コストをかける代わりに"
"プロトタイプを生成して、それをコピーする。"
#: ../../Creational/Prototype/README.rst:11
msgid "Examples"
msgstr "例"
#: ../../Creational/Prototype/README.rst:13
msgid ""
"Large amounts of data (e.g. create 1,000,000 rows in a database at once "
"via a ORM)."
msgstr ""
"大容量のデータ1,000,000行のデータをORM経由でデータベースに作成する"
#: ../../Creational/Prototype/README.rst:17
msgid "UML Diagram"
msgstr "クラス図"
#: ../../Creational/Prototype/README.rst:24
msgid "Code"
msgstr "サンプルコード"
#: ../../Creational/Prototype/README.rst:26
msgid "You can also find this code on `GitHub`_"
msgstr "サンプルコードは `GitHub`_ でも確認することができます。"
#: ../../Creational/Prototype/README.rst:28
msgid "BookPrototype.php"
msgstr ""
#: ../../Creational/Prototype/README.rst:34
msgid "BarBookPrototype.php"
msgstr ""
#: ../../Creational/Prototype/README.rst:40
msgid "FooBookPrototype.php"
msgstr ""
#: ../../Creational/Prototype/README.rst:47
msgid "Test"
msgstr "テスト"
#: ../../Creational/Prototype/README.rst:49
msgid "Tests/PrototypeTest.php"
msgstr ""

View File

@@ -0,0 +1,38 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# Sumita Takaki <sumita.takaki@gmail.com>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Sumita Takaki <sumita.takaki@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Creational/README.rst:2
msgid "`Creational`__"
msgstr "`生成に関するパターン`__"
#: ../../Creational/README.rst:4
msgid ""
"In software engineering, creational design patterns are design patterns "
"that deal with object creation mechanisms, trying to create objects in a "
"manner suitable to the situation. The basic form of object creation could"
" result in design problems or added complexity to the design. Creational "
"design patterns solve this problem by somehow controlling this object "
"creation."
msgstr ""
"ソフトウェアエンジニアリングにおいて、生成に関するパターンは、"
"オブジェクトの生成メカニズムを扱うデザインパターンであり、状況に適した方法でオブジェクトを生成するためのものです。"
"原始的な方法でのオブジェクトの生成は、設計に問題を引き起こしたり、複雑にする可能性があります。"
"生成に関するデザインパターンは、オブジェクトの生成をいずれかの方法でコントロールすることによってこの問題を解決します。"

View File

@@ -0,0 +1,72 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Creational/SimpleFactory/README.rst:2
msgid "Simple Factory"
msgstr ""
#: ../../Creational/SimpleFactory/README.rst:5
msgid "Purpose"
msgstr ""
#: ../../Creational/SimpleFactory/README.rst:7
msgid "SimpleFactory is a simple factory pattern."
msgstr ""
#: ../../Creational/SimpleFactory/README.rst:9
msgid ""
"It differs from the static factory because it is not static. Therefore, "
"you can have multiple factories, differently parameterized, you can "
"subclass it and you can mock it. It always should be preferred over a "
"static factory!"
msgstr ""
#: ../../Creational/SimpleFactory/README.rst:14
msgid "UML Diagram"
msgstr ""
#: ../../Creational/SimpleFactory/README.rst:21
msgid "Code"
msgstr ""
#: ../../Creational/SimpleFactory/README.rst:23
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../Creational/SimpleFactory/README.rst:25
msgid "SimpleFactory.php"
msgstr ""
#: ../../Creational/SimpleFactory/README.rst:31
msgid "Bicycle.php"
msgstr ""
#: ../../Creational/SimpleFactory/README.rst:38
msgid "Usage"
msgstr ""
#: ../../Creational/SimpleFactory/README.rst:48
msgid "Test"
msgstr ""
#: ../../Creational/SimpleFactory/README.rst:50
msgid "Tests/SimpleFactoryTest.php"
msgstr ""

View File

@@ -0,0 +1,83 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# Sumita Takaki <sumita.takaki@gmail.com>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Sumita Takaki <sumita.takaki@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Creational/Singleton/README.rst:2
msgid "`Singleton`__"
msgstr "`シングルトン パターン`__"
#: ../../Creational/Singleton/README.rst:4
msgid ""
"**THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND "
"MAINTAINABILITY USE DEPENDENCY INJECTION!**"
msgstr ""
"**これはアンチパターンと捉えるべきです!"
"よりよいテスト性と保守性のために、「依存性の注入」(Dependency injectionを使用してください**"
#: ../../Creational/Singleton/README.rst:8
msgid "Purpose"
msgstr "目的"
#: ../../Creational/Singleton/README.rst:10
msgid ""
"To have only one instance of this object in the application that will "
"handle all calls."
msgstr ""
"オブジェクトへの呼び出しを行うアプリケーション内で、そのオブジェクトのインスタンスが1つだけしか存在しないことを保証するために使用されます。"
#: ../../Creational/Singleton/README.rst:14
msgid "Examples"
msgstr "例"
#: ../../Creational/Singleton/README.rst:16
msgid "DB Connector"
msgstr "DBコネクター"
#: ../../Creational/Singleton/README.rst:17
msgid "Logger"
msgstr "ロガー"
#: ../../Creational/Singleton/README.rst:18
msgid "Lock file for the application (there is only one in the filesystem ...)"
msgstr "アプリケーションのロックファイル(ファイルシステムには一つしかありません..."
#: ../../Creational/Singleton/README.rst:22
msgid "UML Diagram"
msgstr "クラス図"
#: ../../Creational/Singleton/README.rst:29
msgid "Code"
msgstr "サンプルコード"
#: ../../Creational/Singleton/README.rst:31
msgid "You can also find this code on `GitHub`_"
msgstr "サンプルコードは `GitHub`_ でも確認することができます。"
#: ../../Creational/Singleton/README.rst:33
msgid "Singleton.php"
msgstr ""
#: ../../Creational/Singleton/README.rst:40
msgid "Test"
msgstr "テスト"
#: ../../Creational/Singleton/README.rst:42
msgid "Tests/SingletonTest.php"
msgstr ""

View File

@@ -0,0 +1,73 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Creational/StaticFactory/README.rst:2
msgid "Static Factory"
msgstr ""
#: ../../Creational/StaticFactory/README.rst:5
msgid "Purpose"
msgstr ""
#: ../../Creational/StaticFactory/README.rst:7
msgid ""
"Similar to the AbstractFactory, this pattern is used to create series of "
"related or dependent objects. The difference between this and the "
"abstract factory pattern is that the static factory pattern uses just one"
" static method to create all types of objects it can create. It is "
"usually named ``factory`` or ``build``."
msgstr ""
#: ../../Creational/StaticFactory/README.rst:14
msgid "UML Diagram"
msgstr ""
#: ../../Creational/StaticFactory/README.rst:21
msgid "Code"
msgstr ""
#: ../../Creational/StaticFactory/README.rst:23
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../Creational/StaticFactory/README.rst:25
msgid "StaticFactory.php"
msgstr ""
#: ../../Creational/StaticFactory/README.rst:31
msgid "Formatter.php"
msgstr ""
#: ../../Creational/StaticFactory/README.rst:37
msgid "FormatString.php"
msgstr ""
#: ../../Creational/StaticFactory/README.rst:43
msgid "FormatNumber.php"
msgstr ""
#: ../../Creational/StaticFactory/README.rst:50
msgid "Test"
msgstr ""
#: ../../Creational/StaticFactory/README.rst:52
msgid "Tests/StaticFactoryTest.php"
msgstr ""

View File

@@ -0,0 +1,74 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../More/EAV/README.rst:2
msgid "`Entity-Attribute-Value (EAV)`__"
msgstr ""
#: ../../More/EAV/README.rst:4
msgid ""
"The Entityattributevalue (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 Entityattributevalue (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 "UML Diagram"
msgstr ""
#: ../../More/EAV/README.rst:22
msgid "Code"
msgstr ""
#: ../../More/EAV/README.rst:24
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../More/EAV/README.rst:26
msgid "Entity.php"
msgstr ""
#: ../../More/EAV/README.rst:32
msgid "Attribute.php"
msgstr ""
#: ../../More/EAV/README.rst:38
msgid "Value.php"
msgstr ""
#: ../../More/EAV/README.rst:45
msgid "Test"
msgstr ""
#: ../../More/EAV/README.rst:47
msgid "Tests/EAVTest.php"
msgstr ""

View File

@@ -0,0 +1,24 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../More/README.rst:2
msgid "More"
msgstr ""

View File

@@ -0,0 +1,97 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../More/Repository/README.rst:2
msgid "Repository"
msgstr ""
#: ../../More/Repository/README.rst:5
msgid "Purpose"
msgstr ""
#: ../../More/Repository/README.rst:7
msgid ""
"Mediates between the domain and data mapping layers using a collection-"
"like interface for accessing domain objects. Repository encapsulates the "
"set of objects persisted in a data store and the operations performed "
"over them, providing a more object-oriented view of the persistence "
"layer. Repository also supports the objective of achieving a clean "
"separation and one-way dependency between the domain and data mapping "
"layers."
msgstr ""
#: ../../More/Repository/README.rst:16
msgid "Examples"
msgstr ""
#: ../../More/Repository/README.rst:18
msgid ""
"Doctrine 2 ORM: there is Repository that mediates between Entity and DBAL"
" and contains methods to retrieve objects"
msgstr ""
#: ../../More/Repository/README.rst:20
msgid "Laravel Framework"
msgstr ""
#: ../../More/Repository/README.rst:23
msgid "UML Diagram"
msgstr ""
#: ../../More/Repository/README.rst:30
msgid "Code"
msgstr ""
#: ../../More/Repository/README.rst:32
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../More/Repository/README.rst:34
msgid "Post.php"
msgstr ""
#: ../../More/Repository/README.rst:40
msgid "PostId.php"
msgstr ""
#: ../../More/Repository/README.rst:46
msgid "PostStatus.php"
msgstr ""
#: ../../More/Repository/README.rst:52
msgid "PostRepository.php"
msgstr ""
#: ../../More/Repository/README.rst:58
msgid "Persistence.php"
msgstr ""
#: ../../More/Repository/README.rst:64
msgid "InMemoryPersistence.php"
msgstr ""
#: ../../More/Repository/README.rst:71
msgid "Test"
msgstr ""
#: ../../More/Repository/README.rst:73
msgid "Tests/PostRepositoryTest.php"
msgstr ""

View File

@@ -0,0 +1,93 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../More/ServiceLocator/README.rst:2
msgid "`Service Locator`__"
msgstr ""
#: ../../More/ServiceLocator/README.rst:4
msgid "**THIS IS CONSIDERED TO BE AN ANTI-PATTERN!**"
msgstr ""
#: ../../More/ServiceLocator/README.rst:6
msgid ""
"Service Locator is considered for some people an anti-pattern. It "
"violates the Dependency Inversion principle. Service Locator hides class'"
" dependencies instead of exposing them as you would do using the "
"Dependency Injection. In case of changes of those dependencies you risk "
"to break the functionality of classes which are using them, making your "
"system difficult to maintain."
msgstr ""
#: ../../More/ServiceLocator/README.rst:10
msgid "Purpose"
msgstr ""
#: ../../More/ServiceLocator/README.rst:12
msgid ""
"To implement a loosely coupled architecture in order to get better "
"testable, maintainable and extendable code. DI pattern and Service "
"Locator pattern are an implementation of the Inverse of Control pattern."
msgstr ""
#: ../../More/ServiceLocator/README.rst:17
msgid "Usage"
msgstr ""
#: ../../More/ServiceLocator/README.rst:19
msgid ""
"With ``ServiceLocator`` you can register a service for a given interface."
" By using the interface you can retrieve the service and use it in the "
"classes of the application without knowing its implementation. You can "
"configure and inject the Service Locator object on bootstrap."
msgstr ""
#: ../../More/ServiceLocator/README.rst:25
msgid "UML Diagram"
msgstr ""
#: ../../More/ServiceLocator/README.rst:32
msgid "Code"
msgstr ""
#: ../../More/ServiceLocator/README.rst:34
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../More/ServiceLocator/README.rst:36
msgid "Service.php"
msgstr ""
#: ../../More/ServiceLocator/README.rst:42
msgid "ServiceLocator.php"
msgstr ""
#: ../../More/ServiceLocator/README.rst:48
msgid "LogService.php"
msgstr ""
#: ../../More/ServiceLocator/README.rst:55
msgid "Test"
msgstr ""
#: ../../More/ServiceLocator/README.rst:57
msgid "Tests/ServiceLocatorTest.php"
msgstr ""

View File

@@ -0,0 +1,53 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# Sumita Takaki <sumita.takaki@gmail.com>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Sumita Takaki <sumita.takaki@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../README.rst:5
msgid "DesignPatternsPHP"
msgstr "デザインパターンPHP"
#: ../../README.rst:19
msgid ""
"This is a collection of known `design patterns`_ and some sample code how"
" to implement them in PHP. Every pattern has a small list of examples."
msgstr ""
"`デザインパターン`_ として知られているソフトウェアの設計パターンをPHPでどう実装するのか、カタログ形式にまとめたものです。"
"すべてのパターンにはサンプルコードがついています。"
#: ../../README.rst:22
msgid ""
"I think the problem with patterns is that often people do know them but "
"don't know when to apply which."
msgstr ""
"デザインパターンを知ってはいるものの、それを実際にどんな時に使えばよいか、いまひとつわからないことが多いと思います。"
#: ../../README.rst:26
msgid "Patterns"
msgstr "パターン"
#: ../../README.rst:28
msgid ""
"The patterns can be structured in roughly three different categories. "
"Please click on **the title of every pattern's page** for a full "
"explanation of the pattern on Wikipedia."
msgstr ""
"パターンは大まかに3つのカテゴリーに分けることができます。"
"各ページの **タイトル** をクリックすると、それぞれのデザインパターンのWikipediaの記事に飛ぶようになっているので、"
"詳細な解説はそちらで確認してみてください。"

View File

@@ -0,0 +1,90 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Structural/Adapter/README.rst:2
msgid "`Adapter / Wrapper`__"
msgstr ""
#: ../../Structural/Adapter/README.rst:5
msgid "Purpose"
msgstr ""
#: ../../Structural/Adapter/README.rst:7
msgid ""
"To translate one interface for a class into a compatible interface. An "
"adapter allows classes to work together that normally could not because "
"of incompatible interfaces by providing its interface to clients while "
"using the original interface."
msgstr ""
#: ../../Structural/Adapter/README.rst:13
msgid "Examples"
msgstr ""
#: ../../Structural/Adapter/README.rst:15
msgid "DB Client libraries adapter"
msgstr ""
#: ../../Structural/Adapter/README.rst:16
msgid ""
"using multiple different webservices and adapters normalize data so that "
"the outcome is the same for all"
msgstr ""
#: ../../Structural/Adapter/README.rst:20
msgid "UML Diagram"
msgstr ""
#: ../../Structural/Adapter/README.rst:27
msgid "Code"
msgstr ""
#: ../../Structural/Adapter/README.rst:29
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../Structural/Adapter/README.rst:31
msgid "Book.php"
msgstr ""
#: ../../Structural/Adapter/README.rst:37
msgid "PaperBook.php"
msgstr ""
#: ../../Structural/Adapter/README.rst:43
msgid "EBook.php"
msgstr ""
#: ../../Structural/Adapter/README.rst:49
msgid "EBookAdapter.php"
msgstr ""
#: ../../Structural/Adapter/README.rst:55
msgid "Kindle.php"
msgstr ""
#: ../../Structural/Adapter/README.rst:62
msgid "Test"
msgstr ""
#: ../../Structural/Adapter/README.rst:64
msgid "Tests/AdapterTest.php"
msgstr ""

View File

@@ -0,0 +1,78 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Structural/Bridge/README.rst:2
msgid "`Bridge`__"
msgstr ""
#: ../../Structural/Bridge/README.rst:5
msgid "Purpose"
msgstr ""
#: ../../Structural/Bridge/README.rst:7
msgid ""
"Decouple an abstraction from its implementation so that the two can vary "
"independently."
msgstr ""
#: ../../Structural/Bridge/README.rst:11
msgid "UML Diagram"
msgstr ""
#: ../../Structural/Bridge/README.rst:18
msgid "Code"
msgstr ""
#: ../../Structural/Bridge/README.rst:20
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../Structural/Bridge/README.rst:22
msgid "Formatter.php"
msgstr ""
#: ../../Structural/Bridge/README.rst:28
msgid "PlainTextFormatter.php"
msgstr ""
#: ../../Structural/Bridge/README.rst:34
msgid "HtmlFormatter.php"
msgstr ""
#: ../../Structural/Bridge/README.rst:40
msgid "Service.php"
msgstr ""
#: ../../Structural/Bridge/README.rst:46
msgid "HelloWorldService.php"
msgstr ""
#: ../../Structural/Bridge/README.rst:52
msgid "PingService.php"
msgstr ""
#: ../../Structural/Bridge/README.rst:59
msgid "Test"
msgstr ""
#: ../../Structural/Bridge/README.rst:61
msgid "Tests/BridgeTest.php"
msgstr ""

View File

@@ -0,0 +1,81 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Structural/Composite/README.rst:2
msgid "`Composite`__"
msgstr ""
#: ../../Structural/Composite/README.rst:5
msgid "Purpose"
msgstr ""
#: ../../Structural/Composite/README.rst:7
msgid ""
"To treat a group of objects the same way as a single instance of the "
"object."
msgstr ""
#: ../../Structural/Composite/README.rst:11
msgid "Examples"
msgstr ""
#: ../../Structural/Composite/README.rst:13
msgid ""
"a form class instance handles all its form elements like a single "
"instance of the form, when ``render()`` is called, it subsequently runs "
"through all its child elements and calls ``render()`` on them"
msgstr ""
#: ../../Structural/Composite/README.rst:18
msgid "UML Diagram"
msgstr ""
#: ../../Structural/Composite/README.rst:25
msgid "Code"
msgstr ""
#: ../../Structural/Composite/README.rst:27
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../Structural/Composite/README.rst:29
msgid "Renderable.php"
msgstr ""
#: ../../Structural/Composite/README.rst:35
msgid "Form.php"
msgstr ""
#: ../../Structural/Composite/README.rst:41
msgid "InputElement.php"
msgstr ""
#: ../../Structural/Composite/README.rst:47
msgid "TextElement.php"
msgstr ""
#: ../../Structural/Composite/README.rst:54
msgid "Test"
msgstr ""
#: ../../Structural/Composite/README.rst:56
msgid "Tests/CompositeTest.php"
msgstr ""

View File

@@ -0,0 +1,89 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Structural/DataMapper/README.rst:2
msgid "`Data Mapper`__"
msgstr ""
#: ../../Structural/DataMapper/README.rst:5
msgid "Purpose"
msgstr ""
#: ../../Structural/DataMapper/README.rst:7
msgid ""
"A Data Mapper, is a Data Access Layer that performs bidirectional "
"transfer of data between a persistent data store (often a relational "
"database) and an in memory data representation (the domain layer). The "
"goal of the pattern is to keep the in memory representation and the "
"persistent data store independent of each other and the data mapper "
"itself. The layer is composed of one or more mappers (or Data Access "
"Objects), performing the data transfer. Mapper implementations vary in "
"scope. Generic mappers will handle many different domain entity types, "
"dedicated mappers will handle one or a few."
msgstr ""
#: ../../Structural/DataMapper/README.rst:17
msgid ""
"The key point of this pattern is, unlike Active Record pattern, the data "
"model follows Single Responsibility Principle."
msgstr ""
#: ../../Structural/DataMapper/README.rst:21
msgid "Examples"
msgstr ""
#: ../../Structural/DataMapper/README.rst:23
msgid ""
"DB Object Relational Mapper (ORM) : Doctrine2 uses DAO named as "
"\"EntityRepository\""
msgstr ""
#: ../../Structural/DataMapper/README.rst:27
msgid "UML Diagram"
msgstr ""
#: ../../Structural/DataMapper/README.rst:34
msgid "Code"
msgstr ""
#: ../../Structural/DataMapper/README.rst:36
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../Structural/DataMapper/README.rst:38
msgid "User.php"
msgstr ""
#: ../../Structural/DataMapper/README.rst:44
msgid "UserMapper.php"
msgstr ""
#: ../../Structural/DataMapper/README.rst:50
msgid "StorageAdapter.php"
msgstr ""
#: ../../Structural/DataMapper/README.rst:57
msgid "Test"
msgstr ""
#: ../../Structural/DataMapper/README.rst:59
msgid "Tests/DataMapperTest.php"
msgstr ""

View File

@@ -0,0 +1,82 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Structural/Decorator/README.rst:2
msgid "`Decorator`__"
msgstr ""
#: ../../Structural/Decorator/README.rst:5
msgid "Purpose"
msgstr ""
#: ../../Structural/Decorator/README.rst:7
msgid "To dynamically add new functionality to class instances."
msgstr ""
#: ../../Structural/Decorator/README.rst:10
msgid "Examples"
msgstr ""
#: ../../Structural/Decorator/README.rst:12
msgid ""
"Web Service Layer: Decorators JSON and XML for a REST service (in this "
"case, only one of these should be allowed of course)"
msgstr ""
#: ../../Structural/Decorator/README.rst:16
msgid "UML Diagram"
msgstr ""
#: ../../Structural/Decorator/README.rst:23
msgid "Code"
msgstr ""
#: ../../Structural/Decorator/README.rst:25
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../Structural/Decorator/README.rst:27
msgid "Booking.php"
msgstr ""
#: ../../Structural/Decorator/README.rst:33
msgid "BookingDecorator.php"
msgstr ""
#: ../../Structural/Decorator/README.rst:39
msgid "DoubleRoomBooking.php"
msgstr ""
#: ../../Structural/Decorator/README.rst:45
msgid "ExtraBed.php"
msgstr ""
#: ../../Structural/Decorator/README.rst:51
msgid "WiFi.php"
msgstr ""
#: ../../Structural/Decorator/README.rst:58
msgid "Test"
msgstr ""
#: ../../Structural/Decorator/README.rst:60
msgid "Tests/DecoratorTest.php"
msgstr ""

View File

@@ -0,0 +1,92 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Structural/DependencyInjection/README.rst:2
msgid "`Dependency Injection`__"
msgstr ""
#: ../../Structural/DependencyInjection/README.rst:5
msgid "Purpose"
msgstr ""
#: ../../Structural/DependencyInjection/README.rst:7
msgid ""
"To implement a loosely coupled architecture in order to get better "
"testable, maintainable and extendable code."
msgstr ""
#: ../../Structural/DependencyInjection/README.rst:11
msgid "Usage"
msgstr ""
#: ../../Structural/DependencyInjection/README.rst:13
msgid ""
"``DatabaseConfiguration`` gets injected and ``DatabaseConnection`` will "
"get all that it needs from ``$config``. Without DI, the configuration "
"would be created directly in ``DatabaseConnection``, which is not very "
"good for testing and extending it."
msgstr ""
#: ../../Structural/DependencyInjection/README.rst:19
msgid "Examples"
msgstr ""
#: ../../Structural/DependencyInjection/README.rst:21
msgid ""
"The Doctrine2 ORM uses dependency injection e.g. for configuration that "
"is injected into a ``Connection`` object. For testing purposes, one can "
"easily create a mock object of the configuration and inject that into the"
" ``Connection`` object"
msgstr ""
#: ../../Structural/DependencyInjection/README.rst:25
msgid ""
"many frameworks already have containers for DI that create objects via a "
"configuration array and inject them where needed (i.e. in Controllers)"
msgstr ""
#: ../../Structural/DependencyInjection/README.rst:30
msgid "UML Diagram"
msgstr ""
#: ../../Structural/DependencyInjection/README.rst:37
msgid "Code"
msgstr ""
#: ../../Structural/DependencyInjection/README.rst:39
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../Structural/DependencyInjection/README.rst:41
msgid "DatabaseConfiguration.php"
msgstr ""
#: ../../Structural/DependencyInjection/README.rst:47
msgid "DatabaseConnection.php"
msgstr ""
#: ../../Structural/DependencyInjection/README.rst:54
msgid "Test"
msgstr ""
#: ../../Structural/DependencyInjection/README.rst:56
msgid "Tests/DependencyInjectionTest.php"
msgstr ""

View File

@@ -0,0 +1,95 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Structural/Facade/README.rst:2
msgid "`Facade`__"
msgstr ""
#: ../../Structural/Facade/README.rst:5
msgid "Purpose"
msgstr ""
#: ../../Structural/Facade/README.rst:7
msgid ""
"The primary goal of a Facade Pattern is not to avoid you having to read "
"the manual of a complex API. It's only a side-effect. The first goal is "
"to reduce coupling and follow the Law of Demeter."
msgstr ""
#: ../../Structural/Facade/README.rst:11
msgid ""
"A Facade is meant to decouple a client and a sub-system by embedding many"
" (but sometimes just one) interface, and of course to reduce complexity."
msgstr ""
#: ../../Structural/Facade/README.rst:15
msgid "A facade does not forbid you the access to the sub-system"
msgstr ""
#: ../../Structural/Facade/README.rst:16
msgid "You can (you should) have multiple facades for one sub-system"
msgstr ""
#: ../../Structural/Facade/README.rst:18
msgid ""
"That's why a good facade has no ``new`` in it. If there are multiple "
"creations for each method, it is not a Facade, it's a Builder or a "
"[Abstract\\|Static\\|Simple] Factory [Method]."
msgstr ""
#: ../../Structural/Facade/README.rst:22
msgid ""
"The best facade has no ``new`` and a constructor with interface-type-"
"hinted parameters. If you need creation of new instances, use a Factory "
"as argument."
msgstr ""
#: ../../Structural/Facade/README.rst:27
msgid "UML Diagram"
msgstr ""
#: ../../Structural/Facade/README.rst:34
msgid "Code"
msgstr ""
#: ../../Structural/Facade/README.rst:36
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../Structural/Facade/README.rst:38
msgid "Facade.php"
msgstr ""
#: ../../Structural/Facade/README.rst:44
msgid "OperatingSystem.php"
msgstr ""
#: ../../Structural/Facade/README.rst:50
msgid "Bios.php"
msgstr ""
#: ../../Structural/Facade/README.rst:57
msgid "Test"
msgstr ""
#: ../../Structural/Facade/README.rst:59
msgid "Tests/FacadeTest.php"
msgstr ""

View File

@@ -0,0 +1,70 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Structural/FluentInterface/README.rst:2
msgid "`Fluent Interface`__"
msgstr ""
#: ../../Structural/FluentInterface/README.rst:5
msgid "Purpose"
msgstr ""
#: ../../Structural/FluentInterface/README.rst:7
msgid ""
"To write code that is easy readable just like sentences in a natural "
"language (like English)."
msgstr ""
#: ../../Structural/FluentInterface/README.rst:11
msgid "Examples"
msgstr ""
#: ../../Structural/FluentInterface/README.rst:13
msgid "Doctrine2's QueryBuilder works something like that example class below"
msgstr ""
#: ../../Structural/FluentInterface/README.rst:15
msgid "PHPUnit uses fluent interfaces to build mock objects"
msgstr ""
#: ../../Structural/FluentInterface/README.rst:18
msgid "UML Diagram"
msgstr ""
#: ../../Structural/FluentInterface/README.rst:25
msgid "Code"
msgstr ""
#: ../../Structural/FluentInterface/README.rst:27
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../Structural/FluentInterface/README.rst:29
msgid "Sql.php"
msgstr ""
#: ../../Structural/FluentInterface/README.rst:36
msgid "Test"
msgstr ""
#: ../../Structural/FluentInterface/README.rst:38
msgid "Tests/FluentInterfaceTest.php"
msgstr ""

View File

@@ -0,0 +1,73 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\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 this code on `GitHub`_"
msgstr ""
#: ../../Structural/Flyweight/README.rst:23
msgid "Text.php"
msgstr ""
#: ../../Structural/Flyweight/README.rst:29
msgid "Word.php"
msgstr ""
#: ../../Structural/Flyweight/README.rst:35
msgid "Character.php"
msgstr ""
#: ../../Structural/Flyweight/README.rst:41
msgid "TextFactory.php"
msgstr ""
#: ../../Structural/Flyweight/README.rst:48
msgid "Test"
msgstr ""
#: ../../Structural/Flyweight/README.rst:50
msgid "Tests/FlyweightTest.php"
msgstr ""

View File

@@ -0,0 +1,75 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Structural/Proxy/README.rst:2
msgid "`Proxy`__"
msgstr ""
#: ../../Structural/Proxy/README.rst:5
msgid "Purpose"
msgstr ""
#: ../../Structural/Proxy/README.rst:7
msgid "To interface to anything that is expensive or impossible to duplicate."
msgstr ""
#: ../../Structural/Proxy/README.rst:10
msgid "Examples"
msgstr ""
#: ../../Structural/Proxy/README.rst:12
msgid ""
"Doctrine2 uses proxies to implement framework magic (e.g. lazy "
"initialization) in them, while the user still works with his own entity "
"classes and will never use nor touch the proxies"
msgstr ""
#: ../../Structural/Proxy/README.rst:17
msgid "UML Diagram"
msgstr ""
#: ../../Structural/Proxy/README.rst:24
msgid "Code"
msgstr ""
#: ../../Structural/Proxy/README.rst:26
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../Structural/Proxy/README.rst:28
msgid "BankAccount.php"
msgstr ""
#: ../../Structural/Proxy/README.rst:34
msgid "HeavyBankAccount.php"
msgstr ""
#: ../../Structural/Proxy/README.rst:40
msgid "BankAccountProxy.php"
msgstr ""
#: ../../Structural/Proxy/README.rst:47
msgid "Test"
msgstr ""
#: ../../Structural/Proxy/README.rst:49
msgid "ProxyTest.php"
msgstr ""

View File

@@ -0,0 +1,31 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Structural/README.rst:2
msgid "`Structural`__"
msgstr ""
#: ../../Structural/README.rst:4
msgid ""
"In Software Engineering, Structural Design Patterns are Design Patterns "
"that ease the design by identifying a simple way to realize relationships"
" between entities."
msgstr ""

View File

@@ -0,0 +1,65 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2019, Dominik Liebler and contributors
# This file is distributed under the same license as the DesignPatternsPHP
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-04 00:50+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: ../../Structural/Registry/README.rst:2
msgid "`Registry`__"
msgstr ""
#: ../../Structural/Registry/README.rst:5
msgid "Purpose"
msgstr ""
#: ../../Structural/Registry/README.rst:7
msgid ""
"To implement a central storage for objects often used throughout the "
"application, is typically implemented using an abstract class with only "
"static methods (or using the Singleton pattern). Remember that this "
"introduces global state, which should be avoided at all times! Instead "
"implement it using Dependency Injection!"
msgstr ""
#: ../../Structural/Registry/README.rst:13
msgid "UML Diagram"
msgstr ""
#: ../../Structural/Registry/README.rst:20
msgid "Code"
msgstr ""
#: ../../Structural/Registry/README.rst:22
msgid "You can also find this code on `GitHub`_"
msgstr ""
#: ../../Structural/Registry/README.rst:24
msgid "Registry.php"
msgstr ""
#: ../../Structural/Registry/README.rst:30
msgid "Service.php"
msgstr ""
#: ../../Structural/Registry/README.rst:37
msgid "Test"
msgstr ""
#: ../../Structural/Registry/README.rst:39
msgid "Tests/RegistryTest.php"
msgstr ""