Merge pull request #294 from leonampd/master

Translate creational patterns to pt-br
This commit is contained in:
Dominik Liebler
2017-08-08 20:56:36 +02:00
committed by GitHub
7 changed files with 84 additions and 53 deletions

View File

@@ -1,4 +1,4 @@
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n" "Project-Id-Version: DesignPatternsPHP 1.0\n"
@@ -90,7 +90,7 @@ msgstr ""
#: ../../Creational/FactoryMethod/README.rst:74 #: ../../Creational/FactoryMethod/README.rst:74
msgid "Test" msgid "Test"
msgstr "" msgstr "Teste"
#: ../../Creational/FactoryMethod/README.rst:76 #: ../../Creational/FactoryMethod/README.rst:76
msgid "Tests/FactoryMethodTest.php" msgid "Tests/FactoryMethodTest.php"

View File

@@ -1,11 +1,11 @@
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n" "Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-05-29 12:18+0200\n" "POT-Creation-Date: 2015-05-29 12:18+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: 2017-08-03 00:33-0300\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: Leonam Pereira Dias <leonam.pd@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
@@ -20,40 +20,44 @@ msgid ""
"**THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND " "**THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND "
"MAINTAINABILITY USE DEPENDENCY INJECTION!**" "MAINTAINABILITY USE DEPENDENCY INJECTION!**"
msgstr "" msgstr ""
"**ESTE É CONSIDERADO UM ANTI-PATTERN! PARA MELHOR TESTABILIDADE E"
"MANUTENIBILIDADE USE INJEÇÃO DE DEPENDÊNCIAS"
#: ../../Creational/Multiton/README.rst:8 #: ../../Creational/Multiton/README.rst:8
msgid "Purpose" msgid "Purpose"
msgstr "" msgstr "Objetivos"
#: ../../Creational/Multiton/README.rst:10 #: ../../Creational/Multiton/README.rst:10
msgid "" msgid ""
"To have only a list of named instances that are used, like a singleton but " "To have only a list of named instances that are used, like a singleton but "
"with n instances." "with n instances."
msgstr "" msgstr ""
"Para se ter uma lista conhecida de instâncias utilizáveis, como um singleton mas"
"com n instâncias"
#: ../../Creational/Multiton/README.rst:14 #: ../../Creational/Multiton/README.rst:14
msgid "Examples" msgid "Examples"
msgstr "" msgstr "Exemplos"
#: ../../Creational/Multiton/README.rst:16 #: ../../Creational/Multiton/README.rst:16
msgid "2 DB Connectors, e.g. one for MySQL, the other for SQLite" msgid "2 DB Connectors, e.g. one for MySQL, the other for SQLite"
msgstr "" msgstr "2 conexões à bancos de dados. Exemplo: uma para MySQL e outra para SQLite"
#: ../../Creational/Multiton/README.rst:17 #: ../../Creational/Multiton/README.rst:17
msgid "multiple Loggers (one for debug messages, one for errors)" msgid "multiple Loggers (one for debug messages, one for errors)"
msgstr "" msgstr "multiplos Loggers (um para mensagens de debug, outro para erros)"
#: ../../Creational/Multiton/README.rst:20 #: ../../Creational/Multiton/README.rst:20
msgid "UML Diagram" msgid "UML Diagram"
msgstr "" msgstr "Diagrama UML"
#: ../../Creational/Multiton/README.rst:27 #: ../../Creational/Multiton/README.rst:27
msgid "Code" msgid "Code"
msgstr "" msgstr "Código"
#: ../../Creational/Multiton/README.rst:29 #: ../../Creational/Multiton/README.rst:29
msgid "You can also find this code on `GitHub`_" msgid "You can also find this code on `GitHub`_"
msgstr "" msgstr "Você também pode encontrar esse código no `GitHub`_"
#: ../../Creational/Multiton/README.rst:31 #: ../../Creational/Multiton/README.rst:31
msgid "Multiton.php" msgid "Multiton.php"

View File

@@ -1,11 +1,11 @@
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n" "Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-05-29 12:18+0200\n" "POT-Creation-Date: 2015-05-29 12:18+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: 2017-08-03 21:03-0300\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: Leonam Pereira Dias <leonam.pd@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
@@ -13,39 +13,43 @@ msgstr ""
#: ../../Creational/Prototype/README.rst:2 #: ../../Creational/Prototype/README.rst:2
msgid "`Prototype`__" msgid "`Prototype`__"
msgstr "" msgstr "`Protótipo`"
#: ../../Creational/Prototype/README.rst:5 #: ../../Creational/Prototype/README.rst:5
msgid "Purpose" msgid "Purpose"
msgstr "" msgstr "Objetivo"
#: ../../Creational/Prototype/README.rst:7 #: ../../Creational/Prototype/README.rst:7
msgid "" msgid ""
"To avoid the cost of creating objects the standard way (new Foo()) and " "To avoid the cost of creating objects the standard way (new Foo()) and "
"instead create a prototype and clone it." "instead create a prototype and clone it."
msgstr "" msgstr ""
"Para evitar o custo da criação tradicional de objetos (new Foo()) e "
"criar um protótipo deste e cloná-los"
#: ../../Creational/Prototype/README.rst:11 #: ../../Creational/Prototype/README.rst:11
msgid "Examples" msgid "Examples"
msgstr "" msgstr "Exemplos"
#: ../../Creational/Prototype/README.rst:13 #: ../../Creational/Prototype/README.rst:13
msgid "" msgid ""
"Large amounts of data (e.g. create 1,000,000 rows in a database at once via " "Large amounts of data (e.g. create 1,000,000 rows in a database at once via "
"a ORM)." "a ORM)."
msgstr "" msgstr ""
"Uma grande quantidade de dados. Exemplo: a criação de 1,000.000 linhas em um banco de dados via "
"um ORM"
#: ../../Creational/Prototype/README.rst:17 #: ../../Creational/Prototype/README.rst:17
msgid "UML Diagram" msgid "UML Diagram"
msgstr "" msgstr "Diagrama UML"
#: ../../Creational/Prototype/README.rst:24 #: ../../Creational/Prototype/README.rst:24
msgid "Code" msgid "Code"
msgstr "" msgstr "Código"
#: ../../Creational/Prototype/README.rst:26 #: ../../Creational/Prototype/README.rst:26
msgid "You can also find this code on `GitHub`_" msgid "You can also find this code on `GitHub`_"
msgstr "" msgstr "Você também encontra este código no `GitHub`_"
#: ../../Creational/Prototype/README.rst:28 #: ../../Creational/Prototype/README.rst:28
msgid "index.php" msgid "index.php"
@@ -65,4 +69,4 @@ msgstr ""
#: ../../Creational/Prototype/README.rst:53 #: ../../Creational/Prototype/README.rst:53
msgid "Test" msgid "Test"
msgstr "" msgstr "Teste"

View File

@@ -1,11 +1,11 @@
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n" "Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-05-29 12:18+0200\n" "POT-Creation-Date: 2015-05-29 12:18+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: 2017-08-03 21:02-0300\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: Leonam Pereira Dias <leonam.pd@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
@@ -13,39 +13,43 @@ msgstr ""
#: ../../Creational/SimpleFactory/README.rst:2 #: ../../Creational/SimpleFactory/README.rst:2
msgid "Simple Factory" msgid "Simple Factory"
msgstr "" msgstr "Fábrica Simples"
#: ../../Creational/SimpleFactory/README.rst:5 #: ../../Creational/SimpleFactory/README.rst:5
msgid "Purpose" msgid "Purpose"
msgstr "" msgstr "Objetivo"
#: ../../Creational/SimpleFactory/README.rst:7 #: ../../Creational/SimpleFactory/README.rst:7
msgid "SimpleFactory is a simple factory pattern." msgid "SimpleFactory is a simple factory pattern."
msgstr "" msgstr "SimpleFactory (Fábrica Simples) é uma implementação mais simples do padrão fábrica"
#: ../../Creational/SimpleFactory/README.rst:9 #: ../../Creational/SimpleFactory/README.rst:9
msgid "" msgid ""
"It differs from the static factory because it is NOT static and as you know:" "It differs from the static factory because it is NOT static and as you know:"
" static => global => evil!" " static => global => evil!"
msgstr "" 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!"
#: ../../Creational/SimpleFactory/README.rst:12 #: ../../Creational/SimpleFactory/README.rst:12
msgid "" msgid ""
"Therefore, you can have multiple factories, differently parametrized, you " "Therefore, you can have multiple factories, differently parametrized, you "
"can subclass it and you can mock-up it." "can subclass it and you can mock-up it."
msgstr "" msgstr ""
"Deste modo, você pode ter múltiplas fábricas, diferentemente parametrizadas, permitindo"
" a extensão da mesma permitindo a criação de dublês"
#: ../../Creational/SimpleFactory/README.rst:16 #: ../../Creational/SimpleFactory/README.rst:16
msgid "UML Diagram" msgid "UML Diagram"
msgstr "" msgstr "Diagrama UML"
#: ../../Creational/SimpleFactory/README.rst:23 #: ../../Creational/SimpleFactory/README.rst:23
msgid "Code" msgid "Code"
msgstr "" msgstr "Código"
#: ../../Creational/SimpleFactory/README.rst:25 #: ../../Creational/SimpleFactory/README.rst:25
msgid "You can also find this code on `GitHub`_" msgid "You can also find this code on `GitHub`_"
msgstr "" msgstr "Você também pode encontrar esse código no `GitHub`_"
#: ../../Creational/SimpleFactory/README.rst:27 #: ../../Creational/SimpleFactory/README.rst:27
msgid "SimpleFactory.php" msgid "SimpleFactory.php"
@@ -65,7 +69,7 @@ msgstr ""
#: ../../Creational/SimpleFactory/README.rst:52 #: ../../Creational/SimpleFactory/README.rst:52
msgid "Test" msgid "Test"
msgstr "" msgstr "Teste"
#: ../../Creational/SimpleFactory/README.rst:54 #: ../../Creational/SimpleFactory/README.rst:54
msgid "Tests/SimpleFactoryTest.php" msgid "Tests/SimpleFactoryTest.php"

View File

@@ -1,11 +1,11 @@
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n" "Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-05-29 12:18+0200\n" "POT-Creation-Date: 2015-05-29 12:18+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: 2017-08-03 21:02-0300\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: Leonam Pereira Dias <leonam.pd@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
@@ -20,47 +20,54 @@ msgid ""
"**THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND " "**THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND "
"MAINTAINABILITY USE DEPENDENCY INJECTION!**" "MAINTAINABILITY USE DEPENDENCY INJECTION!**"
msgstr "" msgstr ""
"**CONSIDERADO UM ANTI-PATTERN! PARA MELHOR TESTABILIDADE E "
"MANUTENIBILIDADE USE INJEÇÃO DEPENDÊNCIAS"
#: ../../Creational/Singleton/README.rst:8 #: ../../Creational/Singleton/README.rst:8
msgid "Purpose" msgid "Purpose"
msgstr "" msgstr "Objetivo"
#: ../../Creational/Singleton/README.rst:10 #: ../../Creational/Singleton/README.rst:10
msgid "" msgid ""
"To have only one instance of this object in the application that will handle" "To have only one instance of this object in the application that will handle"
" all calls." " all calls."
msgstr "" msgstr ""
"Ter uma única instância da classe na aplicação que será responsável por gerenciar"
"todas as chamadas a ela"
#: ../../Creational/Singleton/README.rst:14 #: ../../Creational/Singleton/README.rst:14
msgid "Examples" msgid "Examples"
msgstr "" msgstr "Exemplos"
#: ../../Creational/Singleton/README.rst:16 #: ../../Creational/Singleton/README.rst:16
msgid "DB Connector" msgid "DB Connector"
msgstr "" msgstr "Conexão ao banco de dados"
#: ../../Creational/Singleton/README.rst:17 #: ../../Creational/Singleton/README.rst:17
msgid "" msgid ""
"Logger (may also be a Multiton if there are many log files for several " "Logger (may also be a Multiton if there are many log files for several "
"purposes)" "purposes)"
msgstr "" msgstr ""
"Logger (pode ser necessário um Multiton se houverem mais de um arquivo de log para diferentes "
"necessidades"
#: ../../Creational/Singleton/README.rst:19 #: ../../Creational/Singleton/README.rst:19
msgid "" msgid ""
"Lock file for the application (there is only one in the filesystem ...)" "Lock file for the application (there is only one in the filesystem ...)"
msgstr "" msgstr ""
"Arquivo de lock para a aplicação (existe apenas um em todo o sistema de arquivos ...)"
#: ../../Creational/Singleton/README.rst:23 #: ../../Creational/Singleton/README.rst:23
msgid "UML Diagram" msgid "UML Diagram"
msgstr "" msgstr "Diagrama UML"
#: ../../Creational/Singleton/README.rst:30 #: ../../Creational/Singleton/README.rst:30
msgid "Code" msgid "Code"
msgstr "" msgstr "Código"
#: ../../Creational/Singleton/README.rst:32 #: ../../Creational/Singleton/README.rst:32
msgid "You can also find this code on `GitHub`_" msgid "You can also find this code on `GitHub`_"
msgstr "" msgstr "Você também pode encontrar esse código no `GitHub`_"
#: ../../Creational/Singleton/README.rst:34 #: ../../Creational/Singleton/README.rst:34
msgid "Singleton.php" msgid "Singleton.php"
@@ -68,7 +75,7 @@ msgstr ""
#: ../../Creational/Singleton/README.rst:41 #: ../../Creational/Singleton/README.rst:41
msgid "Test" msgid "Test"
msgstr "" msgstr "Teste"
#: ../../Creational/Singleton/README.rst:43 #: ../../Creational/Singleton/README.rst:43
msgid "Tests/SingletonTest.php" msgid "Tests/SingletonTest.php"

View File

@@ -1,4 +1,4 @@
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n" "Project-Id-Version: DesignPatternsPHP 1.0\n"
@@ -13,11 +13,11 @@ msgstr ""
#: ../../Creational/StaticFactory/README.rst:2 #: ../../Creational/StaticFactory/README.rst:2
msgid "Static Factory" msgid "Static Factory"
msgstr "" msgstr "Fábrica Estática"
#: ../../Creational/StaticFactory/README.rst:5 #: ../../Creational/StaticFactory/README.rst:5
msgid "Purpose" msgid "Purpose"
msgstr "" msgstr "Objetivo"
#: ../../Creational/StaticFactory/README.rst:7 #: ../../Creational/StaticFactory/README.rst:7
msgid "" msgid ""
@@ -27,6 +27,8 @@ msgid ""
"method to create all types of objects it can create. It is usually named " "method to create all types of objects it can create. It is usually named "
"``factory`` or ``build``." "``factory`` or ``build``."
msgstr "" 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 "
#: ../../Creational/StaticFactory/README.rst:14 #: ../../Creational/StaticFactory/README.rst:14
msgid "Examples" msgid "Examples"

View File

@@ -4,8 +4,8 @@ msgstr ""
"Project-Id-Version: DesignPatternsPHP 1.0\n" "Project-Id-Version: DesignPatternsPHP 1.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-05-29 12:18+0200\n" "POT-Creation-Date: 2015-05-29 12:18+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: 2016-03-13 14:26-0300\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: Leonam Pereira Dias <leonam.pd@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
@@ -13,11 +13,11 @@ msgstr ""
#: ../../Structural/Adapter/README.rst:2 #: ../../Structural/Adapter/README.rst:2
msgid "`Adapter / Wrapper`__" msgid "`Adapter / Wrapper`__"
msgstr "" msgstr "Adaptador"
#: ../../Structural/Adapter/README.rst:5 #: ../../Structural/Adapter/README.rst:5
msgid "Purpose" msgid "Purpose"
msgstr "" msgstr "Objetivo"
#: ../../Structural/Adapter/README.rst:7 #: ../../Structural/Adapter/README.rst:7
msgid "" msgid ""
@@ -26,10 +26,14 @@ msgid ""
"incompatible interfaces by providing its interface to clients while using " "incompatible interfaces by providing its interface to clients while using "
"the original interface." "the original interface."
msgstr "" msgstr ""
"Para 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"
#: ../../Structural/Adapter/README.rst:13 #: ../../Structural/Adapter/README.rst:13
msgid "Examples" msgid "Examples"
msgstr "" msgstr "Exemplos"
#: ../../Structural/Adapter/README.rst:15 #: ../../Structural/Adapter/README.rst:15
msgid "DB Client libraries adapter" msgid "DB Client libraries adapter"
@@ -39,19 +43,25 @@ msgstr ""
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 "usando diversos webservices e adapters para normalizar os dados de modo que"
" a saída seja sempre a mesma"
#: ../../Structural/Adapter/README.rst:20 #: ../../Structural/Adapter/README.rst:20
msgid "UML Diagram" msgid "UML Diagram"
msgstr "" msgstr "Diagrama UML"
#: ../../Structural/Adapter/README.rst:27 #: ../../Structural/Adapter/README.rst:27
msgid "Code" msgid "Code"
msgstr "" msgstr "Código"
#: ../../Structural/Adapter/README.rst:29 #: ../../Structural/Adapter/README.rst:29
<<<<<<< HEAD
msgid "You can also find these code on `GitHub`_"
msgstr "Você também pode encontrar este código no `Github`_"
=======
msgid "You can also find this code on `GitHub`_" msgid "You can also find this code on `GitHub`_"
msgstr "" msgstr ""
>>>>>>> c1f0faccc8503a78a1b4cae192aaef127a2edb02
#: ../../Structural/Adapter/README.rst:31 #: ../../Structural/Adapter/README.rst:31
msgid "PaperBookInterface.php" msgid "PaperBookInterface.php"