Merge pull request #353 from PabloGarciaComBR/master

Fixed some translations to pt_BR, especially in Structural section.
This commit is contained in:
Piotr Grabski-Gradziński
2019-01-26 20:33:38 +01:00
committed by GitHub
5 changed files with 38 additions and 16 deletions

0
README.md Executable file → Normal file
View File

0
docker/install-composer.sh Executable file → Normal file
View File

View File

@@ -25,7 +25,7 @@ msgstr ""
"Esta é uma coleção de padrões de projetos conhecidos e alguns códigos de exemplo de como " "Esta é uma coleção de padrões de projetos conhecidos e alguns códigos de exemplo de como "
"implementá-los em PHP. Todo padrão tem uma pequena lista de exemplos (muitos deles " "implementá-los em PHP. Todo padrão tem uma pequena lista de exemplos (muitos deles "
"vindos do Zend Framework, Symfony2 ou Doctrine2 já que tenho mais familiaridade com " "vindos do Zend Framework, Symfony2 ou Doctrine2 já que tenho mais familiaridade com "
"eles" "eles)."
#: ../../README.rst:16 #: ../../README.rst:16
msgid "" msgid ""

View File

@@ -4,30 +4,32 @@ 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: 2019-01-22 15:36+0300\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: Pablo Juan Garcia <contato@pablogarcia.com.br>\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"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Language: pt_BR\n"
#: ../../Structural/DependencyInjection/README.rst:2 #: ../../Structural/DependencyInjection/README.rst:2
msgid "`Dependency Injection`__" msgid "`Dependency Injection`__"
msgstr "" msgstr "Injeção de dependência"
#: ../../Structural/DependencyInjection/README.rst:5 #: ../../Structural/DependencyInjection/README.rst:5
msgid "Purpose" msgid "Purpose"
msgstr "" msgstr "Objetivo"
#: ../../Structural/DependencyInjection/README.rst:7 #: ../../Structural/DependencyInjection/README.rst:7
msgid "" msgid ""
"To implement a loosely coupled architecture in order to get better testable," "To implement a loosely coupled architecture in order to get better testable,"
" maintainable and extendable code." " maintainable and extendable code."
msgstr "" msgstr ""
"Para 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 #: ../../Structural/DependencyInjection/README.rst:11
msgid "Usage" msgid "Usage"
msgstr "" msgstr "Uso"
#: ../../Structural/DependencyInjection/README.rst:13 #: ../../Structural/DependencyInjection/README.rst:13
msgid "" msgid ""
@@ -36,6 +38,10 @@ msgid ""
" ``Connection``, which is not very good for testing and extending " " ``Connection``, which is not very good for testing and extending "
"``Connection``." "``Connection``."
msgstr "" msgstr ""
"Configuration é injetado e ``Connection`` irá receber tudo o que é necessário "
" de ``$config``. Sem a Injeção de Dependência, a configuração poderia ser criada "
" diretamente em ``Connection``, o que não é muito bom para testar e extender "
"``Connection``."
#: ../../Structural/DependencyInjection/README.rst:18 #: ../../Structural/DependencyInjection/README.rst:18
msgid "" msgid ""
@@ -46,10 +52,16 @@ msgid ""
" Read more about Inversion of control `here " " Read more about Inversion of control `here "
"<http://en.wikipedia.org/wiki/Inversion_of_control>`__." "<http://en.wikipedia.org/wiki/Inversion_of_control>`__."
msgstr "" msgstr ""
"Note que estamos seguindo o princípio da inversão de controle em ``Connection`` por "
" estar perguntando ``$config`` para implementar a interface ``Parameters``. Isto "
" desacopla nossos componentes. Nós não nos importamos de onde vem a fonte de informação, "
" nós apenas garantimos que ``$config`` tem certos métodos para recuperar a informação."
" Leia mais sobre Inversão de Controle `aqui "
"<https://pt.wikipedia.org/wiki/Invers%C3%A3o_de_controle>`__."
#: ../../Structural/DependencyInjection/README.rst:26 #: ../../Structural/DependencyInjection/README.rst:26
msgid "Examples" msgid "Examples"
msgstr "" msgstr "Exemplos"
#: ../../Structural/DependencyInjection/README.rst:28 #: ../../Structural/DependencyInjection/README.rst:28
msgid "" msgid ""
@@ -58,6 +70,10 @@ msgid ""
"create a mock object of the configuration and inject that into the " "create a mock object of the configuration and inject that into the "
"``Connection`` object" "``Connection`` object"
msgstr "" msgstr ""
"O ORM Doctrine 2 usa injeção de dependência, por exemplo, para a configuração "
" que é injetada no objeto ``Connection``. Para propósitos de teste, algúem pode "
" facilmente criar um objeto simulado na configuração e injetá-lo no objeto "
"``Connection``."
#: ../../Structural/DependencyInjection/README.rst:32 #: ../../Structural/DependencyInjection/README.rst:32
msgid "" msgid ""
@@ -65,19 +81,22 @@ msgid ""
"objects via a configuration array and inject them where needed (i.e. in " "objects via a configuration array and inject them where needed (i.e. in "
"Controllers)" "Controllers)"
msgstr "" msgstr ""
"Symfony e Zend Framework 2 já tem recipientes para injeção de dependência "
" que criam objetos através de um array de configuração e injetam eles onde "
" for necessário (p.e. nos Controllers)"
#: ../../Structural/DependencyInjection/README.rst:37 #: ../../Structural/DependencyInjection/README.rst:37
msgid "UML Diagram" msgid "UML Diagram"
msgstr "" msgstr "Diagrama UML"
#: ../../Structural/DependencyInjection/README.rst:44 #: ../../Structural/DependencyInjection/README.rst:44
msgid "Code" msgid "Code"
msgstr "" msgstr "Código"
#: ../../Structural/DependencyInjection/README.rst:46 #: ../../Structural/DependencyInjection/README.rst:46
msgid "You can also find this code on `GitHub`_" msgid "You can also find this code on `GitHub`_"
msgstr "" msgstr "Você pode também ver este código no `GitHub`_"
#: ../../Structural/DependencyInjection/README.rst:73 #: ../../Structural/DependencyInjection/README.rst:73
msgid "Test" msgid "Test"
msgstr "" msgstr "Teste"

View File

@@ -4,16 +4,16 @@ 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: 2019-01-22 15:41+0300\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: Pablo Juan Garcia <contato@pablogarcia.com.br>\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"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Language: pt_BR\n"
#: ../../Structural/README.rst:2 #: ../../Structural/README.rst:2
msgid "`Structural`__" msgid "`Structural`__"
msgstr "" msgstr "`Estrutural`__"
#: ../../Structural/README.rst:4 #: ../../Structural/README.rst:4
msgid "" msgid ""
@@ -21,3 +21,6 @@ msgid ""
" ease the design by identifying a simple way to realize relationships " " ease the design by identifying a simple way to realize relationships "
"between entities." "between entities."
msgstr "" msgstr ""
"Em Engenharia de Software, padrões de projeto estruturais são padrões que"
" facilitam o desenvolvimento identificando uma forma simples para realizar "
" relacionamentos entre entidades."