Skip to content

Commit 2eb8be1

Browse files
[pl translation] Behavioral.
1 parent c1f0fac commit 2eb8be1

File tree

15 files changed

+1180
-7
lines changed

15 files changed

+1180
-7
lines changed

Behavioral/ChainOfResponsibilities/README.rst

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
`Chain Of Responsibilities`__
22
=============================
33

4-
Purpose:
4+
Purpose
55
--------
66

77
To build a chain of objects to handle a call in sequential order. If one
88
object cannot handle a call, it delegates the call to the next in the
99
chain and so forth.
1010

11-
Examples:
11+
Examples
1212
---------
1313

1414
- logging framework, where each chain element decides autonomously what
@@ -38,16 +38,16 @@ Handler.php
3838
.. literalinclude:: Handler.php
3939
:language: php
4040
:linenos:
41+
42+
Responsible/FastStorage.php
4143

42-
Responsible/SlowStorage.php
43-
44-
.. literalinclude:: Responsible/SlowStorage.php
44+
.. literalinclude:: Responsible/HttpInMemoryCacheHandler.php
4545
:language: php
4646
:linenos:
4747

48-
Responsible/FastStorage.php
48+
Responsible/SlowStorage.php
4949

50-
.. literalinclude:: Responsible/FastStorage.php
50+
.. literalinclude:: Responsible/SlowDatabaseHandler.php
5151
:language: php
5252
:linenos:
5353

Behavioral/State/README.rst

+7
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,12 @@ CreateOrder.php
4747
Test
4848
----
4949

50+
Tests/StateTest.php
51+
52+
.. literalinclude:: Tests/StateTest.php
53+
:language: php
54+
:linenos:
55+
56+
5057
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/State
5158
.. __: http://en.wikipedia.org/wiki/State_pattern
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
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-05-29 21:17+0300\n"
8+
"Last-Translator: Piotr Grabski-Gradzinski <[email protected]>\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+
#: ../../Behavioral/ChainOfResponsibilities/README.rst:2
15+
msgid "`Chain Of Responsibilities`__"
16+
msgstr "`Łańcuch zobowiązań <https://pl.wikipedia.org/wiki/%C5%81a%C5%84cuch_zobowi%C4%85za%C5%84_(wzorzec_projektowy)>`_ (`Chain Of Responsibilities`__)"
17+
18+
#: ../../Behavioral/ChainOfResponsibilities/README.rst:5
19+
msgid "Purpose"
20+
msgstr "Przeznaczenie"
21+
22+
#: ../../Behavioral/ChainOfResponsibilities/README.rst:7
23+
msgid ""
24+
"To build a chain of objects to handle a call in sequential order. If one "
25+
"object cannot handle a call, it delegates the call to the next in the chain "
26+
"and so forth."
27+
msgstr ""
28+
"Zbudowanie łańcucha obiektów przetwarzających żądanie w sposób sekwencyjny. "
29+
"Jeżeli jeden obiekt nie może obsłużyć żądania, przekazuje je do następnego w łańcuchu."
30+
31+
#: ../../Behavioral/ChainOfResponsibilities/README.rst:12
32+
msgid "Examples"
33+
msgstr "Przykłady"
34+
35+
#: ../../Behavioral/ChainOfResponsibilities/README.rst:14
36+
msgid ""
37+
"logging framework, where each chain element decides autonomously what to do "
38+
"with a log message"
39+
msgstr ""
40+
"Framework do zapisywania logów, gdzie każdy obiekt z łańcucha odpowiedzialności decyduje "
41+
"co zrobić z danym wpisem."
42+
43+
#: ../../Behavioral/ChainOfResponsibilities/README.rst:16
44+
msgid "a Spam filter"
45+
msgstr "filtr antyspamowy"
46+
47+
#: ../../Behavioral/ChainOfResponsibilities/README.rst:17
48+
msgid ""
49+
"Caching: first object is an instance of e.g. a Memcached Interface, if that "
50+
"\"misses\" it delegates the call to the database interface"
51+
msgstr ""
52+
"Zapis w pamięci podręcznej (caching): pierwszy obiekt jest na przykład instancją implementującą interfejs Memcached - "
53+
"jeżeli nie może zapisać w pamięci podręcznej żądania, wtedy przekazuje je do obiektu implementującego interfejs zapisu w bazie danych."
54+
55+
#: ../../Behavioral/ChainOfResponsibilities/README.rst:19
56+
msgid ""
57+
"Yii Framework: CFilterChain is a chain of controller action filters. the "
58+
"executing point is passed from one filter to the next along the chain, and "
59+
"only if all filters say \"yes\", the action can be invoked at last."
60+
msgstr ""
61+
"Yii Framework: CFilterChain jest łańcuchem filtrów dla danej akcji kontrolera. "
62+
"Wszystkie filtry są wykonywane po kolei w łańcuchu i dopiero jak wszystkie "
63+
"zwrócą pozytywny wynik finalna akcja zostanie uruchomiona."
64+
65+
#: ../../Behavioral/ChainOfResponsibilities/README.rst:25
66+
msgid "UML Diagram"
67+
msgstr "Diagram UML"
68+
69+
#: ../../Behavioral/ChainOfResponsibilities/README.rst:32
70+
msgid "Code"
71+
msgstr "Kod"
72+
73+
#: ../../Behavioral/ChainOfResponsibilities/README.rst:34
74+
msgid "You can also find this code on `GitHub`_"
75+
msgstr "Ten kod znajdziesz również na `GitHub`_."
76+
77+
#: ../../Behavioral/ChainOfResponsibilities/README.rst:36
78+
msgid "Request.php"
79+
msgstr "Request.php"
80+
81+
#: ../../Behavioral/ChainOfResponsibilities/README.rst:42
82+
msgid "Handler.php"
83+
msgstr "Handler.php"
84+
85+
#: ../../Behavioral/ChainOfResponsibilities/README.rst:48
86+
msgid "Responsible/SlowStorage.php"
87+
msgstr "Responsible/SlowStorage.php"
88+
89+
#: ../../Behavioral/ChainOfResponsibilities/README.rst:54
90+
msgid "Responsible/FastStorage.php"
91+
msgstr "Responsible/FastStorage.php"
92+
93+
#: ../../Behavioral/ChainOfResponsibilities/README.rst:61
94+
msgid "Test"
95+
msgstr "Testy"
96+
97+
#: ../../Behavioral/ChainOfResponsibilities/README.rst:63
98+
msgid "Tests/ChainTest.php"
99+
msgstr "Tests/ChainTest.php"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
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-05-29 21:16+0300\n"
8+
"Last-Translator: Piotr Grabski-Gradzinski <[email protected]>\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+
#: ../../Behavioral/Command/README.rst:2
15+
msgid "`Command`__"
16+
msgstr "`Polecenie <https://pl.wikipedia.org/wiki/Polecenie_(wzorzec_projektowy)>`_ (`Command`__)"
17+
18+
#: ../../Behavioral/Command/README.rst:5
19+
msgid "Purpose"
20+
msgstr "Przeznaczenie"
21+
22+
#: ../../Behavioral/Command/README.rst:7
23+
msgid "To encapsulate invocation and decoupling."
24+
msgstr "Pozwala wydzielić wykonanie określonej czynności w postaci obiektu."
25+
26+
#: ../../Behavioral/Command/README.rst:9
27+
msgid ""
28+
"We have an Invoker and a Receiver. This pattern uses a \"Command\" to "
29+
"delegate the method call against the Receiver and presents the same method "
30+
"\"execute\". Therefore, the Invoker just knows to call \"execute\" to "
31+
"process the Command of the client. The Receiver is decoupled from the "
32+
"Invoker."
33+
msgstr ""
34+
"Wprowadzamy trzy obiekty: Nadawcę (ang. `Invoker`), Odbiorcę (ang. `Receiver`) i Polecenie (ang. `Command`). "
35+
"Używamy obiektu Polecenia do wykonywania działań na odbiorcy. Dodatkowo wprowadzamy w obiekcie Polecenia "
36+
"metodę `execute()`. Dzięki temu Nadawca wywołuje zawsze tą samą metodę niezależnie od Polecenia, aby "
37+
"przetworzyć żądanie klienta. Nadawca i Odbiorca nie są ze sobą połączeni."
38+
39+
#: ../../Behavioral/Command/README.rst:15
40+
msgid ""
41+
"The second aspect of this pattern is the undo(), which undoes the method "
42+
"execute(). Command can also be aggregated to combine more complex commands "
43+
"with minimum copy-paste and relying on composition over inheritance."
44+
msgstr ""
45+
"Drugi aspektem tego wzorca jest metoda `undo()`, która pozwala cofnąć wywołanie metody `execute()`. "
46+
"Polecenie może agregować inne Polecenia, aby wykonywać bardziej złożone operacje. Dzięki temu minimalizujemy "
47+
"kopiowanie kodu z innych klas i opieramy się bardziej na kompozycji niż dziedziczeniu. "
48+
49+
#: ../../Behavioral/Command/README.rst:21
50+
msgid "Examples"
51+
msgstr "Przykłady"
52+
53+
#: ../../Behavioral/Command/README.rst:23
54+
msgid ""
55+
"A text editor : all events are Command which can be undone, stacked and "
56+
"saved."
57+
msgstr ""
58+
"Edytor tekstu: wszystkie zdarzenia (ang. `events`) są Poleceniami, które można cofnąć `undo()`, odłożyć na stosie "
59+
"i zapisać."
60+
61+
#: ../../Behavioral/Command/README.rst:25
62+
msgid ""
63+
"Symfony2: SF2 Commands that can be run from the CLI are built with just the "
64+
"Command pattern in mind"
65+
msgstr ""
66+
"Symfony2: Polecenie w Symfony2, które można uruchomić z poziomu konsoli (CLI - ang. `Command Line Interface`) zostały oparte na wzorcu projektowym Polecenie."
67+
68+
#: ../../Behavioral/Command/README.rst:27
69+
msgid ""
70+
"big CLI tools use subcommands to distribute various tasks and pack them in "
71+
"\"modules\", each of these can be implemented with the Command pattern (e.g."
72+
" vagrant)"
73+
msgstr ""
74+
"Rozbudowane narzędzia CLI używają Podpoleceń do rozdzielenia różnych zadań "
75+
"i pozwalają na łączenie ich w moduły. Każdy taki moduł może zostać zaimplementowany przy pomocy wzorca Polecenie (np. Vagrant)."
76+
77+
#: ../../Behavioral/Command/README.rst:32
78+
msgid "UML Diagram"
79+
msgstr "Diagram UML"
80+
81+
#: ../../Behavioral/Command/README.rst:39
82+
msgid "Code"
83+
msgstr "Kod"
84+
85+
#: ../../Behavioral/Command/README.rst:41
86+
msgid "You can also find this code on `GitHub`_"
87+
msgstr "Ten kod znajdziesz również na `GitHub`_."
88+
89+
#: ../../Behavioral/Command/README.rst:43
90+
msgid "CommandInterface.php"
91+
msgstr "CommandInterface.php"
92+
93+
#: ../../Behavioral/Command/README.rst:49
94+
msgid "HelloCommand.php"
95+
msgstr "HelloCommand.php"
96+
97+
#: ../../Behavioral/Command/README.rst:55
98+
msgid "Receiver.php"
99+
msgstr "Receiver.php"
100+
101+
#: ../../Behavioral/Command/README.rst:61
102+
msgid "Invoker.php"
103+
msgstr "Invoker.php"
104+
105+
#: ../../Behavioral/Command/README.rst:68
106+
msgid "Test"
107+
msgstr "Testy"
108+
109+
#: ../../Behavioral/Command/README.rst:70
110+
msgid "Tests/CommandTest.php"
111+
msgstr "Tests/CommandTest.php"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
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-05-29 21:47+0300\n"
8+
"Last-Translator: Piotr Grabski-Gradzinski <[email protected]>\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+
#: ../../Behavioral/Iterator/README.rst:2
15+
msgid "`Iterator`__"
16+
msgstr "`Iterator <https://pl.wikipedia.org/wiki/Iterator>`_ (`Iterator`__)"
17+
18+
#: ../../Behavioral/Iterator/README.rst:5
19+
msgid "Purpose"
20+
msgstr "Przeznaczenie"
21+
22+
#: ../../Behavioral/Iterator/README.rst:7
23+
msgid "To make an object iterable and to make it appear like a collection of objects."
24+
msgstr ""
25+
"Umożliwienie sekwencyjnego dostępu do elementów zawartych w innym obiekcie, zwykle kontenerze lub liście."
26+
27+
#: ../../Behavioral/Iterator/README.rst:11
28+
msgid "Examples"
29+
msgstr "Przykłady"
30+
31+
#: ../../Behavioral/Iterator/README.rst:13
32+
msgid ""
33+
"to process a file line by line by just running over all lines (which have an"
34+
" object representation) for a file (which of course is an object, too)"
35+
msgstr ""
36+
"Procesowanie pliku linia po linii. Zakładamy, że zarówno plik jak i każda linijka z tego pliku "
37+
"to osobny obiekt. Możemy w ten sposób iterować po wszystkich liniach (będących obiektami) danego pliku."
38+
39+
#: ../../Behavioral/Iterator/README.rst:18
40+
msgid "Note"
41+
msgstr "Uwagi"
42+
43+
#: ../../Behavioral/Iterator/README.rst:20
44+
msgid ""
45+
"Standard PHP Library (SPL) defines an interface Iterator which is best "
46+
"suited for this! Often you would want to implement the Countable interface "
47+
"too, to allow ``count($object)`` on your iterable object"
48+
msgstr ""
49+
"Biblioteka SPL (Standard PHP Library) dostępna w PHP posiada interfejs Iterator, "
50+
"który świetnie nadaje się do tego zadania. Bardzo często klasa, która implementuje interfejs Iterator "
51+
"implementuje również interfejs Countable (również z biblioteki SPL), który pozwala policzyć liczbę elementów "
52+
"wywołaniem funkcji ``count($object)``."
53+
54+
55+
#: ../../Behavioral/Iterator/README.rst:25
56+
msgid "UML Diagram"
57+
msgstr "Diagram UML"
58+
59+
#: ../../Behavioral/Iterator/README.rst:32
60+
msgid "Code"
61+
msgstr "Kod"
62+
63+
#: ../../Behavioral/Iterator/README.rst:34
64+
msgid "You can also find this code on `GitHub`_"
65+
msgstr "Ten kod znajdziesz również na `GitHub`_."
66+
67+
#: ../../Behavioral/Iterator/README.rst:36
68+
msgid "Book.php"
69+
msgstr "Book.php"
70+
71+
#: ../../Behavioral/Iterator/README.rst:42
72+
msgid "BookList.php"
73+
msgstr "BookList.php"
74+
75+
#: ../../Behavioral/Iterator/README.rst:48
76+
msgid "BookListIterator.php"
77+
msgstr "BookListIterator.php"
78+
79+
#: ../../Behavioral/Iterator/README.rst:54
80+
msgid "BookListReverseIterator.php"
81+
msgstr "BookListReverseIterator.php"
82+
83+
#: ../../Behavioral/Iterator/README.rst:61
84+
msgid "Test"
85+
msgstr "Testy"
86+
87+
#: ../../Behavioral/Iterator/README.rst:63
88+
msgid "Tests/IteratorTest.php"
89+
msgstr "Tests/IteratorTest.php"

0 commit comments

Comments
 (0)