mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-03 03:32:49 +02:00
# msgid "" msgstr "" "Project-Id-Version: DesignPatternsPHP 1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-02-04 12:00+0200\n" "PO-Revision-Date: 2023-02-04 12:00+0200\n" "Last-Translator: Petro Ostapuk <petroostapuk@gmail.com>\n" "Language-Team: \n" "Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 3.1.1\n" #: ../../Behavioral/Command/README.rst:2 msgid "`Command`__" msgstr "`Команда <https://uk.wikipedia.org/wiki/Команда_(шаблон_проєктування)>`_ (`Command`__)" #: ../../Behavioral/Command/README.rst:5 msgid "Purpose" msgstr "Призначення" #: ../../Behavioral/Command/README.rst:7 msgid "To encapsulate invocation and decoupling." msgstr "Інкапсулювати дію та її параметри" #: ../../Behavioral/Command/README.rst:9 msgid "" "We have an Invoker and a Receiver. This pattern uses a \"Command\" to " "delegate the method call against the Receiver and presents the same method " "\"execute\". Therefore, the Invoker just knows to call \"execute\" to " "process the Command of the client. The Receiver is decoupled from the " "Invoker." msgstr "" "Припустимо, у нас є об'єкти Invoker (Командир) та Receiver (Виконавець). " "Цей патерн використовує реалізацію інтерфейсу \"Команда\", щоб викликати " "якийсь метод Виконавця використовуючи для цього відомий Командирові метод " "execute()». Командир просто знає, що потрібно викликати метод “execute()”, " "для обробки команди клієнта, не розбираючись у деталях реалізації " "Виконавця. Виконавець відокремлений від Командира." #: ../../Behavioral/Command/README.rst:15 msgid "" "The second aspect of this pattern is the undo(), which undoes the method " "execute(). Command can also be aggregated to combine more complex commands " "with minimum copy-paste and relying on composition over inheritance." msgstr "" "Другим аспектом цього патерну є метод undo(), який скасовує " "дію, що виконується методом execute(). Команди також можуть бути " "об'єднані в більш загальні команди з мінімальним копіюванням-вставкою та " "покладаючись на композицію поверх успадкування." #: ../../Behavioral/Command/README.rst:21 msgid "Examples" msgstr "Приклади" #: ../../Behavioral/Command/README.rst:23 msgid "" "A text editor : all events are commands which can be undone, stacked and saved." msgstr "" "Текстовий редактор: всі події є командами, які можуть бути " "відмінено, вибудовано в певну послідовність і збережено." #: ../../Behavioral/Command/README.rst:27 msgid "" "big CLI tools use subcommands to distribute various tasks and pack them in " "\"modules\", each of these can be implemented with the Command pattern (e.g." " vagrant)" msgstr "" "великі утиліти для командного рядка (наприклад, Vagrant) використовують " "вкладені команди для поділу різних завдань та упаковки їх у «модулі», " "кожен з яких може бути реалізований за допомогою патерну \"Команда\"." #: ../../Behavioral/Command/README.rst:32 msgid "UML Diagram" msgstr "Діаграма UML" #: ../../Behavioral/Command/README.rst:39 msgid "Code" msgstr "Код" #: ../../Behavioral/Command/README.rst:41 msgid "You can also find this code on `GitHub`_" msgstr "Ви можете знайти цей код на `GitHub`_" #: ../../Behavioral/Command/README.rst:68 msgid "Test" msgstr "Тест"