aiogram/docs/locale/uk_UA/LC_MESSAGES/dispatcher/router.po
2024-02-16 01:17:09 +02:00

346 lines
12 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2022, aiogram Team
# This file is distributed under the same license as the aiogram package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2022.
#
msgid ""
msgstr ""
"Project-Id-Version: aiogram\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-16 01:15+0200\n"
"PO-Revision-Date: 2022-12-10 20:41+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.13.1\n"
#: ../../dispatcher/router.rst:5
msgid "Router"
msgstr "Маршрутизатор"
#: ../../dispatcher/router.rst:7
#, fuzzy
msgid "Usage:"
msgstr "Повідомлення"
#: aiogram.dispatcher.router.Router:1 of
msgid "Bases: :py:class:`object`"
msgstr "Базується на :py:class:`object`"
#: aiogram.dispatcher.router.Router:1 of
msgid ""
"Router can route update, and it nested update types like messages, "
"callback query, polls and all other event types."
msgstr ""
"Маршрутизатор може маршрутизувати події, а також вкладені типи оновлень, "
"такі як повідомлення, запит зворотного виклику, опитування та всі інші "
"типи подій."
#: aiogram.dispatcher.router.Router:4 of
msgid "Event handlers can be registered in observer by two ways:"
msgstr "Обробники подій можуть бути зареєстровані в обсервері двома шляхами:"
#: aiogram.dispatcher.router.Router:6 of
msgid ""
"By observer method - :obj:`router.<event_type>.register(handler, "
"<filters, ...>)`"
msgstr ""
"За допомогою методу обсервера - "
":obj:`router.<event_type>.register(handler, <filters, ...>)`"
#: aiogram.dispatcher.router.Router:7 of
msgid "By decorator - :obj:`@router.<event_type>(<filters, ...>)`"
msgstr "За допомогою декоратора - :obj:`@router.<event_type>(<filters, ...>)`"
#: aiogram.dispatcher.router.Router.__init__
#: aiogram.dispatcher.router.Router.include_router
#: aiogram.dispatcher.router.Router.include_routers
#: aiogram.dispatcher.router.Router.resolve_used_update_types of
msgid "Parameters"
msgstr "Параметри"
#: aiogram.dispatcher.router.Router.__init__:1 of
msgid "Optional router name, can be useful for debugging"
msgstr "Додаткова назва маршрутизатора, може бути корисною для відлагодження"
#: aiogram.dispatcher.router.Router.include_router:1 of
msgid "Attach another router."
msgstr "Підключення маршрутизатора."
#: aiogram.dispatcher.router.Router.include_router
#: aiogram.dispatcher.router.Router.include_routers
#: aiogram.dispatcher.router.Router.resolve_used_update_types of
msgid "Returns"
msgstr "Повертає"
#: aiogram.dispatcher.router.Router.include_routers:1 of
#, fuzzy
msgid "Attach multiple routers."
msgstr "Підключення маршрутизатора."
#: aiogram.dispatcher.router.Router.resolve_used_update_types:1 of
msgid "Resolve registered event names"
msgstr ""
#: aiogram.dispatcher.router.Router.resolve_used_update_types:3 of
msgid "Is useful for getting updates only for registered event types."
msgstr ""
#: aiogram.dispatcher.router.Router.resolve_used_update_types:5 of
msgid "skip specified event names"
msgstr ""
#: aiogram.dispatcher.router.Router.resolve_used_update_types:6 of
msgid "set of registered names"
msgstr ""
#: ../../dispatcher/router.rst:29
msgid "Event observers"
msgstr "Обсервери подій"
#: ../../dispatcher/router.rst:33
msgid ""
"All handlers always should be asynchronous. The name of the handler "
"function is not important. The event argument name is also not important "
"but it is recommended to not overlap the name with contextual data in due"
" to function can not accept two arguments with the same name."
msgstr ""
"Усі обробники завжди мають бути асинхронними. Ім'я функції обробки не має"
" значення. Назва аргументу події також не важлива, але рекомендується не "
"накладати назву на контекстні дані, оскільки функція не може прийняти два"
" аргументи з однаковою назвою."
#: ../../dispatcher/router.rst:36
msgid ""
"Here is the list of available observers and examples of how to register "
"handlers"
msgstr ""
"Ось список доступних обсерверів і приклади того, як зареєструвати "
"обробники"
#: ../../dispatcher/router.rst:38
msgid ""
"In these examples only decorator-style registering handlers are used, but"
" if you don't like @decorators just use :obj:`<event type>.register(...)`"
" method instead."
msgstr ""
"У цих прикладах використовуються лише обробники реєстрації у стилі "
"декоратора, але якщо вам не подобаються @decorators, просто "
"використовуйте :obj:`<event type>.register(...)` method instead."
#: ../../dispatcher/router.rst:41
msgid "Message"
msgstr "Повідомлення"
#: ../../dispatcher/router.rst:46
msgid "Be attentive with filtering this event"
msgstr "Будьте уважні при фільтруванні цієї події"
#: ../../dispatcher/router.rst:48
msgid ""
"You should expect that this event can be with different sets of "
"attributes in different cases"
msgstr ""
"Вам слід очікувати, що ця подія може мати різні набори атрибутів у різних"
" випадках"
#: ../../dispatcher/router.rst:50
msgid ""
"(For example text, sticker and document are always of different content "
"types of message)"
msgstr "(Наприклад, текст, стікер та документ завжди мають різні типи вмісту)"
#: ../../dispatcher/router.rst:52
msgid ""
"Recommended way to check field availability before usage, for example via"
" :ref:`magic filter <magic-filters>`: :code:`F.text` to handle text, "
":code:`F.sticker` to handle stickers only and etc."
msgstr ""
"Рекомендований спосіб перевірити наявність полів перед використанням, "
"наприклад за допомогою :ref:`magic filter <magic-filters>`: "
":code:`F.text` для обробки тексту, :code:`F.sticker` для обробки лише "
"стікерів і тощо."
#: ../../dispatcher/router.rst:63
msgid "Edited message"
msgstr "Відредаговане повідомлення"
#: ../../dispatcher/router.rst:71
msgid "Channel post"
msgstr "Пост на каналі"
#: ../../dispatcher/router.rst:79
msgid "Edited channel post"
msgstr "Відредагований пост на каналі"
#: ../../dispatcher/router.rst:88
msgid "Inline query"
msgstr "Inline запит"
#: ../../dispatcher/router.rst:96
msgid "Chosen inline query"
msgstr "Вибраний результат inline запиту"
#: ../../dispatcher/router.rst:104
msgid "Callback query"
msgstr "Запит зворотної відповіді"
#: ../../dispatcher/router.rst:112
msgid "Shipping query"
msgstr "Запит підтвердження доставки"
#: ../../dispatcher/router.rst:120
msgid "Pre checkout query"
msgstr "Запит перед оформленням замовлення"
#: ../../dispatcher/router.rst:128
msgid "Poll"
msgstr "Опитування"
#: ../../dispatcher/router.rst:136
msgid "Poll answer"
msgstr "Відповідь на опитування"
#: ../../dispatcher/router.rst:145
msgid "My chat member"
msgstr ""
#: ../../dispatcher/router.rst:154
msgid "Chat member"
msgstr ""
#: ../../dispatcher/router.rst:163
msgid "Chat join request"
msgstr ""
#: ../../dispatcher/router.rst:172
#, fuzzy
msgid "Message reaction"
msgstr "Повідомлення"
#: ../../dispatcher/router.rst:181
msgid "Message reaction count"
msgstr ""
#: ../../dispatcher/router.rst:190
#, fuzzy
msgid "Chat boost"
msgstr "Пост на каналі"
#: ../../dispatcher/router.rst:199
msgid "Remove chat boost"
msgstr ""
#: ../../dispatcher/router.rst:208
msgid "Errors"
msgstr "Помилки"
#: ../../dispatcher/router.rst:215
#, fuzzy
msgid ""
"Is useful for handling errors from other handlers, error event described "
":ref:`here <error-event>`"
msgstr "Корисно для обробки помилок інших обробників"
#: ../../dispatcher/router.rst:222
msgid "Nested routers"
msgstr "Вкладені маршрутизатори"
#: ../../dispatcher/router.rst:227
msgid ""
"Routers by the way can be nested to an another routers with some "
"limitations:"
msgstr ""
"До речі, маршрутизатори можуть бути вкладеними в інші маршрутизатори з "
"деякими обмеженнями:"
#: ../../dispatcher/router.rst:227
msgid ""
"1. Router **CAN NOT** include itself 1. Routers **CAN NOT** be used for "
"circular including (router 1 include router 2, router 2 include router 3,"
" router 3 include router 1)"
msgstr ""
"1. Маршрутизатор **НЕ МОЖЕ** включити себе \n"
"2. Маршрутизатори **НЕ МОЖНА** використовувати для циклічного включення "
"(маршрутизатор 1 включає маршрутизатор 2, маршрутизатор 2 включає "
"маршрутизатор 3, маршрутизатор 3 включає маршрутизатор 1)"
#: ../../dispatcher/router.rst:231
msgid "Example:"
msgstr "Приклад:"
#: ../../dispatcher/router.rst:233
#, fuzzy
msgid "module_1.py"
msgstr "module_2.py"
#: ../../dispatcher/router.rst
msgid "name"
msgstr ""
#: ../../dispatcher/router.rst:235
#, fuzzy
msgid "module_1"
msgstr "module_2.py"
#: ../../dispatcher/router.rst:237
msgid "router2 = Router()"
msgstr ""
#: ../../dispatcher/router.rst:239
msgid "@router2.message() ..."
msgstr ""
#: ../../dispatcher/router.rst:243
msgid "module_2.py"
msgstr "module_2.py"
#: ../../dispatcher/router.rst:245
#, fuzzy
msgid "module_2"
msgstr "module_2.py"
#: ../../dispatcher/router.rst:247
msgid "from module_2 import router2"
msgstr ""
#: ../../dispatcher/router.rst:250
msgid "router1 = Router() router1.include_router(router2)"
msgstr ""
#: ../../dispatcher/router.rst:255
msgid "Update"
msgstr "Оновлення"
#: ../../dispatcher/router.rst:264
msgid "The only root Router (Dispatcher) can handle this type of event."
msgstr ""
#: ../../dispatcher/router.rst:268
msgid ""
"Dispatcher already has default handler for this event type, so you can "
"use it for handling all updates that are not handled by any other "
"handlers."
msgstr ""
#: ../../dispatcher/router.rst:271
msgid "How it works?"
msgstr "Як це працює?"
#: ../../dispatcher/router.rst:273
msgid ""
"For example, dispatcher has 2 routers, the last router also has one "
"nested router:"
msgstr ""
"Наприклад, диспетчер має 2 маршрутизатори, останній маршрутизатор також "
"має один вкладений маршрутизатор:"
#: ../../dispatcher/router.rst:-1
msgid "Nested routers example"
msgstr "Приклад вкладених маршрутизаторів"
#: ../../dispatcher/router.rst:278
msgid "In this case update propagation flow will have form:"
msgstr "У цьому випадку потік розповсюдження оновлення матиме вигляд:"