From 138d3d7bee101c1423cf7efd8dd16b215349b6d9 Mon Sep 17 00:00:00 2001 From: PabloGarciaComBR Date: Wed, 10 Apr 2019 14:18:11 -0300 Subject: [PATCH 01/20] Update README.po of Abstract Factory pattern Abstract Factory pattern in Creational section. --- .../Creational/AbstractFactory/README.po | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/locale/pt_BR/LC_MESSAGES/Creational/AbstractFactory/README.po b/locale/pt_BR/LC_MESSAGES/Creational/AbstractFactory/README.po index 2072b7d..3fb6d47 100644 --- a/locale/pt_BR/LC_MESSAGES/Creational/AbstractFactory/README.po +++ b/locale/pt_BR/LC_MESSAGES/Creational/AbstractFactory/README.po @@ -4,8 +4,9 @@ msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-05-29 12:18+0200\n" -"PO-Revision-Date: 2015-06-20 12:00-0300\n" -"Last-Translator: Leonam Pereira Dias \n" +"PO-Revision-Date: 2019-04-10 14:10-0300\n" +"Previous-Translator: Leonam Pereira Dias \n" +"Last-Translator: Pablo Juan Garcia \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -22,14 +23,15 @@ msgstr "Objetivo" #: ../../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, he just knows how they go together." +"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 "" -"Para a criação de conjunto de objetos relacionados ou dependentes sem especificar suas " -"classes concretas. O cliente da fábrica de abstração não precisa se preocupar como estes " -"objetos são criados, ele só sabe obtê-los." +"Criar séries de objetos relacionados ou dependentes sem especificar suas " +"classes concretas. Usualmente todas as classes criadas implementam a " +"mesma interface. O cliente da fábrica de abstração não precisa se preocupar " +"como estes objetos são criados, ele só sabe obtê-los." #: ../../Creational/AbstractFactory/README.rst:13 msgid "UML Diagram" From 2245276b0145aaa673272c9fea5f3ab7eb6760d7 Mon Sep 17 00:00:00 2001 From: PabloGarciaComBR Date: Wed, 10 Apr 2019 14:21:40 -0300 Subject: [PATCH 02/20] Updated README.po of Factory Method Factory Method in Creational section. --- .../LC_MESSAGES/Creational/FactoryMethod/README.po | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/locale/pt_BR/LC_MESSAGES/Creational/FactoryMethod/README.po b/locale/pt_BR/LC_MESSAGES/Creational/FactoryMethod/README.po index 5e18e72..2788c65 100644 --- a/locale/pt_BR/LC_MESSAGES/Creational/FactoryMethod/README.po +++ b/locale/pt_BR/LC_MESSAGES/Creational/FactoryMethod/README.po @@ -4,8 +4,9 @@ msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-05-29 12:18+0200\n" -"PO-Revision-Date: 2015-06-21 11:09-0300\n" -"Last-Translator: Leonam Pereira Dias \n" +"PO-Revision-Date: 2019-04-10 14:20-0300\n" +"Previous-Translator: Leonam Pereira Dias \n" +"Last-Translator: Pablo Juan Garcia \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -22,15 +23,15 @@ msgstr "Objetivo" #: ../../Creational/FactoryMethod/README.rst:7 msgid "" "The good point over the SimpleFactory is you can subclass it to implement " -"different ways to create objects" +"different ways to create objects." msgstr "" "O ponto positivo em relação ao SimpleFactory é que pode-se extender sua implementação " "de diferentes maneiras para a criação de objetos." #: ../../Creational/FactoryMethod/README.rst:10 -msgid "For simple case, this abstract class could be just an interface" +msgid "For simple cases, this abstract class could be just an interface." msgstr "" -"Para um caso simples, esta classe abstrata pode ser apenas uma interface" +"Para casos simples, esta classe abstrata pode ser apenas uma interface." #: ../../Creational/FactoryMethod/README.rst:12 msgid "" From 7374faf2577d8b1474b694d2895f75fc915e5f07 Mon Sep 17 00:00:00 2001 From: PabloGarciaComBR Date: Wed, 10 Apr 2019 14:23:56 -0300 Subject: [PATCH 03/20] Updated README.po of Multiton Multiton in Creational section --- locale/pt_BR/LC_MESSAGES/Creational/Multiton/README.po | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/locale/pt_BR/LC_MESSAGES/Creational/Multiton/README.po b/locale/pt_BR/LC_MESSAGES/Creational/Multiton/README.po index 17aa648..ba73482 100644 --- a/locale/pt_BR/LC_MESSAGES/Creational/Multiton/README.po +++ b/locale/pt_BR/LC_MESSAGES/Creational/Multiton/README.po @@ -4,8 +4,9 @@ msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-05-29 12:18+0200\n" -"PO-Revision-Date: 2017-08-03 00:33-0300\n" -"Last-Translator: Leonam Pereira Dias \n" +"PO-Revision-Date: 2019-04-10 14:25-0300\n" +"Previous-Translator: Leonam Pereira Dias \n" +"Last-Translator: Pablo Juan Garcia \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -20,8 +21,8 @@ msgid "" "**THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND " "MAINTAINABILITY USE DEPENDENCY INJECTION!**" msgstr "" -"**ESTE É CONSIDERADO UM ANTI-PATTERN! PARA MELHOR TESTABILIDADE E" -"MANUTENIBILIDADE USE INJEÇÃO DE DEPENDÊNCIAS" +"**ESTE É CONSIDERADO UM ANTI-PATTERN! PARA MELHOR TESTABILIDADE E " +"MANUTENIBILIDADE USE INJEÇÃO DE DEPENDÊNCIAS!**" #: ../../Creational/Multiton/README.rst:8 msgid "Purpose" From 0f0e478a4d297498ff6e23cebc38315a25143e22 Mon Sep 17 00:00:00 2001 From: PabloGarciaComBR Date: Wed, 10 Apr 2019 14:25:38 -0300 Subject: [PATCH 04/20] Updated README.po of Multiton Multiton in Creational section --- locale/pt_BR/LC_MESSAGES/Creational/Multiton/README.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/locale/pt_BR/LC_MESSAGES/Creational/Multiton/README.po b/locale/pt_BR/LC_MESSAGES/Creational/Multiton/README.po index ba73482..1123c87 100644 --- a/locale/pt_BR/LC_MESSAGES/Creational/Multiton/README.po +++ b/locale/pt_BR/LC_MESSAGES/Creational/Multiton/README.po @@ -33,8 +33,8 @@ msgid "" "To have only a list of named instances that are used, like a singleton but " "with n instances." msgstr "" -"Para se ter uma lista conhecida de instâncias utilizáveis, como um singleton mas" -"com n instâncias" +"Para se ter uma lista conhecida de instâncias utilizáveis, como um singleton mas " +"com n instâncias." #: ../../Creational/Multiton/README.rst:14 msgid "Examples" From 7ef325a353f08a6a15c1939e005947bb748abba9 Mon Sep 17 00:00:00 2001 From: PabloGarciaComBR Date: Wed, 10 Apr 2019 14:51:53 -0300 Subject: [PATCH 05/20] Rectified README.po of Pool pattern Pool pattern in Creational section --- .../LC_MESSAGES/Creational/Pool/README.po | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/locale/pt_BR/LC_MESSAGES/Creational/Pool/README.po b/locale/pt_BR/LC_MESSAGES/Creational/Pool/README.po index 1d93943..93f9693 100644 --- a/locale/pt_BR/LC_MESSAGES/Creational/Pool/README.po +++ b/locale/pt_BR/LC_MESSAGES/Creational/Pool/README.po @@ -4,7 +4,7 @@ msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-05-29 12:18+0200\n" -"PO-Revision-Date: 2019-02-12 16:33-0300\n" +"PO-Revision-Date: 2019-04-10 14:50-0300\n" "Last-Translator: Pablo Juan Garcia \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -24,12 +24,12 @@ msgid "" "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 "" -"O **padrão de conjunto de objetos** é um padrão de design criacional de software que " +"O **padrão de conjunto de objetos** é um padrão de design criacional de software que " "usa um conjunto de objetos inicializados mantidos prontos para usar – um \"pool\" – em vez " -"de alocá-los e destruí-los sob demanda. Um cliente do agrupamento " -"solicitará um objeto do pool e executará operações no objeto retornado. " -"Quando o cliente termina, retorna o objeto, que é um " -"tipo específico de objeto de fábrica, para o pool, em vez de destruí-lo. " +"de alocá-los e destruí-los sob demanda. Um cliente do agrupamento " +"solicitará um objeto do pool e executará operações no objeto retornado. " +"Quando o cliente termina, retorna o objeto, que é um " +"tipo específico de objeto de fábrica, para o pool, em vez de destruí-lo. " #: ../../Creational/Pool/README.rst:11 msgid "" @@ -40,12 +40,12 @@ msgid "" "creation of the new objects (especially over network) may take variable " "time." msgstr "" -"O agrupamento de objetos pode oferecer um aumento significativo de desempenho em situações " -"onde o custo de inicializar uma instância de classe é alto, a taxa de " -"instanciação de uma classe é alta, e o número de instâncias em uso em " -"qualquer momento é baixo. O objeto em pool é obtido em tempo previsível " -"enquanto a criação dos novos objetos (especialmente na rede) pode levar " -"tempo variável. " +"O agrupamento de objetos pode oferecer um aumento significativo de desempenho em situações " +"onde o custo de inicializar uma instância de classe é alto, a taxa de " +"instanciação de uma classe é alta, e o número de instâncias em uso em " +"qualquer momento é baixo. O objeto em pool é obtido em tempo previsível " +"enquanto a criação dos novos objetos (especialmente na rede) pode levar " +"tempo variável. " #: ../../Creational/Pool/README.rst:18 msgid "" @@ -55,11 +55,11 @@ msgid "" "simple object pooling (that hold no external resources, but only occupy " "memory) may not be efficient and could decrease performance." msgstr "" -"No entanto, esses benefícios são principalmente verdadeiros para objetos que são caros " -"em relação ao tempo, como conexões de banco de dados, conexões de soquete, " -"encadeamentos e grandes objetos gráficos, como fontes ou bitmaps. Em certas " -"situações, o agrupamento de objetos simples (que não contêm recursos externos, mas " -"apenas ocupam memória) pode não ser eficiente e diminuir o desempenho. " +"No entanto, esses benefícios são principalmente verdadeiros para objetos que são caros " +"em relação ao tempo, como conexões de banco de dados, conexões de soquete, " +"encadeamentos e grandes objetos gráficos, como fontes ou bitmaps. Em certas " +"situações, o agrupamento de objetos simples (que não contém recursos externos, mas " +"apenas ocupam memória) pode não ser eficiente e diminuir o desempenho. " #: ../../Creational/Pool/README.rst:25 msgid "UML Diagram" @@ -67,11 +67,11 @@ msgstr "Diagrama UML" #: ../../Creational/Pool/README.rst:32 msgid "Code" -msgstr "Código" +msgstr "Código" #: ../../Creational/Pool/README.rst:34 msgid "You can also find this code on `GitHub`_" -msgstr "Você também pode encontrar esse código no `GitHub`_" +msgstr "Você também pode encontrar esse código no `GitHub`_" #: ../../Creational/Pool/README.rst:55 msgid "Test" From 6b34fa1ec2cf9ce530fe5048c1c61d1c370a5e2b Mon Sep 17 00:00:00 2001 From: PabloGarciaComBR Date: Wed, 10 Apr 2019 15:42:24 -0300 Subject: [PATCH 06/20] Updated README.po of Simple Factory pattern Simple Factory pattern in Creational section. --- .../Creational/SimpleFactory/README.po | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/locale/pt_BR/LC_MESSAGES/Creational/SimpleFactory/README.po b/locale/pt_BR/LC_MESSAGES/Creational/SimpleFactory/README.po index a34ef8e..6b564d2 100644 --- a/locale/pt_BR/LC_MESSAGES/Creational/SimpleFactory/README.po +++ b/locale/pt_BR/LC_MESSAGES/Creational/SimpleFactory/README.po @@ -4,8 +4,9 @@ msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-05-29 12:18+0200\n" -"PO-Revision-Date: 2017-08-03 21:02-0300\n" -"Last-Translator: Leonam Pereira Dias \n" +"PO-Revision-Date: 2019-04-10 15:35-0300\n" +"Previous-Translator: Leonam Pereira Dias \n" +"Last-Translator: Pablo Juan Garcia \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -25,11 +26,13 @@ msgstr "SimpleFactory (Fábrica Simples) é uma implementação mais simples do #: ../../Creational/SimpleFactory/README.rst:9 msgid "" -"It differs from the static factory because it is NOT static and as you know:" -" static => global => evil!" +"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 "" -"Diferencia-se do padrão de Fábrica estática porque não faz uso de implementação estática e como você sabe" -" estático => escopo global => caos!" +"Diferencia-se do padrão de Fábrica Estática porque não é estático. " +"Assim sendo, você precisa ter múltiplas fábricas, diferentemente parametrizadas, você pode ter subclasses disto e " +"pode simular isto. Este padrão deve ser sempre preferido sobre o padrão de Fábrica Estática!" #: ../../Creational/SimpleFactory/README.rst:12 msgid "" @@ -51,6 +54,10 @@ msgstr "Código" msgid "You can also find this code on `GitHub`_" msgstr "Você também pode encontrar esse código no `GitHub`_" +#: ../../Creational/SimpleFactory/README.rst:37 +msgid "Usage" +msgstr "Uso" + #: ../../Creational/SimpleFactory/README.rst:52 msgid "Test" msgstr "Teste" From bbb1297c40c98111b323d62352f25b5eb4269d3c Mon Sep 17 00:00:00 2001 From: PabloGarciaComBR Date: Wed, 10 Apr 2019 15:44:48 -0300 Subject: [PATCH 07/20] Updated README.po of Singleton pattern Singleton pattern in Creational section. --- .../pt_BR/LC_MESSAGES/Creational/Singleton/README.po | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/locale/pt_BR/LC_MESSAGES/Creational/Singleton/README.po b/locale/pt_BR/LC_MESSAGES/Creational/Singleton/README.po index 8c4bd87..b1a393e 100644 --- a/locale/pt_BR/LC_MESSAGES/Creational/Singleton/README.po +++ b/locale/pt_BR/LC_MESSAGES/Creational/Singleton/README.po @@ -4,8 +4,9 @@ msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-05-29 12:18+0200\n" -"PO-Revision-Date: 2017-08-03 21:02-0300\n" -"Last-Translator: Leonam Pereira Dias \n" +"PO-Revision-Date: 2019-04-10 15:45-0300\n" +"Previous-Translator: Leonam Pereira Dias \n" +"Last-Translator: Pablo Juan Garcia \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -21,7 +22,7 @@ msgid "" "MAINTAINABILITY USE DEPENDENCY INJECTION!**" msgstr "" "**CONSIDERADO UM ANTI-PATTERN! PARA MELHOR TESTABILIDADE E " -"MANUTENIBILIDADE USE INJEÇÃO DEPENDÊNCIAS" +"MANUTENIBILIDADE USE INJEÇÃO DEPENDÊNCIAS!**" #: ../../Creational/Singleton/README.rst:8 msgid "Purpose" @@ -33,7 +34,7 @@ msgid "" " all calls." msgstr "" "Ter uma única instância da classe na aplicação que será responsável por gerenciar" -" todas as chamadas a ela" +" todas as chamadas a ela." #: ../../Creational/Singleton/README.rst:14 msgid "Examples" @@ -41,7 +42,7 @@ msgstr "Exemplos" #: ../../Creational/Singleton/README.rst:16 msgid "DB Connector" -msgstr "Conexão ao banco de dados" +msgstr "Conexão ao banco de dados (DB Connector)" #: ../../Creational/Singleton/README.rst:17 msgid "" From f0334906487fed0ba450dcddcd61db67f15a1aff Mon Sep 17 00:00:00 2001 From: PabloGarciaComBR Date: Wed, 10 Apr 2019 16:02:48 -0300 Subject: [PATCH 08/20] Updated README.po of Static Factory pattern Static Factory pattern in Creational section --- .../LC_MESSAGES/Creational/StaticFactory/README.po | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/locale/pt_BR/LC_MESSAGES/Creational/StaticFactory/README.po b/locale/pt_BR/LC_MESSAGES/Creational/StaticFactory/README.po index b0e117e..401d913 100644 --- a/locale/pt_BR/LC_MESSAGES/Creational/StaticFactory/README.po +++ b/locale/pt_BR/LC_MESSAGES/Creational/StaticFactory/README.po @@ -4,7 +4,8 @@ msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-05-29 12:18+0200\n" -"PO-Revision-Date: 2019-02-07 16:20-0300\n" +"PO-Revision-Date: 2019-04-10 15:50-0300\n" +"Previous-Translator: Leonam Pereira Dias \n" "Last-Translator: Pablo Juan Garcia \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -27,8 +28,11 @@ msgid "" "method to create all types of objects it can create. It is usually named " "``factory`` or ``build``." msgstr "" -"Semelhante à Fábrica Abstrata, este padrão é utilizado para a criação de um conjunto de" -" objetos relacionados ou dependentes. A diferença entre o padrão " +"Semelhante à Fábrica Abstrata, este padrão é utilizado para a criação de um conjunto de " +"objetos relacionados ou dependentes. A diferença entre este padrão e o Fábrica " +"Abstrata é que o Fábrica Estática usa apenas um método estático para criar todos " +"os tipos de objetos que ele pode criar. Ele é chamado usualmente de ``factory`` " +"ou ``build``." #: ../../Creational/StaticFactory/README.rst:14 msgid "Examples" @@ -39,6 +43,8 @@ msgid "" "Zend Framework: ``Zend_Cache_Backend`` or ``_Frontend`` use a factory method" " create cache backends or frontends" msgstr "" +"Zend Framework: ``Zend_Cache_Backend`` ou ``_Frontend`` usam um método fábrica " +"para criar o cache do backend ou frontend" #: ../../Creational/StaticFactory/README.rst:20 msgid "UML Diagram" From 4aadfc6115031c406b89ccb5048a64916b011086 Mon Sep 17 00:00:00 2001 From: PabloGarciaComBR Date: Wed, 10 Apr 2019 16:16:38 -0300 Subject: [PATCH 09/20] Revised the Structural section Revised the Structural section and made small corrections in translation. --- locale/pt_BR/LC_MESSAGES/Structural/Adapter/README.po | 2 +- locale/pt_BR/LC_MESSAGES/Structural/Composite/README.po | 2 +- locale/pt_BR/LC_MESSAGES/Structural/DataMapper/README.po | 2 +- locale/pt_BR/LC_MESSAGES/Structural/Decorator/README.po | 2 +- .../LC_MESSAGES/Structural/DependencyInjection/README.po | 2 +- .../pt_BR/LC_MESSAGES/Structural/FluentInterface/README.po | 2 +- locale/pt_BR/LC_MESSAGES/Structural/Flyweight/README.po | 2 +- locale/pt_BR/LC_MESSAGES/Structural/Proxy/README.po | 2 +- locale/pt_BR/LC_MESSAGES/Structural/Registry/README.po | 6 +++--- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/locale/pt_BR/LC_MESSAGES/Structural/Adapter/README.po b/locale/pt_BR/LC_MESSAGES/Structural/Adapter/README.po index cb29c1e..4f97b51 100644 --- a/locale/pt_BR/LC_MESSAGES/Structural/Adapter/README.po +++ b/locale/pt_BR/LC_MESSAGES/Structural/Adapter/README.po @@ -27,7 +27,7 @@ msgid "" "incompatible interfaces by providing its interface to clients while using " "the original interface." msgstr "" -"Para adaptar (compatibilizar) uma interface de uma classe a outra interface. Um " +"Adaptar (compatibilizar) uma interface de uma classe a outra interface. Um " "adapter permite que classes trabalhem juntas quando, normalmente isso não seria possível " "devido imcompatibilidade, provendo sua interface para seus clientes enquanto usa a" "interface original" diff --git a/locale/pt_BR/LC_MESSAGES/Structural/Composite/README.po b/locale/pt_BR/LC_MESSAGES/Structural/Composite/README.po index da255dc..b72daae 100644 --- a/locale/pt_BR/LC_MESSAGES/Structural/Composite/README.po +++ b/locale/pt_BR/LC_MESSAGES/Structural/Composite/README.po @@ -23,7 +23,7 @@ msgstr "Objetivo" msgid "" "To treat a group of objects the same way as a single instance of the object." msgstr "" -"Para tratar um grupo de objetos da mesma forma como uma única instância do objeto." +"Tratar um grupo de objetos da mesma forma como uma única instância do objeto." #: ../../Structural/Composite/README.rst:11 msgid "Examples" diff --git a/locale/pt_BR/LC_MESSAGES/Structural/DataMapper/README.po b/locale/pt_BR/LC_MESSAGES/Structural/DataMapper/README.po index bd1dd0c..b65e281 100644 --- a/locale/pt_BR/LC_MESSAGES/Structural/DataMapper/README.po +++ b/locale/pt_BR/LC_MESSAGES/Structural/DataMapper/README.po @@ -31,7 +31,7 @@ msgid "" "many different domain entity types, dedicated mappers will handle one or a " "few." msgstr "" -"Um mepeador de dados é uma camada de acesso à dados que realiza transferências " +"Um mapeador de dados é uma camada de acesso à dados que realiza transferências " "bidirecionais de dados entre um armazenamento de dados persistente (frequentemente um " "banco de dados relacional) e uma representação em memória dos dados (a camada de domínio). " "O objetivo do padrão é manter a representação em memória e o armazenamento de dados " diff --git a/locale/pt_BR/LC_MESSAGES/Structural/Decorator/README.po b/locale/pt_BR/LC_MESSAGES/Structural/Decorator/README.po index cb530c5..ad51827 100644 --- a/locale/pt_BR/LC_MESSAGES/Structural/Decorator/README.po +++ b/locale/pt_BR/LC_MESSAGES/Structural/Decorator/README.po @@ -21,7 +21,7 @@ msgstr "Objetivo" #: ../../Structural/Decorator/README.rst:7 msgid "To dynamically add new functionality to class instances." -msgstr "Para adicionar dinamicamente novas funcionalidades para as instâncias de uma classe." +msgstr "Adicionar dinamicamente novas funcionalidades para as instâncias de uma classe." #: ../../Structural/Decorator/README.rst:10 msgid "Examples" diff --git a/locale/pt_BR/LC_MESSAGES/Structural/DependencyInjection/README.po b/locale/pt_BR/LC_MESSAGES/Structural/DependencyInjection/README.po index 5221a43..0184e19 100644 --- a/locale/pt_BR/LC_MESSAGES/Structural/DependencyInjection/README.po +++ b/locale/pt_BR/LC_MESSAGES/Structural/DependencyInjection/README.po @@ -24,7 +24,7 @@ msgid "" "To implement a loosely coupled architecture in order to get better testable," " maintainable and extendable code." msgstr "" -"Para implementar uma arquitetura menos acoplada com o objetivo de obter um código " +"Implementar uma arquitetura menos acoplada com o objetivo de obter um código " "mais fácil de testar, de melhor manutenibilidade e mais extensível." #: ../../Structural/DependencyInjection/README.rst:11 diff --git a/locale/pt_BR/LC_MESSAGES/Structural/FluentInterface/README.po b/locale/pt_BR/LC_MESSAGES/Structural/FluentInterface/README.po index e73d1ef..374e769 100644 --- a/locale/pt_BR/LC_MESSAGES/Structural/FluentInterface/README.po +++ b/locale/pt_BR/LC_MESSAGES/Structural/FluentInterface/README.po @@ -24,7 +24,7 @@ msgid "" "To write code that is easy readable just like sentences in a natural " "language (like English)." msgstr "" -"Para escrever código que é facilmente legível como sentenças em uma linguagem " +"Escrever código que é facilmente legível como sentenças em uma linguagem " "natural (como o Português)." #: ../../Structural/FluentInterface/README.rst:11 diff --git a/locale/pt_BR/LC_MESSAGES/Structural/Flyweight/README.po b/locale/pt_BR/LC_MESSAGES/Structural/Flyweight/README.po index 914e92a..0d50090 100644 --- a/locale/pt_BR/LC_MESSAGES/Structural/Flyweight/README.po +++ b/locale/pt_BR/LC_MESSAGES/Structural/Flyweight/README.po @@ -33,7 +33,7 @@ msgid "" "external data structures and pass them to the flyweight object when " "needed." msgstr "" -"Para minimizar o uso de memória, um Flyweight compartilha memória o quanto for possível " +"Minimizar o uso de memória, um Flyweight compartilha memória o quanto for possível " "com objetos similares. Ele é necessário quando um grande número de objetos são utilizados" " de forma que não diferem muito em estado. Uma prática comum é manter o estado nas estruturas de " "dados externos e passá-los para o objeto Flyweight quando necessário." diff --git a/locale/pt_BR/LC_MESSAGES/Structural/Proxy/README.po b/locale/pt_BR/LC_MESSAGES/Structural/Proxy/README.po index 412523f..969728f 100644 --- a/locale/pt_BR/LC_MESSAGES/Structural/Proxy/README.po +++ b/locale/pt_BR/LC_MESSAGES/Structural/Proxy/README.po @@ -21,7 +21,7 @@ msgstr "Objetivo" #: ../../Structural/Proxy/README.rst:7 msgid "To interface to anything that is expensive or impossible to duplicate." -msgstr "Para servir de interface para qualquer coisa que é custosa ou impossível de duplicar." +msgstr "Servir de interface para qualquer coisa que é custosa ou impossível de duplicar." #: ../../Structural/Proxy/README.rst:10 msgid "Examples" diff --git a/locale/pt_BR/LC_MESSAGES/Structural/Registry/README.po b/locale/pt_BR/LC_MESSAGES/Structural/Registry/README.po index f11bcb5..8483272 100644 --- a/locale/pt_BR/LC_MESSAGES/Structural/Registry/README.po +++ b/locale/pt_BR/LC_MESSAGES/Structural/Registry/README.po @@ -24,10 +24,10 @@ 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! " +"global state, which should be avoided at all times! Instead implement it using Dependency Injection!" msgstr "" -"Para implementar um armazenamento centralizado para objetos frequentemente usados em toda a aplicação, " +"Implementar um armazenamento centralizado para objetos frequentemente usados em toda a aplicação, " "é tipicamente implementado usando uma classe abstrata com apenas métodos estáticos (ou usando " "o padrão Singleton). Lembre que isto introduz em estado global, o qual deve ser evitado sempre! " "Em vez disso, implemente isto usando a Injeção de Dependência (Dependency Injection)!" @@ -41,7 +41,7 @@ msgid "" "Zend Framework 1: ``Zend_Registry`` holds the application's logger " "object, front controller etc." msgstr "" -"Zend Framework 1: ``Zend_Registry` mentém o objeto logger da aplicação, " +"Zend Framework 1: ``Zend_Registry` mantém o objeto logger da aplicação, " "front controller, etc." #: ../../Structural/Registry/README.rst:16 From 3b7b856b3516e8ce71fdd81e11318d465904cd45 Mon Sep 17 00:00:00 2001 From: PabloGarciaComBR Date: Thu, 11 Apr 2019 11:00:12 -0300 Subject: [PATCH 10/20] Updated README.po of Service Locator pattern Service Locator pattern in More section. --- .../LC_MESSAGES/More/ServiceLocator/README.po | 35 ++++++++++++++----- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/locale/pt_BR/LC_MESSAGES/More/ServiceLocator/README.po b/locale/pt_BR/LC_MESSAGES/More/ServiceLocator/README.po index b1af670..8bbd852 100644 --- a/locale/pt_BR/LC_MESSAGES/More/ServiceLocator/README.po +++ b/locale/pt_BR/LC_MESSAGES/More/ServiceLocator/README.po @@ -4,8 +4,9 @@ msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-05-29 12:18+0200\n" -"PO-Revision-Date: 2017-10-14 12:00-0300\n" -"Last-Translator: Leonam Pereira Dias \n" +"PO-Revision-Date: 2019-04-10 17:25-0300\n" +"Previous-Translator: Leonam Pereira Dias \n" +"Last-Translator: Pablo Juan Garcia \n" "Language-Team: pt_BR \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -15,11 +16,27 @@ msgstr "" msgid "`Service Locator`__" msgstr "`Localizador de Serviço`__" -#: ../../More/ServiceLocator/README.rst:5 +#: ../../More/ServiceLocator/README.rst:4 +msgid "**THIS IS CONSIDERED TO BE AN ANTI-PATTERN!**" +msgstr "**ESTE É CONSIDERADO UM ANTI-PATTERN!**" + +#: ../../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 "" +"O Localizador de Serviço (Service Locator) é considerado por muitas pessoas como um anti-padrão. Ele viola o princípio da " +"inversão de dependência. O padrão Localizador de Serviço oculta as dependências da classe ao invés de expô-las, como você " +"poderia fazer usando Injeção de Dependências (Dependency Injection). Em caso de mudanças destas dependências, você corre o " +"risco de quebrar a funcionalidade das classes que estão as usando, fazendo com que seu sistema seja difícil de manter." + +#: ../../More/ServiceLocator/README.rst:9 msgid "Purpose" msgstr "Objetivo" -#: ../../More/ServiceLocator/README.rst:7 +#: ../../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 " @@ -29,11 +46,11 @@ msgstr "" " manutenibilidade e extensão de um código. Injeção de dependências e Localizador de Serviços " "são implementações do padrão de Inversão de dependências." -#: ../../More/ServiceLocator/README.rst:12 +#: ../../More/ServiceLocator/README.rst:16 msgid "Usage" msgstr "Uso" -#: ../../More/ServiceLocator/README.rst:14 +#: ../../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 " @@ -45,11 +62,11 @@ msgstr "" " da aplicação sem conhecimento de sua implementação. É possível configurar e" " injetar a instancia de um Localizador de Serviço no _bootstrap_." -#: ../../More/ServiceLocator/README.rst:20 +#: ../../More/ServiceLocator/README.rst:24 msgid "Examples" msgstr "Exemplos" -#: ../../More/ServiceLocator/README.rst:22 +#: ../../More/ServiceLocator/README.rst:27 msgid "" "Zend Framework 2 uses Service Locator to create and share services used in " "the framework(i.e. EventManager, ModuleManager, all custom user services " @@ -59,7 +76,7 @@ msgstr "" "framework (Ex: EventManager, ModuleManager, todos os serviços customizados " "fornecidos por módulos, etc...)" -#: ../../More/ServiceLocator/README.rst:27 +#: ../../More/ServiceLocator/README.rst:31 msgid "UML Diagram" msgstr "Diagrama UML" From 123dd8a819f207f0ca768b7a5fd7be0f4bf94ab9 Mon Sep 17 00:00:00 2001 From: PabloGarciaComBR Date: Thu, 11 Apr 2019 11:35:28 -0300 Subject: [PATCH 11/20] Updated README.po of EAV page I made a small correction in the text of EAV page. --- locale/pt_BR/LC_MESSAGES/More/EAV/README.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale/pt_BR/LC_MESSAGES/More/EAV/README.po b/locale/pt_BR/LC_MESSAGES/More/EAV/README.po index 8067aa6..7fc6659 100644 --- a/locale/pt_BR/LC_MESSAGES/More/EAV/README.po +++ b/locale/pt_BR/LC_MESSAGES/More/EAV/README.po @@ -14,7 +14,7 @@ msgstr "Entidade–Atributo–Valor (EAV)" #: ../../More/EAV/README.rst:4 msgid "The Entity–attribute–value (EAV) pattern in order to implement EAV model with PHP." -msgstr "O padrão Entidade–atributo–valor (EAV), a fim de implementar o modelo EAV com o PHP." +msgstr "O padrão Entidade–Atributo–Valor (EAV), a fim de implementar o modelo EAV com o PHP." #: ../../More/EAV/README.rst:6 msgid "Purpose" From 6827888f0a6ea8949ef8f5094a0791bcbb4446d8 Mon Sep 17 00:00:00 2001 From: PabloGarciaComBR Date: Thu, 11 Apr 2019 12:34:12 -0300 Subject: [PATCH 12/20] Small adjustments Adjustments in Behavioral already translated pages. --- .../Behavioral/ChainOfResponsibilities/README.po | 8 ++++---- locale/pt_BR/LC_MESSAGES/Behavioral/Memento/README.po | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/locale/pt_BR/LC_MESSAGES/Behavioral/ChainOfResponsibilities/README.po b/locale/pt_BR/LC_MESSAGES/Behavioral/ChainOfResponsibilities/README.po index fc6422b..388889c 100644 --- a/locale/pt_BR/LC_MESSAGES/Behavioral/ChainOfResponsibilities/README.po +++ b/locale/pt_BR/LC_MESSAGES/Behavioral/ChainOfResponsibilities/README.po @@ -16,8 +16,8 @@ msgid "`Chain Of Responsibilities`__" msgstr "`Cadeia de Responsabilidades (Chain Of Responsibilities)`__" #: ../../Behavioral/ChainOfResponsibilities/README.rst:5 -msgid "Purpose:" -msgstr "Objetivo:" +msgid "Purpose" +msgstr "Objetivo" #: ../../Behavioral/ChainOfResponsibilities/README.rst:7 msgid "" @@ -30,8 +30,8 @@ msgstr "" "e assim por diante." #: ../../Behavioral/ChainOfResponsibilities/README.rst:12 -msgid "Examples:" -msgstr "Exemplos:" +msgid "Examples" +msgstr "Exemplos" #: ../../Behavioral/ChainOfResponsibilities/README.rst:14 msgid "" diff --git a/locale/pt_BR/LC_MESSAGES/Behavioral/Memento/README.po b/locale/pt_BR/LC_MESSAGES/Behavioral/Memento/README.po index 2de1924..7b90e16 100644 --- a/locale/pt_BR/LC_MESSAGES/Behavioral/Memento/README.po +++ b/locale/pt_BR/LC_MESSAGES/Behavioral/Memento/README.po @@ -27,10 +27,10 @@ msgstr "Objetivo" #: ../../Behavioral/Memento/README.rst:7 msgid "" -"It provides the ability to restore an object to it's previous state (undo" -" via rollback) or to gain access to state of the object, without " -"revealing it's implementation (i.e., the object is not required to have a" -" functional for return the current state)." +"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 "" "Ele provê a habilidade de restaurar um objeto para seu estado anterior (" "desfazer via rollback) ou ganhar acesso ao estado do objeto sem revelar " From a31d8ffaeea9a3ddd632682c4bd60a73dc84de89 Mon Sep 17 00:00:00 2001 From: PabloGarciaComBR Date: Thu, 11 Apr 2019 12:35:35 -0300 Subject: [PATCH 13/20] Translated Null Object page text Translating Null Object in Behavioral section. --- .../Behavioral/NullObject/README.po | 42 +++++++++++-------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/locale/pt_BR/LC_MESSAGES/Behavioral/NullObject/README.po b/locale/pt_BR/LC_MESSAGES/Behavioral/NullObject/README.po index 4bdb431..e227e59 100644 --- a/locale/pt_BR/LC_MESSAGES/Behavioral/NullObject/README.po +++ b/locale/pt_BR/LC_MESSAGES/Behavioral/NullObject/README.po @@ -4,38 +4,41 @@ msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-05-29 12:18+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"PO-Revision-Date: 2019-04-11 12:30-0300\n" +"Last-Translator: Pablo Juan Garcia \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: pt_BR\n" #: ../../Behavioral/NullObject/README.rst:2 msgid "`Null Object`__" -msgstr "" +msgstr "`Objeto Nulo (Null Object)`__" #: ../../Behavioral/NullObject/README.rst:5 msgid "Purpose" -msgstr "" +msgstr "Objetivo" #: ../../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 "" +"Objeto Nulo (Null Object) não é um padrão de projeto GoF, mas um esquema o " +"qual aparece com frequencia suficiente para ser considerado um padrão. Ele tem " +"os seguintes benefícios:" #: ../../Behavioral/NullObject/README.rst:11 msgid "Client code is simplified" -msgstr "" +msgstr "Código do cliente é simplificado" #: ../../Behavioral/NullObject/README.rst:12 msgid "Reduces the chance of null pointer exceptions" -msgstr "" +msgstr "Reduz a chance de exceções de ponto nulo (null pointer exceptions)" #: ../../Behavioral/NullObject/README.rst:13 msgid "Fewer conditionals require less test cases" -msgstr "" +msgstr "Menores condicionais requerem menos casos de teste" #: ../../Behavioral/NullObject/README.rst:15 msgid "" @@ -45,39 +48,44 @@ msgid "" "``$obj->callSomething();`` by eliminating the conditional check in client " "code." msgstr "" +"Métodos que retornam um objeto ou nulo devem ao invés disso, retornar um " +"objeto ou ``NullObject``. ``NullObject``\\ é simplesmente código boilerplate como ``if " +"(!is_null($obj)) { $obj->callSomething(); }`` para apenas " +"``$obj->callSomething();`` eliminando então a checagem condicional no código " +"cliente." #: ../../Behavioral/NullObject/README.rst:22 msgid "Examples" -msgstr "" +msgstr "Exemplos" #: ../../Behavioral/NullObject/README.rst:24 msgid "Symfony2: null logger of profiler" -msgstr "" +msgstr "Symfony2: logger nulo do profiler" #: ../../Behavioral/NullObject/README.rst:25 msgid "Symfony2: null output in Symfony/Console" -msgstr "" +msgstr "Symfony2: saída nula em Symfony/Console" #: ../../Behavioral/NullObject/README.rst:26 msgid "null handler in a Chain of Responsibilities pattern" -msgstr "" +msgstr "manipulador nulo em um padrão de Cadeia de Responsabilidades (Chain of Responsibilities)" #: ../../Behavioral/NullObject/README.rst:27 msgid "null command in a Command pattern" -msgstr "" +msgstr "commando nulo em um padrão Comando (Command)" #: ../../Behavioral/NullObject/README.rst:30 msgid "UML Diagram" -msgstr "" +msgstr "Diagrama UML" #: ../../Behavioral/NullObject/README.rst:37 msgid "Code" -msgstr "" +msgstr "Código" #: ../../Behavioral/NullObject/README.rst:39 msgid "You can also find this code on `GitHub`_" -msgstr "" +msgstr "Você também pode encontrar este código no `GitHub`_" #: ../../Behavioral/NullObject/README.rst:66 msgid "Test" -msgstr "" +msgstr "Teste" From b061296bedf5d27441e1d8e0fed8617e2bbe18ee Mon Sep 17 00:00:00 2001 From: PabloGarciaComBR Date: Fri, 12 Apr 2019 10:53:42 -0300 Subject: [PATCH 14/20] Translating Observer pattern I translated the text of Observer pattern page in Behavioral section. --- .../LC_MESSAGES/Behavioral/Observer/README.po | 30 ++++++++++++------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/locale/pt_BR/LC_MESSAGES/Behavioral/Observer/README.po b/locale/pt_BR/LC_MESSAGES/Behavioral/Observer/README.po index a1b786a..6bd169a 100644 --- a/locale/pt_BR/LC_MESSAGES/Behavioral/Observer/README.po +++ b/locale/pt_BR/LC_MESSAGES/Behavioral/Observer/README.po @@ -4,20 +4,20 @@ msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-05-29 12:18+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"PO-Revision-Date: 2019-04-11 12:30-0300\n" +"Last-Translator: Pablo Juan Garcia \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: pt_BR\n" #: ../../Behavioral/Observer/README.rst:2 msgid "`Observer`__" -msgstr "" +msgstr "`Observador (Observer)`__" #: ../../Behavioral/Observer/README.rst:5 msgid "Purpose" -msgstr "" +msgstr "Objetivo" #: ../../Behavioral/Observer/README.rst:7 msgid "" @@ -26,38 +26,46 @@ msgid "" "notified. It is used to shorten the amount of coupled objects and uses loose" " coupling instead." msgstr "" +"Implementar um comportamento de publicação/subscrição para um objeto, sempre que " +"um objeto \"Sujeito\" altera o seu estado, o \"Observador\" anexo será notificado. " +"Ele é usado para ordenar a massa de objetos combinados e usa baixo acoplamento em " +"seu lugar." #: ../../Behavioral/Observer/README.rst:13 msgid "Examples" -msgstr "" +msgstr "Exemplos" #: ../../Behavioral/Observer/README.rst:15 msgid "" "a message queue system is observed to show the progress of a job in a GUI" msgstr "" +"um sistema de fila de mensagem é observado para apresentar o progresso de " +"um trabalho na interface gráfica do usuário (GUI)" #: ../../Behavioral/Observer/README.rst:19 msgid "Note" -msgstr "" +msgstr "Nota" #: ../../Behavioral/Observer/README.rst:21 msgid "" "PHP already defines two interfaces that can help to implement this pattern: " "SplObserver and SplSubject." msgstr "" +"O PHP já define duas interfaces que podem ajudar a implementar este padrão: " +"SplObserver e SplSubject." #: ../../Behavioral/Observer/README.rst:25 msgid "UML Diagram" -msgstr "" +msgstr "Diagrama UML" #: ../../Behavioral/Observer/README.rst:32 msgid "Code" -msgstr "" +msgstr "Código" #: ../../Behavioral/Observer/README.rst:34 msgid "You can also find this code on `GitHub`_" -msgstr "" +msgstr "Você também pode encontrar este código no `GitHub`_" #: ../../Behavioral/Observer/README.rst:49 msgid "Test" -msgstr "" +msgstr "Teste" From 7a13e944d35c7f293d734c9ccfd9ba081b1028bf Mon Sep 17 00:00:00 2001 From: PabloGarciaComBR Date: Fri, 12 Apr 2019 11:08:13 -0300 Subject: [PATCH 15/20] Small adjustements in Inicial page Small adjustements in the translation of Inicial page --- locale/pt_BR/LC_MESSAGES/README.po | 38 +++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/locale/pt_BR/LC_MESSAGES/README.po b/locale/pt_BR/LC_MESSAGES/README.po index 96f56c8..75a014f 100644 --- a/locale/pt_BR/LC_MESSAGES/README.po +++ b/locale/pt_BR/LC_MESSAGES/README.po @@ -4,8 +4,9 @@ msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-05-29 12:18+0200\n" -"PO-Revision-Date: 2015-06-18 12:00-0300\n" -"Last-Translator: Leonam Pereira Dias \n" +"PO-Revision-Date: 2019-04-12 11:00-0300\n" +"Previous-Translator: Leonam Pereira Dias \n" +"Last-Translator: Pablo Juan Garcia \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -13,7 +14,7 @@ msgstr "" #: ../../README.rst:5 msgid "DesignPatternsPHP" -msgstr "" +msgstr "Padrões de Projetos PHP (DesignPatternsPHP)" #: ../../README.rst:11 msgid "" @@ -37,8 +38,7 @@ msgstr "" #: ../../README.rst:20 msgid "Patterns" -msgstr "" -"Padrões" +msgstr "Padrões" #: ../../README.rst:22 msgid "" @@ -52,8 +52,7 @@ msgstr "" #: ../../README.rst:35 msgid "Contribute" -msgstr "" -"Contribua" +msgstr "Contribua" #: ../../README.rst:37 msgid "" @@ -68,18 +67,35 @@ msgstr "" "e com qualidade, por favor, valide seu código usando o `PHP CodeSniffer`_ baseado na `PSR2`_ " "usando ``./vendor/bin/phpcs -p --standard=PSR2 --ignore=vendor``" +#: ../../README.rst:45 +msgid "" +"If you encounter any bugs or missing translations, please feel free " +"to fork and send a pull request with your changes. " +"To establish a consistent code quality, please check your code using " +"`PHP CodeSniffer`_ against `PSR2 standard`_ " +"using ``./vendor/bin/phpcs -p --standard=PSR2 --ignore=vendor .``." +msgstr "" +"Se você encontrar quaisquer erros ou traduções faltando, por favor, sinta-se a " +"vontade para criar um fork e envie um pull request com suas alterações. Para " +"manter o código consistente e com qualidade, por favor, valide seu código usando " +"o `PHP CodeSniffer`_ baseado na `PSR2`_ usando ``./vendor/bin/phpcs -p --standard=PSR2 --ignore=vendor``." + #: ../../README.rst:44 msgid "License" -msgstr "" -"Licença" +msgstr "Licença" #: ../../README.rst:46 msgid "(The MIT License)" -msgstr "(The MIT License)" +msgstr "(A Licença MIT)" #: ../../README.rst:48 msgid "Copyright (c) 2011 - 2016 `Dominik Liebler`_ and `contributors`_" -msgstr "Copyright (c) 2011 - 2016 `Dominik Liebler`_ and `contributors`_" +msgstr "Copyright (c) 2011 - 2016 `Dominik Liebler`_ e `contribuidores`_" + +#: ../../README.rst:48 +msgid "Copyright 2011-2018, Dominik Liebler and contributors" +msgstr "Copyright 2011-2018, Dominik Liebler e contribuidores" + #: ../../README.rst:50 msgid "" From bcf52dd5d9bc6c5211e2bc9a8f7c98511056dfa6 Mon Sep 17 00:00:00 2001 From: PabloGarciaComBR Date: Fri, 12 Apr 2019 12:18:06 -0300 Subject: [PATCH 16/20] Translated Specification page text Translated Specification page text in the Behavioral section. --- .../Behavioral/Specification/README.po | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/locale/pt_BR/LC_MESSAGES/Behavioral/Specification/README.po b/locale/pt_BR/LC_MESSAGES/Behavioral/Specification/README.po index 64e14a8..0d43aaa 100644 --- a/locale/pt_BR/LC_MESSAGES/Behavioral/Specification/README.po +++ b/locale/pt_BR/LC_MESSAGES/Behavioral/Specification/README.po @@ -4,20 +4,20 @@ msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-05-29 12:18+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"PO-Revision-Date: 2019-04-12 12:00-0300\n" +"Last-Translator: Pablo Juan Garcia \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: pt_BR\n" #: ../../Behavioral/Specification/README.rst:2 msgid "`Specification`__" -msgstr "" +msgstr "`Especificação`__" #: ../../Behavioral/Specification/README.rst:5 msgid "Purpose" -msgstr "" +msgstr "Objetivo" #: ../../Behavioral/Specification/README.rst:7 msgid "" @@ -26,27 +26,31 @@ msgid "" "``isSatisfiedBy`` that returns either true or false depending on whether the" " given object satisfies the specification." msgstr "" +"Constroe uma clara especificação das regras de negócio, com a qual os objetos " +"podem ser validados. A classe de especificação composta tem um método chamado " +"``isSatisfiedBy`` que retorna verdadeiro ou falso dependendo se um dado objeto " +"satisfaz a especificação." #: ../../Behavioral/Specification/README.rst:13 msgid "Examples" -msgstr "" +msgstr "Exemplos" #: ../../Behavioral/Specification/README.rst:15 msgid "`RulerZ `__" -msgstr "" +msgstr "`RulerZ `__" #: ../../Behavioral/Specification/README.rst:18 msgid "UML Diagram" -msgstr "" +msgstr "Diagrama UML" #: ../../Behavioral/Specification/README.rst:25 msgid "Code" -msgstr "" +msgstr "Código" #: ../../Behavioral/Specification/README.rst:27 msgid "You can also find this code on `GitHub`_" -msgstr "" +msgstr "Você também pode encontrar este código no `GitHub`_" #: ../../Behavioral/Specification/README.rst:72 msgid "Test" -msgstr "" +msgstr "Teste" From 040d8132741a625abe1390a6203b9af65260f214 Mon Sep 17 00:00:00 2001 From: PabloGarciaComBR Date: Fri, 12 Apr 2019 14:37:48 -0300 Subject: [PATCH 17/20] Translating State pattern Translating State pattern in Behavioral section... --- .../LC_MESSAGES/Behavioral/State/README.po | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/locale/pt_BR/LC_MESSAGES/Behavioral/State/README.po b/locale/pt_BR/LC_MESSAGES/Behavioral/State/README.po index 8dfd381..a93b99e 100644 --- a/locale/pt_BR/LC_MESSAGES/Behavioral/State/README.po +++ b/locale/pt_BR/LC_MESSAGES/Behavioral/State/README.po @@ -4,20 +4,20 @@ msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-05-29 12:18+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"PO-Revision-Date: 2019-04-12 12:00-0300\n" +"Last-Translator: Pablo Juan Garcia \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: pt_BR\n" #: ../../Behavioral/State/README.rst:2 msgid "`State`__" -msgstr "" +msgstr "`Estado`__" #: ../../Behavioral/State/README.rst:5 msgid "Purpose" -msgstr "" +msgstr "Objetivo" #: ../../Behavioral/State/README.rst:7 msgid "" @@ -25,19 +25,23 @@ msgid "" "state. This can be a cleaner way for an object to change its behavior at " "runtime without resorting to large monolithic conditional statements." msgstr "" +"Encapsular comportamentos diversos para a mesma rotina baseado no estado " +"de um objeto. Este pode ser uma forma limpa para um objeto alterar o seu " +"comportamento em tempo de execução sem recorrer a grandes declarações " +"condicionais monolíticas." #: ../../Behavioral/State/README.rst:12 msgid "UML Diagram" -msgstr "" +msgstr "Diagrama UML" #: ../../Behavioral/State/README.rst:19 msgid "Code" -msgstr "" +msgstr "Código" #: ../../Behavioral/State/README.rst:21 msgid "You can also find this code on `GitHub`_" -msgstr "" +msgstr "Você também pode encontrar este código no `GitHub`_" #: ../../Behavioral/State/README.rst:54 msgid "Test" -msgstr "" +msgstr "Teste" From e5ab57968ebd1ffa30b8bb01d72cf291b034c131 Mon Sep 17 00:00:00 2001 From: PabloGarciaComBR Date: Fri, 12 Apr 2019 17:17:50 -0300 Subject: [PATCH 18/20] Translated Strategy pattern Translated Strategy pattern in the Behavioral section. --- .../LC_MESSAGES/Behavioral/Strategy/README.po | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/locale/pt_BR/LC_MESSAGES/Behavioral/Strategy/README.po b/locale/pt_BR/LC_MESSAGES/Behavioral/Strategy/README.po index 0b60661..94e9d3f 100644 --- a/locale/pt_BR/LC_MESSAGES/Behavioral/Strategy/README.po +++ b/locale/pt_BR/LC_MESSAGES/Behavioral/Strategy/README.po @@ -4,36 +4,36 @@ msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-05-29 12:18+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"PO-Revision-Date: 2019-04-12 14:30-0300\n" +"Last-Translator: Pablo Juan Garcia \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: pt_BR\n" #: ../../Behavioral/Strategy/README.rst:2 msgid "`Strategy`__" -msgstr "" +msgstr "`Estratégia`__" #: ../../Behavioral/Strategy/README.rst:5 msgid "Terminology:" -msgstr "" +msgstr "Terminologia:" #: ../../Behavioral/Strategy/README.rst:7 msgid "Context" -msgstr "" +msgstr "Contexto" #: ../../Behavioral/Strategy/README.rst:8 msgid "Strategy" -msgstr "" +msgstr "Estratégia" #: ../../Behavioral/Strategy/README.rst:9 msgid "Concrete Strategy" -msgstr "" +msgstr "Estratégia Concreta" #: ../../Behavioral/Strategy/README.rst:12 msgid "Purpose" -msgstr "" +msgstr "Objetivo" #: ../../Behavioral/Strategy/README.rst:14 msgid "" @@ -41,32 +41,36 @@ msgid "" "pattern is a good alternative to inheritance (instead of having an abstract " "class that is extended)." msgstr "" +"Separar estratégias e habilitar a troca rápida entre elas. Além disso, este " +"padrão é uma boa alternativa à herença (ao invés de ter uma classe abstrata " +"que é extendida)." #: ../../Behavioral/Strategy/README.rst:19 msgid "Examples" -msgstr "" +msgstr "Exemplos" #: ../../Behavioral/Strategy/README.rst:21 msgid "sorting a list of objects, one strategy by date, the other by id" -msgstr "" +msgstr "ordenando uma lista de objetos, uma estratégia por data, a outra por id" #: ../../Behavioral/Strategy/README.rst:22 msgid "" "simplify unit testing: e.g. switching between file and in-memory storage" msgstr "" +"simplifica o teste unitário: p.e. alternando entre armazenamento em memória ou em arquivo" #: ../../Behavioral/Strategy/README.rst:26 msgid "UML Diagram" -msgstr "" +msgstr "Diagrama UML" #: ../../Behavioral/Strategy/README.rst:33 msgid "Code" -msgstr "" +msgstr "Código" #: ../../Behavioral/Strategy/README.rst:35 msgid "You can also find this code on `GitHub`_" -msgstr "" +msgstr "Você também pode encontrar este código no `GitHub`_" #: ../../Behavioral/Strategy/README.rst:62 msgid "Test" -msgstr "" +msgstr "Teste" From 8a896e533fe8c45aa9baa32e00def3cd6cd8f7b9 Mon Sep 17 00:00:00 2001 From: PabloGarciaComBR Date: Mon, 15 Apr 2019 10:42:31 -0300 Subject: [PATCH 19/20] Translated Template Method text Translated Template Method text in Behavioral section. --- .../Behavioral/TemplateMethod/README.po | 31 +++++++++++++------ 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/locale/pt_BR/LC_MESSAGES/Behavioral/TemplateMethod/README.po b/locale/pt_BR/LC_MESSAGES/Behavioral/TemplateMethod/README.po index 66e4e9b..df17bc1 100644 --- a/locale/pt_BR/LC_MESSAGES/Behavioral/TemplateMethod/README.po +++ b/locale/pt_BR/LC_MESSAGES/Behavioral/TemplateMethod/README.po @@ -4,24 +4,24 @@ msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-05-29 12:18+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"PO-Revision-Date: 2019-04-15 08:50-0300\n" +"Last-Translator: Pablo Juan Garcia \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: pt_BR\n" #: ../../Behavioral/TemplateMethod/README.rst:2 msgid "`Template Method`__" -msgstr "" +msgstr "`Método Modelo (Template Method)`__" #: ../../Behavioral/TemplateMethod/README.rst:5 msgid "Purpose" -msgstr "" +msgstr "Objetivo" #: ../../Behavioral/TemplateMethod/README.rst:7 msgid "Template Method is a behavioral design pattern." -msgstr "" +msgstr "Método Modelo é um Padrão de Projeto Comportamental." #: ../../Behavioral/TemplateMethod/README.rst:9 msgid "" @@ -29,6 +29,9 @@ msgid "" "subclasses of this abstract template \"finish\" the behavior of an " "algorithm." msgstr "" +"Talvez você já tenha encontrado ele muitas vezes. A ideia é deixar " +"subclasses deste modelo abstrato \"terminar\" o comportamento de um " +"algoritmo." #: ../../Behavioral/TemplateMethod/README.rst:13 msgid "" @@ -36,6 +39,9 @@ msgid "" "class is not called by subclasses but the inverse. How? With abstraction of " "course." msgstr "" +"Também conhecido como o \"Princípio de Hollywood\": \"Não nos chame, nós " +"chamamos você\". Esta classe não é chamada pelas subclasses, mas o inverso. " +"Como? Com abstração do curso." #: ../../Behavioral/TemplateMethod/README.rst:17 msgid "" @@ -43,25 +49,30 @@ msgid "" "libraries. The user has just to implement one method and the superclass do " "the job." msgstr "" +"Em outras palavras, este é um esqueleto de um algoritmo, bem adequado às " +"bibliotecas do framework. O usuário que apenas que implementar um método e a " +"superclasse faz o trabalho." #: ../../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 "" +"Ele é uma forma fácil de desacoplar classes concretas e reduzir o copia-cola, " +"este é o motivo de encontrar ele em todo lugar." #: ../../Behavioral/TemplateMethod/README.rst:25 msgid "UML Diagram" -msgstr "" +msgstr "Diagrama UML" #: ../../Behavioral/TemplateMethod/README.rst:32 msgid "Code" -msgstr "" +msgstr "Código" #: ../../Behavioral/TemplateMethod/README.rst:34 msgid "You can also find this code on `GitHub`_" -msgstr "" +msgstr "Você também pode encontrar este código no `GitHub`_" #: ../../Behavioral/TemplateMethod/README.rst:55 msgid "Test" -msgstr "" +msgstr "Teste" From 5ed451173594825b642f937417f3a5fb794b48e4 Mon Sep 17 00:00:00 2001 From: PabloGarciaComBR Date: Mon, 15 Apr 2019 16:55:37 -0300 Subject: [PATCH 20/20] Translated Visitor Pattern Translated Visitor Pattern in Behavioral section. --- .../LC_MESSAGES/Behavioral/Visitor/README.po | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/locale/pt_BR/LC_MESSAGES/Behavioral/Visitor/README.po b/locale/pt_BR/LC_MESSAGES/Behavioral/Visitor/README.po index 62f65e1..e4f672b 100644 --- a/locale/pt_BR/LC_MESSAGES/Behavioral/Visitor/README.po +++ b/locale/pt_BR/LC_MESSAGES/Behavioral/Visitor/README.po @@ -4,20 +4,20 @@ msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-05-29 12:18+0200\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"PO-Revision-Date: 2019-04-15 14:00-0300\n" +"Last-Translator: Pablo Juan Garcia \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: pt_BR\n" #: ../../Behavioral/Visitor/README.rst:2 msgid "`Visitor`__" -msgstr "" +msgstr "`Visitante (Visitor)`__" #: ../../Behavioral/Visitor/README.rst:5 msgid "Purpose" -msgstr "" +msgstr "Objetivo" #: ../../Behavioral/Visitor/README.rst:7 msgid "" @@ -26,6 +26,10 @@ msgid "" " classes have to define a contract to allow visitors (the ``Role::accept`` " "method in the example)." msgstr "" +"O Padrão Visitante deixa as suas operações terceirizadas em objetos para " +"outros objetos. A principal razão para fazer isto é manter a separação de " +"preocupações. Porém, classes precisam definir um contrato para permitir " +"visitantes (o método ``Role::accept`` no exemplo)." #: ../../Behavioral/Visitor/README.rst:12 msgid "" @@ -33,19 +37,22 @@ msgid "" "In that case, each Visitor has to choose itself which method to invoke on " "the visitor." msgstr "" +"O contrato é uma classe abstrata, mas você pode ter também uma interface limpa. " +"Neste caso, cada visitante tem que escolher a si mesmo qual método invocar no " +"visitante." #: ../../Behavioral/Visitor/README.rst:17 msgid "UML Diagram" -msgstr "" +msgstr "Diagrama UML" #: ../../Behavioral/Visitor/README.rst:24 msgid "Code" -msgstr "" +msgstr "Código" #: ../../Behavioral/Visitor/README.rst:26 msgid "You can also find this code on `GitHub`_" -msgstr "" +msgstr "Você também pode encontrar este código no `GitHub`_" #: ../../Behavioral/Visitor/README.rst:59 msgid "Test" -msgstr "" +msgstr "Teste"