mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-16 04:05:47 +00:00
Remove filters factory, introduce docs translation (#978)
* Rewrite filters * Update README.rst * Fixed tests * Small optimization of the Text filter (TY to @bomzheg) * Remove dataclass slots argument in due to the only Python 3.10 has an slots argument * Fixed mypy * Update tests * Disable Python 3.11 * Fixed #1013: Empty mention should be None instead of empty string. * Added #990 to the changelog * Added #942 to the changelog * Fixed coverage * Update poetry and dependencies * Fixed mypy * Remove deprecated code * Added more tests, update pyproject.toml * Partial update docs * Added initial Docs translation files * Added more changes * Added log message when connection is established in polling process * Fixed action * Disable lint for PyPy * Added changelog for docs translation
This commit is contained in:
parent
94030903ec
commit
f4251382e8
610 changed files with 61738 additions and 1687 deletions
222
docs/locale/uk_UA/LC_MESSAGES/dispatcher/router.po
Normal file
222
docs/locale/uk_UA/LC_MESSAGES/dispatcher/router.po
Normal file
|
|
@ -0,0 +1,222 @@
|
|||
# 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.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: aiogram \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-10-01 22:51+0300\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.10.3\n"
|
||||
|
||||
#: ../../dispatcher/router.rst:3
|
||||
msgid "Router"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.dispatcher.router.Router:1 of
|
||||
msgid "Bases: :py:class:`object`"
|
||||
msgstr ""
|
||||
|
||||
#: 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 ""
|
||||
|
||||
#: aiogram.dispatcher.router.Router:7 of
|
||||
msgid "By decorator - :obj:`@router.<event_type>(<filters, ...>)`"
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.dispatcher.router.Router.__init__
|
||||
#: aiogram.dispatcher.router.Router.include_router 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:3 of
|
||||
msgid ""
|
||||
"Can be attached directly or by import string in format "
|
||||
"\"<module>:<attribute>\""
|
||||
msgstr ""
|
||||
|
||||
#: aiogram.dispatcher.router.Router.include_router of
|
||||
msgid "Returns"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:11
|
||||
msgid "Event observers"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:15
|
||||
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:18
|
||||
msgid ""
|
||||
"Here is the list of available observers and examples of how to register "
|
||||
"handlers"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:20
|
||||
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 ""
|
||||
|
||||
#: ../../dispatcher/router.rst:23
|
||||
msgid "Update"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:32
|
||||
msgid ""
|
||||
"By default Router already has an update handler which route all event "
|
||||
"types to another observers."
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:36
|
||||
msgid "Message"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:41
|
||||
msgid "Be attentive with filtering this event"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:43
|
||||
msgid ""
|
||||
"You should expect that this event can be with different sets of "
|
||||
"attributes in different cases"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:45
|
||||
msgid ""
|
||||
"(For example text, sticker and document are always of different content "
|
||||
"types of message)"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:47
|
||||
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 ""
|
||||
|
||||
#: ../../dispatcher/router.rst:58
|
||||
msgid "Edited message"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:66
|
||||
msgid "Channel post"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:74
|
||||
msgid "Edited channel post"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:83
|
||||
msgid "Inline query"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:91
|
||||
msgid "Chosen inline query"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:99
|
||||
msgid "Callback query"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:107
|
||||
msgid "Shipping query"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:115
|
||||
msgid "Pre checkout query"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:123
|
||||
msgid "Poll"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:131
|
||||
msgid "Poll answer"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:139
|
||||
msgid "Errors"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:146
|
||||
msgid "Is useful for handling errors from other handlers"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:150
|
||||
msgid "Nested routers"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:155
|
||||
msgid ""
|
||||
"Routers by the way can be nested to an another routers with some "
|
||||
"limitations:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:155
|
||||
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 ""
|
||||
|
||||
#: ../../dispatcher/router.rst:159
|
||||
msgid "Example:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:161 ../../dispatcher/router.rst:171
|
||||
msgid "module_2.py"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:183
|
||||
msgid "How it works?"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:185
|
||||
msgid ""
|
||||
"For example, dispatcher has 2 routers, the last router also has one "
|
||||
"nested router:"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:-1
|
||||
msgid "Nested routers example"
|
||||
msgstr ""
|
||||
|
||||
#: ../../dispatcher/router.rst:190
|
||||
msgid "In this case update propagation flow will have form:"
|
||||
msgstr ""
|
||||
Loading…
Add table
Add a link
Reference in a new issue