|
| 1 | +# |
| 2 | +msgid "" |
| 3 | +msgstr "" |
| 4 | +"Project-Id-Version: DesignPatternsPHP 1.0\n" |
| 5 | +"Report-Msgid-Bugs-To: \n" |
| 6 | +"POT-Creation-Date: 2015-05-29 12:18+0200\n" |
| 7 | +"PO-Revision-Date: 2015-06-02 01:32+0300\n" |
| 8 | +"Last-Translator: Piotr Grabski-Gradzinski <piotr.gradzinski@gmail.com>\n" |
| 9 | +"MIME-Version: 1.0\n" |
| 10 | +"Content-Type: text/plain; charset=UTF-8\n" |
| 11 | +"Content-Transfer-Encoding: 8bit\n" |
| 12 | +"Language: pl\n" |
| 13 | + |
| 14 | +#: ../../Structural/DependencyInjection/README.rst:2 |
| 15 | +msgid "`Dependency Injection`__" |
| 16 | +msgstr "" |
| 17 | +"`Wstrzykiwanie zależności <https://pl.wikipedia.org/wiki/Wstrzykiwanie_zale%C5%BCno%C5%9Bci>`_ (`Dependency Injection`__)" |
| 18 | + |
| 19 | +#: ../../Structural/DependencyInjection/README.rst:5 |
| 20 | +msgid "Purpose" |
| 21 | +msgstr "Przeznaczenie" |
| 22 | + |
| 23 | +#: ../../Structural/DependencyInjection/README.rst:7 |
| 24 | +msgid "" |
| 25 | +"To implement a loosely coupled architecture in order to get better testable," |
| 26 | +" maintainable and extendable code." |
| 27 | +msgstr "" |
| 28 | +"Pozwala stworzyć luźno powiązaną architekturę, aby uzyskać aplikację, którą " |
| 29 | +"możemy w łatwy sposób testować, utrzymywać i rozszerzać." |
| 30 | + |
| 31 | +#: ../../Structural/DependencyInjection/README.rst:11 |
| 32 | +msgid "Usage" |
| 33 | +msgstr "Użycie" |
| 34 | + |
| 35 | +#: ../../Structural/DependencyInjection/README.rst:13 |
| 36 | +msgid "" |
| 37 | +"Configuration gets injected and ``Connection`` will get all that it needs " |
| 38 | +"from ``$config``. Without DI, the configuration would be created directly in" |
| 39 | +" ``Connection``, which is not very good for testing and extending " |
| 40 | +"``Connection``." |
| 41 | +msgstr "" |
| 42 | +"Konfiguracja połączenia z bazą danych zostaje wstrzyknięta i obiekt klasy " |
| 43 | +"``DatabaseConnection`` może pobrać wszystkie potrzebne parametry z tablicy ``$config``. " |
| 44 | +"Bez Wstrzykiwania zależności zostałaby zawarta bezpośrednio w klasie ``DatabaseConnection``, " |
| 45 | +"co nie jest dobrym pomysłem ze względu na utrudnione testowanie i rozszerzanie klasy ``DatabaseConnection``." |
| 46 | + |
| 47 | +#: ../../Structural/DependencyInjection/README.rst:18 |
| 48 | +msgid "" |
| 49 | +"Notice we are following Inversion of control principle in ``Connection`` by " |
| 50 | +"asking ``$config`` to implement ``Parameters`` interface. This decouples our" |
| 51 | +" components. We don't care where the source of information comes from, we " |
| 52 | +"only care that ``$config`` has certain methods to retrieve that information." |
| 53 | +" Read more about Inversion of control `here " |
| 54 | +"<http://en.wikipedia.org/wiki/Inversion_of_control>`__." |
| 55 | +msgstr "" |
| 56 | +"Istotnym jest fakt, że klasa ``DatabaseConnection`` przestrzega zasady " |
| 57 | +"odwróconego sterowania (ang. `Inverse of Controll, IoC`) " |
| 58 | +"- obiekt, który przekazujemy do konstruktora klasy ``DatabaseConnection`` " |
| 59 | +"musi implementować ``DatabaseConfiguration``. " |
| 60 | +"Dzięki temu oba komponenty są od siebie niezależne. W klasie ``DatabaseConnection`` nie " |
| 61 | +"interesuje nas skąd przychodzą parametry konfiguracyjne. Liczy się dla nas tylko to, aby obiekt " |
| 62 | +"w argumencie ``$config`` posiadał odpowiednie metody, za pomocą których te dane pobierzemy. " |
| 63 | +"Więcej informacji na temat `odwóconego sterowania <https://pl.wikipedia.org/wiki/Odwr%C3%B3cenie_sterowania>`_." |
| 64 | + |
| 65 | +#: ../../Structural/DependencyInjection/README.rst:26 |
| 66 | +msgid "Examples" |
| 67 | +msgstr "Przykłady" |
| 68 | + |
| 69 | +#: ../../Structural/DependencyInjection/README.rst:28 |
| 70 | +msgid "" |
| 71 | +"The Doctrine2 ORM uses dependency injection e.g. for configuration that is " |
| 72 | +"injected into a ``Connection`` object. For testing purposes, one can easily " |
| 73 | +"create a mock object of the configuration and inject that into the " |
| 74 | +"``Connection`` object" |
| 75 | +msgstr "" |
| 76 | +"Doctrine2 ORM używa wstrzykiwania zależności do, na przykład, wstrzykiwania konfiguracji " |
| 77 | +"do obiektu klasy ``Connection``. Na potrzeby testowania, można stworzyć obiekty symulujące " |
| 78 | +"konfigurację i wstrzyknąć je do obiektu klasy ``Connection``." |
| 79 | + |
| 80 | +#: ../../Structural/DependencyInjection/README.rst:32 |
| 81 | +msgid "" |
| 82 | +"Symfony and Zend Framework 2 already have containers for DI that create " |
| 83 | +"objects via a configuration array and inject them where needed (i.e. in " |
| 84 | +"Controllers)" |
| 85 | +msgstr "" |
| 86 | +"Symfony i Zend Framework 2 posiadają kontenery do wstrzykiwania zależności, " |
| 87 | +"które pozwalają tworzyć obiekty poprzez tablicę konfiguracyjną i wstrzykiwać je " |
| 88 | +"tam, gdzie są potrzebne (na przykład w kontrolerach)." |
| 89 | + |
| 90 | +#: ../../Structural/DependencyInjection/README.rst:37 |
| 91 | +msgid "UML Diagram" |
| 92 | +msgstr "Diagram UML" |
| 93 | + |
| 94 | +#: ../../Structural/DependencyInjection/README.rst:44 |
| 95 | +msgid "Code" |
| 96 | +msgstr "Kod" |
| 97 | + |
| 98 | +#: ../../Structural/DependencyInjection/README.rst:46 |
| 99 | +msgid "You can also find this code on `GitHub`_" |
| 100 | +msgstr "Ten kod znajdziesz również na `GitHub`_." |
| 101 | + |
| 102 | +#: ../../Structural/DependencyInjection/README.rst:48 |
| 103 | +msgid "AbstractConfig.php" |
| 104 | +msgstr "AbstractConfig.php" |
| 105 | + |
| 106 | +#: ../../Structural/DependencyInjection/README.rst:54 |
| 107 | +msgid "Parameters.php" |
| 108 | +msgstr "Parameters.php" |
| 109 | + |
| 110 | +#: ../../Structural/DependencyInjection/README.rst:60 |
| 111 | +msgid "ArrayConfig.php" |
| 112 | +msgstr "ArrayConfig.php" |
| 113 | + |
| 114 | +#: ../../Structural/DependencyInjection/README.rst:66 |
| 115 | +msgid "Connection.php" |
| 116 | +msgstr "Connection.php" |
| 117 | + |
| 118 | +#: ../../Structural/DependencyInjection/README.rst:73 |
| 119 | +msgid "Test" |
| 120 | +msgstr "Testy" |
| 121 | + |
| 122 | +#: ../../Structural/DependencyInjection/README.rst:75 |
| 123 | +msgid "Tests/DependencyInjectionTest.php" |
| 124 | +msgstr "Tests/DependencyInjectionTest.php" |
| 125 | + |
| 126 | +#: ../../Structural/DependencyInjection/README.rst:81 |
| 127 | +msgid "Tests/config.php" |
| 128 | +msgstr "Tests/config.php" |
0 commit comments