ыыыыыы

This commit is contained in:
2025-10-30 19:06:36 +03:00
parent 559265cbce
commit 0a9eb61143
4 changed files with 200 additions and 8 deletions

View File

@@ -1,10 +1,41 @@
# localization.py
def getstr(lang, strname):
# ======== RUSSIAN ========
if lang == "ru" and strname == "test": return "Привет, мир!"
if lang == "ru" and strname == "test2": return "жопа"
if lang == "ru" and strname == "succlang": return "Русский язык был успешно пременён!"
# ======== FILTERS RUSSIAN ========
if lang == "ru" and strname == "filter_list": return "Список фильтров в этом чате:"
if lang == "ru" and strname == "no_filters": return "В этом чате нет фильтров."
if lang == "ru" and strname == "filter_set_usage": return "Использование: /filter set <триггер> (в ответ на сообщение)"
if lang == "ru" and strname == "filter_reply_required": return "Вы должны ответить на сообщение для установки фильтра."
if lang == "ru" and strname == "filter_unsupported_type": return "Неподдерживаемый тип сообщения. Поддерживаются: текст, фото, видео, документы, аудио, голосовые, стикеры."
if lang == "ru" and strname == "filter_set_success": return "Фильтр '{trigger}' успешно установлен!"
if lang == "ru" and strname == "filter_already_exists": return "Фильтр '{trigger}' уже существует."
if lang == "ru" and strname == "filter_remove_usage": return "Использование: /filter remove <триггер>"
if lang == "ru" and strname == "filter_remove_success": return "Фильтр '{trigger}' успешно удален."
if lang == "ru" and strname == "filter_not_found": return "Фильтр '{trigger}' не найден."
if lang == "ru" and strname == "filter_send_error": return "Ошибка при отправке медиа."
if lang == "ru" and strname == "filter_usage": return "Использование:\n/filter - показать все фильтры\n/filter set <триггер> - установить фильтр (в ответ на сообщение)\n/filter remove <триггер> - удалить фильтр"
# ======== ENGLISH ========
if lang == "en" and strname == "test": return "Hello, world!"
if lang == "en" and strname == "succlang": return "English language has been successfully applied!"
if lang == "en" and strname == "succlang": return "English language has been successfully applied!"
# ======== FILTERS ENGLISH ========
if lang == "en" and strname == "filter_list": return "Filters in this chat:"
if lang == "en" and strname == "no_filters": return "No filters in this chat."
if lang == "en" and strname == "filter_set_usage": return "Usage: /filter set <trigger> (reply to a message)"
if lang == "en" and strname == "filter_reply_required": return "You must reply to a message to set a filter."
if lang == "en" and strname == "filter_unsupported_type": return "Unsupported message type. Supported: text, photos, videos, documents, audio, voice, stickers."
if lang == "en" and strname == "filter_set_success": return "Filter '{trigger}' set successfully!"
if lang == "en" and strname == "filter_already_exists": return "Filter '{trigger}' already exists."
if lang == "en" and strname == "filter_remove_usage": return "Usage: /filter remove <trigger>"
if lang == "en" and strname == "filter_remove_success": return "Filter '{trigger}' removed successfully."
if lang == "en" and strname == "filter_not_found": return "Filter '{trigger}' not found."
if lang == "en" and strname == "filter_send_error": return "Error sending media."
if lang == "en" and strname == "filter_usage": return "Usage:\n/filter - show all filters\n/filter set <trigger> - set filter (reply to a message)\n/filter remove <trigger> - remove filter"
return "String not found"