mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-02 21:17:29 +02:00
fix structural
This commit is contained in:
@@ -38,14 +38,14 @@ msgstr "Esempi"
|
|||||||
|
|
||||||
#: ../../Structural/Adapter/README.rst:15
|
#: ../../Structural/Adapter/README.rst:15
|
||||||
msgid "DB Client libraries adapter"
|
msgid "DB Client libraries adapter"
|
||||||
msgstr ""
|
msgstr "Librerie che fungono da adapter a differenti basi di dati"
|
||||||
|
|
||||||
#: ../../Structural/Adapter/README.rst:16
|
#: ../../Structural/Adapter/README.rst:16
|
||||||
msgid ""
|
msgid ""
|
||||||
"using multiple different webservices and adapters normalize data so that the"
|
"using multiple different webservices and adapters normalize data so that the"
|
||||||
" outcome is the same for all"
|
" outcome is the same for all"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"quando si utilizzano differenti servizi web gli adapter possono essere utilizzati "
|
"Quando si utilizzano differenti servizi web gli adapter possono essere utilizzati "
|
||||||
"affinchè normalizzino i dati generando il medesimo output per tutti."
|
"affinchè normalizzino i dati generando il medesimo output per tutti."
|
||||||
|
|
||||||
#: ../../Structural/Adapter/README.rst:13
|
#: ../../Structural/Adapter/README.rst:13
|
||||||
|
@@ -45,7 +45,7 @@ msgid ""
|
|||||||
"The key point of this pattern is, unlike Active Record pattern, the data "
|
"The key point of this pattern is, unlike Active Record pattern, the data "
|
||||||
"model follows Single Responsibility Principle."
|
"model follows Single Responsibility Principle."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Il vantaggio di questo pattern è che, a differenza dell' [Active Record](https://en.wikipedia.org/wiki/Active_record_pattern), "
|
"Il vantaggio di questo pattern è che, a differenza dell'Active Record, "
|
||||||
"il modello dei dati rispetta il principio di Singola Responsabilità."
|
"il modello dei dati rispetta il principio di Singola Responsabilità."
|
||||||
|
|
||||||
#: ../../Structural/DataMapper/README.rst:21
|
#: ../../Structural/DataMapper/README.rst:21
|
||||||
|
@@ -22,11 +22,11 @@ msgstr "Scopo"
|
|||||||
|
|
||||||
#: ../../Structural/Facade/README.rst:7
|
#: ../../Structural/Facade/README.rst:7
|
||||||
msgid ""
|
msgid ""
|
||||||
"The primary goal of a Facade Pattern is not to avoid you having to read the"
|
"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"
|
"manual of a complex API. It's only a side-effect. The first goal is to "
|
||||||
"reduce coupling and follow the Law of Demeter."
|
"reduce coupling and follow the Law of Demeter."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"L'obiettivo primario del patten Facede non è evitare di dover leggere il manuale di un API "
|
"L'obiettivo primario del patten Facade non è evitare di dover leggere il manuale di un API "
|
||||||
"complessa. Questo è un effetto collaterale. Il pattern permette di ridurre "
|
"complessa. Questo è un effetto collaterale. Il pattern permette di ridurre "
|
||||||
"l'accoppiamento e seguire la Legge di Demetra."
|
"l'accoppiamento e seguire la Legge di Demetra."
|
||||||
|
|
||||||
|
@@ -30,9 +30,9 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Per minimizzare l'utilizzo della memoria, il Flyweight condivide quanta più "
|
"Per minimizzare l'utilizzo della memoria, il Flyweight condivide quanta più "
|
||||||
"memoria possibile con oggetti simili. Diventa necessario quando un sono utilizzati "
|
"memoria possibile con oggetti simili. Diventa necessario quando un sono utilizzati "
|
||||||
"un grande ammontare di oggetti i cui stati non differiscono di molto. Una pratica comune consiste "
|
"un grande ammontare di oggetti i cui stati non differiscono di molto. Una pratica comune "
|
||||||
"nel preservare lo stato in una struttura dati e passarla al flyweight quando è necessario."
|
"consiste nel preservare lo stato in una struttura dati e passarla al flyweight "
|
||||||
"Flyweight en cas de besoin."
|
"quando è necessario."
|
||||||
|
|
||||||
#: ../../Structural/Flyweight/README.rst:13
|
#: ../../Structural/Flyweight/README.rst:13
|
||||||
msgid "UML Diagram"
|
msgid "UML Diagram"
|
||||||
|
@@ -35,8 +35,8 @@ msgid ""
|
|||||||
"initialization) in them, while the user still works with his own entity "
|
"initialization) in them, while the user still works with his own entity "
|
||||||
"classes and will never use nor touch the proxies"
|
"classes and will never use nor touch the proxies"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Doctrine2 utilizza i proxy per implementare alcune _magie_ del framework "
|
"Doctrine2 utilizza i proxy per implementare alcune magie del framework "
|
||||||
"(as esempio inizializzazione pigra), mentre l'utente lavora con le sue classi entità "
|
"(ad esempio inizializzazione pigra), mentre l'utente lavora con le sue classi entità "
|
||||||
"senza utilizzare nè toccare i proxy."
|
"senza utilizzare nè toccare i proxy."
|
||||||
|
|
||||||
#: ../../Structural/Proxy/README.rst:13
|
#: ../../Structural/Proxy/README.rst:13
|
||||||
|
@@ -22,13 +22,15 @@ msgstr "Scopo"
|
|||||||
|
|
||||||
#: ../../Structural/Registry/README.rst:7
|
#: ../../Structural/Registry/README.rst:7
|
||||||
msgid ""
|
msgid ""
|
||||||
"To implement a central storage for objects often used throughout the "
|
"To implement a central storage for objects often used throughout the application, is typically "
|
||||||
"application, is typically implemented using an abstract class with only "
|
"implemented using an abstract class with only static methods (or using the Singleton pattern). "
|
||||||
"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 ""
|
msgstr ""
|
||||||
"Implementare un meccanismo di memorizzazione di oggetti centralizzato utilizzato "
|
"Implementare un meccanismo di memorizzazione di oggetti centralizzato utilizzato dall'applicazione. "
|
||||||
"dall'applicazione. Lo si realizza tipicamente tramite una classe astratta con solo "
|
"Lo si realizza tipicamente tramite una classe astratta con solo metodi statici (o tramite il pattern Singleton). "
|
||||||
"metodi statici (o tramite il pattern Singleton)."
|
"Ricordate che implementato in questo modo introducete uno stato globale, che dovrebbe sempre essere evitato! "
|
||||||
|
"Utilizzate invece la Dependecy Injection!"
|
||||||
|
|
||||||
#: ../../Structural/Proxy/README.rst:13
|
#: ../../Structural/Proxy/README.rst:13
|
||||||
msgid "UML Diagram"
|
msgid "UML Diagram"
|
||||||
|
Reference in New Issue
Block a user