diff --git a/locale/pt_BR/LC_MESSAGES/Structural/DependencyInjection/README.po b/locale/pt_BR/LC_MESSAGES/Structural/DependencyInjection/README.po index 9166ae6..98f443f 100644 --- a/locale/pt_BR/LC_MESSAGES/Structural/DependencyInjection/README.po +++ b/locale/pt_BR/LC_MESSAGES/Structural/DependencyInjection/README.po @@ -4,12 +4,12 @@ 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-01-22 15:36+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" #: ../../Structural/DependencyInjection/README.rst:2 msgid "`Dependency Injection`__" @@ -38,6 +38,10 @@ msgid "" " ``Connection``, which is not very good for testing and extending " "``Connection``." 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 msgid "" @@ -48,10 +52,16 @@ msgid "" " Read more about Inversion of control `here " "`__." 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 " +"`__." #: ../../Structural/DependencyInjection/README.rst:26 msgid "Examples" -msgstr "" +msgstr "Exemplos" #: ../../Structural/DependencyInjection/README.rst:28 msgid "" @@ -60,6 +70,10 @@ msgid "" "create a mock object of the configuration and inject that into the " "``Connection`` object" 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 msgid "" @@ -67,6 +81,9 @@ msgid "" "objects via a configuration array and inject them where needed (i.e. in " "Controllers)" 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 msgid "UML Diagram" diff --git a/locale/pt_BR/LC_MESSAGES/Structural/README.po b/locale/pt_BR/LC_MESSAGES/Structural/README.po index 8912785..aebab58 100644 --- a/locale/pt_BR/LC_MESSAGES/Structural/README.po +++ b/locale/pt_BR/LC_MESSAGES/Structural/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-01-22 14:45+0300\n" +"PO-Revision-Date: 2019-01-22 15:41+0300\n" "Last-Translator: Pablo Juan Garcia \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -21,6 +21,6 @@ msgid "" " ease the design by identifying a simple way to realize relationships " "between entities." msgstr "" -"Em Engenharia de Software, padrões de design Estrutural são padrões que" +"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." \ No newline at end of file