From acff79b7db8f555b3703bdacb0f521aa43f556f2 Mon Sep 17 00:00:00 2001 From: anorprogrammer <77531974+anorprogrammer@users.noreply.github.com> Date: Fri, 23 Jul 2021 01:22:13 +0500 Subject: [PATCH 1/3] O'zbek tili qo'shildi Shahobiddin Anorboyev tomonidan aiogram_bot uchun o'zbek tili qo'shildi --- locales/uz/LC_MESSAGES/bot.po | 215 ++++++++++++++++++++++++++++++++++ 1 file changed, 215 insertions(+) create mode 100644 locales/uz/LC_MESSAGES/bot.po diff --git a/locales/uz/LC_MESSAGES/bot.po b/locales/uz/LC_MESSAGES/bot.po new file mode 100644 index 0000000..c4ae5f2 --- /dev/null +++ b/locales/uz/LC_MESSAGES/bot.po @@ -0,0 +1,215 @@ +# Uzbek translations by Shahobiddin Anorboyev for aiogram_bot. +# Copyright (C) 2019 Illemius +# This file is distributed under the same license as the aiogram_bot +# project. +# FIRST AUTHOR , 2019. +# +msgid "" +msgstr "" +"Project-Id-Version: aiogram_bot 0.1\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2019-11-06 11:44+0200\n" +"PO-Revision-Date: 2019-11-06 11:40+0200\n" +"Last-Translator: \n" +"Language: ru\n" +"Language-Team: ru \n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.7.0\n" + +#: app/handlers/base.py:17 +msgid "" +"Hello, {user}.\n" +"Send /help if you want to read my commands list and also you can change " +"language by sending /settings command.\n" +"My source code: {source_url}" +msgstr "" +"Salom, {user}.\n" +"Agar siz mening buyruqlarim ro\'yxatini o\'qishni yoki o\'zgartirsangiz xohlasangiz /help buyrug\'ini yuboring" +"Tilni o\'zgartirish uchun /settings buyrug\'ini yuboring\n" +"\n" +"Mening kodim: {source_url}" + +#: app/handlers/base.py:35 +msgid "Here you can read the list of my commands:" +msgstr "Bu yerda mening buyruqlarim ro\'yxatini o\'qishingiz mumkin:" + +#: app/handlers/base.py:36 +msgid "{command} - Start conversation with bot" +msgstr "{command} - Bot bilan suhbatni boshlang" + +#: app/handlers/base.py:37 +msgid "{command} - Get this message" +msgstr "{command} - Ushbu xabarni oling" + +#: app/handlers/base.py:38 +msgid "{command} - Chat or user settings" +msgstr "{command} - Chat yoki foydalanuvchi sozlamalari" + +#: app/handlers/base.py:39 +msgid "{command} - My version" +msgstr "{command} - Versiya" + +#: app/handlers/base.py:48 +msgid "In chats this commands list can be other" +msgstr "Chatlarda bu buyruqlar ro\'yxati boshqacha bo\'lishi mumkin" + +#: app/handlers/base.py:54 +msgid "Available only in groups:" +msgstr "Quyidagi buyruqlar faqat chatlarda mavjud:" + +#: app/handlers/base.py:55 +msgid "{command} - Report message to chat administrators" +msgstr "{command} - Chat ma\'murlariga xabar berish" + +#: app/handlers/base.py:58 +msgid "{command} - Set RO mode for user" +msgstr "{command} - Foydalanuvchi uchun RO rejimini o\'rnatish" + +#: app/handlers/base.py:59 +msgid "{command} - Ban user" +msgstr "{command} - Foydalanuvchini bloklash" + +#: app/handlers/base.py:61 +msgid "In private chats this commands list can be other" +msgstr "Shaxsiy chatlarda bu buyruqlar ro\'yxati boshqacha bo\'lishi mumkin" + +#: app/handlers/base.py:70 +msgid "" +"My Engine:\n" +"{aiogram}" +msgstr "" +"Mening versiyam:\n" +"{aiogram}" + +#: app/handlers/chat_settings.py:51 app/handlers/chat_settings.py:93 +#: app/handlers/chat_settings.py:131 +msgid "Invalid chat" +msgstr "Yaroqsiz chat" + +#: app/handlers/chat_settings.py:65 +msgid "Choose chat language" +msgstr "Suhbatlashish tilini tanlang" + +#: app/handlers/chat_settings.py:97 app/handlers/chat_settings.py:135 +msgid "You cannot change settings of this chat!" +msgstr "Siz ushbu chat sozlamalarini o\'zgartira olmaysiz!" + +#: app/handlers/chat_settings.py:109 +msgid "Language changed to {new_language}" +msgstr "Til {new_language} ga o\'zgartirildi" + +#: app/handlers/chat_settings.py:119 +msgid "Do not disturb mode reconfigured" +msgstr "\"Bezovta qilmang\" rejimi qayta sozlandi" + +#: app/handlers/chat_settings.py:141 +msgid "Join filter re-configured" +msgstr "Chat uchun kirish filtri qayta sozlandi" + +#: app/handlers/chat_settings.py:154 +msgid "Settings saved" +msgstr "Sozlamalar saqlandi" + +#: app/handlers/new_chat_members.py:68 +msgid "I'm human" +msgstr "Men insonman" + +#: app/handlers/new_chat_members.py:69 +msgid "I'm bot" +msgstr "Men botman" + +#: app/handlers/new_chat_members.py:70 +msgid "I'm pet" +msgstr "Men uy hayvoniman" + +#: app/handlers/new_chat_members.py:74 +msgid "" +"{users}, Welcome to the chat. \n" +"Please confirm that you are a human. User filter is enabled in this chat," +" so if you don't answer my question, I will be forced to remove you from " +"this chat." +msgstr "" +"Salom, {users}!\n" +"Iltimos, odam ekanligingizni tasdiqlang. Ushbu suhbatda \"yangi foydalanuvchilar\" filtri yoqilgan. " +"Shu sababli, agar siz mening savolimga javob bermasangiz " +"men sizni suhbatdan chiqarib yuborishga majbur bo\'laman" + +#: app/handlers/new_chat_members.py:110 +msgid "This message is not for you!" +msgstr "Bu xabar siz uchun yuborilmagan!" + +#: app/handlers/new_chat_members.py:113 +msgid "Good answer!" +msgstr "To\'g\'ri javob" + +#: app/handlers/new_chat_members.py:120 +msgid "Bad answer." +msgstr "Noto\'g\'ri javob." + +#: app/handlers/simple_admin.py:47 +msgid "Read-only activated for user {user}. Duration: {duration}" +msgstr "Read-only rejimi {user} faollashtirildi. Muddat: {duration}" + +#: app/handlers/simple_admin.py:82 +msgid "User {user} banned for {duration}" +msgstr "{user} foydalanuvchisi {duration} uchun Bloklandi" + +#: app/handlers/simple_admin.py:106 +msgid "" +"Please use this command is only in reply to message what do you want to " +"report and this message will be reported to chat administrators." +msgstr "" +"Iltimos, ushbu buyruqdan faqat boshqa xabarga javob ( reply ) sifatida foydalaning" +"Men bu haqida chat ma'muriyatiga xabar beraman." + +#: app/handlers/simple_admin.py:113 +msgid "[ALERT] User {user} is reported message in chat {chat}." +msgstr "Diqqat. {user} foydalanuvchisi {chat} chatida xabar yubordi." + +#: app/handlers/simple_admin.py:135 +msgid "This message is reported to chat administrators." +msgstr "Chat ma\'muriyati ogohlantirildi." + +#: app/handlers/simple_admin.py:148 +msgid "User {user} leave this chat..." +msgstr "Foydalanuvchi {user} ushbu chatni tark etdi..." + +#: app/handlers/superuser.py:25 +msgid "Successful changed is_superuser to {is_superuser} for user {user}" +msgstr "" +"{user} foydalanuvchisi uchun is_superuser bayrog\'i {is_superuser}" ga muvaffaqiyatli yangilandi." + + +#: app/handlers/superuser.py:30 +msgid "Failed to set is_superuser to {is_superuser} for user {user}" +msgstr "" +"{user} foydalanuvchisi uchun is_superuser-ni {is_superuser} ga o\'rnatib bo'lmadi" + + +#: app/utils/chat_settings.py:24 +msgid "Settings for chat {chat_title}" +msgstr "{chat_title} chati uchun sozlamalar!" + +#: app/utils/chat_settings.py:29 +msgid "{status} Join filter" +msgstr "{status} Join filtri" + +#: app/utils/chat_settings.py:39 app/utils/chat_settings.py:77 +msgid "{flag} Language" +msgstr "{flag} Til" + +#: app/utils/chat_settings.py:49 app/utils/chat_settings.py:85 +msgid "Done" +msgstr "Tayyor" + +#: app/utils/chat_settings.py:62 +msgid "Personal settings" +msgstr "Shaxsiy sozlamalar" + +#: app/utils/chat_settings.py:67 +msgid "{status} Do not disturb" +msgstr "{status} Bezovta qilmang" From a00588ebde42764b1f1b69af5b569a051a010778 Mon Sep 17 00:00:00 2001 From: Shahobiddin Anorboyev <77531974+anorprogrammer@users.noreply.github.com> Date: Tue, 7 Feb 2023 03:29:05 +0500 Subject: [PATCH 2/3] Update i18n.py --- aiogram_bot/middlewares/i18n.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aiogram_bot/middlewares/i18n.py b/aiogram_bot/middlewares/i18n.py index 304b14a..808b55c 100644 --- a/aiogram_bot/middlewares/i18n.py +++ b/aiogram_bot/middlewares/i18n.py @@ -19,6 +19,7 @@ class I18nMiddleware(BaseI18nMiddleware): "en": LanguageData("🇺🇸", "English"), "ru": LanguageData("🇷🇺", "Русский"), "uk": LanguageData("🇺🇦", "Українська"), + "uz": LanguageData("🇺🇿", "O'zbekcha"), } async def get_user_locale(self, action: str, args: Tuple[Any]) -> str: From 7cb63e42375d0a0b81a7a19b242c24f6fd90f11c Mon Sep 17 00:00:00 2001 From: Shahobiddin Anorboyev <77531974+anorprogrammer@users.noreply.github.com> Date: Tue, 7 Feb 2023 04:22:35 +0500 Subject: [PATCH 3/3] Update bot.po --- locales/uz/LC_MESSAGES/bot.po | 175 ++++++++++++++++++++++------------ 1 file changed, 114 insertions(+), 61 deletions(-) diff --git a/locales/uz/LC_MESSAGES/bot.po b/locales/uz/LC_MESSAGES/bot.po index c4ae5f2..8310f3f 100644 --- a/locales/uz/LC_MESSAGES/bot.po +++ b/locales/uz/LC_MESSAGES/bot.po @@ -1,5 +1,5 @@ # Uzbek translations by Shahobiddin Anorboyev for aiogram_bot. -# Copyright (C) 2019 Illemius +# Copyright (C) 2023 Illemius # This file is distributed under the same license as the aiogram_bot # project. # FIRST AUTHOR , 2019. @@ -8,19 +8,20 @@ msgid "" msgstr "" "Project-Id-Version: aiogram_bot 0.1\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2019-11-06 11:44+0200\n" -"PO-Revision-Date: 2019-11-06 11:40+0200\n" +"POT-Creation-Date: 2021-12-09 23:51+0200\n" +"PO-Revision-Date: 2021-12-09 23:53+0200\n" "Last-Translator: \n" -"Language: ru\n" +"Language: uz\n" "Language-Team: ru \n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " -"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.7.0\n" +"Generated-By: Babel 2.9.1\n" +"X-Generator: Poedit 3.0\n" -#: app/handlers/base.py:17 +#: aiogram_bot/handlers/base.py:17 msgid "" "Hello, {user}.\n" "Send /help if you want to read my commands list and also you can change " @@ -33,51 +34,55 @@ msgstr "" "\n" "Mening kodim: {source_url}" -#: app/handlers/base.py:35 +#: aiogram_bot/handlers/base.py:36 msgid "Here you can read the list of my commands:" msgstr "Bu yerda mening buyruqlarim ro\'yxatini o\'qishingiz mumkin:" -#: app/handlers/base.py:36 +#: aiogram_bot/handlers/base.py:37 msgid "{command} - Start conversation with bot" msgstr "{command} - Bot bilan suhbatni boshlang" -#: app/handlers/base.py:37 +#: aiogram_bot/handlers/base.py:38 msgid "{command} - Get this message" msgstr "{command} - Ushbu xabarni oling" -#: app/handlers/base.py:38 +#: aiogram_bot/handlers/base.py:39 msgid "{command} - Chat or user settings" msgstr "{command} - Chat yoki foydalanuvchi sozlamalari" -#: app/handlers/base.py:39 +#: aiogram_bot/handlers/base.py:40 msgid "{command} - My version" msgstr "{command} - Versiya" -#: app/handlers/base.py:48 +#: aiogram_bot/handlers/base.py:41 +msgid "{command} - Publish content to HasteBin" +msgstr "{command} - HasteBin-ga nashr qilish" + +#: aiogram_bot/handlers/base.py:46 msgid "In chats this commands list can be other" msgstr "Chatlarda bu buyruqlar ro\'yxati boshqacha bo\'lishi mumkin" -#: app/handlers/base.py:54 +#: aiogram_bot/handlers/base.py:50 msgid "Available only in groups:" -msgstr "Quyidagi buyruqlar faqat chatlarda mavjud:" +msgstr "Quyidagi buyruqlar faqat guruhlarda mavjud:" -#: app/handlers/base.py:55 +#: aiogram_bot/handlers/base.py:51 msgid "{command} - Report message to chat administrators" -msgstr "{command} - Chat ma\'murlariga xabar berish" +msgstr "{command} - Chat ma\'murlariga shikoyat qilish" -#: app/handlers/base.py:58 +#: aiogram_bot/handlers/base.py:54 msgid "{command} - Set RO mode for user" -msgstr "{command} - Foydalanuvchi uchun RO rejimini o\'rnatish" +msgstr "{command} - Foydalanuvchi uchun RO (Read Only) rejimini o\'rnatish" -#: app/handlers/base.py:59 +#: aiogram_bot/handlers/base.py:55 msgid "{command} - Ban user" msgstr "{command} - Foydalanuvchini bloklash" -#: app/handlers/base.py:61 +#: aiogram_bot/handlers/base.py:57 msgid "In private chats this commands list can be other" msgstr "Shaxsiy chatlarda bu buyruqlar ro\'yxati boshqacha bo\'lishi mumkin" -#: app/handlers/base.py:70 +#: aiogram_bot/handlers/base.py:66 msgid "" "My Engine:\n" "{aiogram}" @@ -85,48 +90,75 @@ msgstr "" "Mening versiyam:\n" "{aiogram}" -#: app/handlers/chat_settings.py:51 app/handlers/chat_settings.py:93 -#: app/handlers/chat_settings.py:131 +#: aiogram_bot/handlers/chat_settings.py:56 +#: aiogram_bot/handlers/chat_settings.py:98 +#: aiogram_bot/handlers/chat_settings.py:147 msgid "Invalid chat" msgstr "Yaroqsiz chat" -#: app/handlers/chat_settings.py:65 +#: aiogram_bot/handlers/chat_settings.py:70 msgid "Choose chat language" msgstr "Suhbatlashish tilini tanlang" -#: app/handlers/chat_settings.py:97 app/handlers/chat_settings.py:135 +#: aiogram_bot/handlers/chat_settings.py:102 +#: aiogram_bot/handlers/chat_settings.py:151 msgid "You cannot change settings of this chat!" msgstr "Siz ushbu chat sozlamalarini o\'zgartira olmaysiz!" -#: app/handlers/chat_settings.py:109 +#: aiogram_bot/handlers/chat_settings.py:114 msgid "Language changed to {new_language}" msgstr "Til {new_language} ga o\'zgartirildi" -#: app/handlers/chat_settings.py:119 +#: aiogram_bot/handlers/chat_settings.py:124 msgid "Do not disturb mode reconfigured" msgstr "\"Bezovta qilmang\" rejimi qayta sozlandi" -#: app/handlers/chat_settings.py:141 -msgid "Join filter re-configured" -msgstr "Chat uchun kirish filtri qayta sozlandi" - -#: app/handlers/chat_settings.py:154 +#: aiogram_bot/handlers/chat_settings.py:137 msgid "Settings saved" msgstr "Sozlamalar saqlandi" -#: app/handlers/new_chat_members.py:68 -msgid "I'm human" -msgstr "Men insonman" +#: aiogram_bot/handlers/chat_settings.py:167 +msgid "Invalid property" +msgstr "Yaroqsiz parametr" + +#: aiogram_bot/handlers/chat_settings.py:169 +#, fuzzy +msgid "Settings updated" +msgstr "Sozlamalar yangilandi" + +#: aiogram_bot/handlers/hastebin.py:30 +msgid "Content to move is too short!" +msgstr "Ko\'chirish uchun xabar juda qisqa!" -#: app/handlers/new_chat_members.py:69 +#: aiogram_bot/handlers/hastebin.py:36 +msgid "" +"Message originally posted by {author} was moved to {url} service\n" +"Content size: {size} bytes" +msgstr "" +"Dastlab {author} tomonidan yuborilgan xabar {url} xizmatiga koʻchirildi\n" +"Hajmi: {size} bayt" + +#: aiogram_bot/handlers/new_chat_members.py:72 msgid "I'm bot" msgstr "Men botman" -#: app/handlers/new_chat_members.py:70 +#: aiogram_bot/handlers/new_chat_members.py:73 msgid "I'm pet" msgstr "Men uy hayvoniman" -#: app/handlers/new_chat_members.py:74 +#: aiogram_bot/handlers/new_chat_members.py:75 +msgid "I'm spammer" +msgstr "Men spammerman" + +#: aiogram_bot/handlers/new_chat_members.py:78 +msgid "I'm scammer" +msgstr "Men rus kemasiman" + +#: aiogram_bot/handlers/new_chat_members.py:84 +msgid "I'm human" +msgstr "Men insonman" + +#: aiogram_bot/handlers/new_chat_members.py:87 msgid "" "{users}, Welcome to the chat. \n" "Please confirm that you are a human. User filter is enabled in this chat," @@ -138,27 +170,35 @@ msgstr "" "Shu sababli, agar siz mening savolimga javob bermasangiz " "men sizni suhbatdan chiqarib yuborishga majbur bo\'laman" -#: app/handlers/new_chat_members.py:110 +#: aiogram_bot/handlers/new_chat_members.py:123 msgid "This message is not for you!" -msgstr "Bu xabar siz uchun yuborilmagan!" +msgstr "Bu xabar siz uchun emas!" -#: app/handlers/new_chat_members.py:113 +#: aiogram_bot/handlers/new_chat_members.py:126 msgid "Good answer!" msgstr "To\'g\'ri javob" -#: app/handlers/new_chat_members.py:120 +#: aiogram_bot/handlers/new_chat_members.py:133 msgid "Bad answer." msgstr "Noto\'g\'ri javob." -#: app/handlers/simple_admin.py:47 +#: aiogram_bot/handlers/simple_admin.py:50 +msgid "" +"Channel {channel} was permanently banned and the channel owner will no " +"longer be able to send messages here on behalf of any of his channels." +msgstr "" +"{channel} kanali bloklandi, ushbu kanal endi egasi o\'z kanallari nomidan " +"ushbu chatga habar yubora olmaydi." + +#: aiogram_bot/handlers/simple_admin.py:86 msgid "Read-only activated for user {user}. Duration: {duration}" msgstr "Read-only rejimi {user} faollashtirildi. Muddat: {duration}" -#: app/handlers/simple_admin.py:82 +#: aiogram_bot/handlers/simple_admin.py:121 msgid "User {user} banned for {duration}" -msgstr "{user} foydalanuvchisi {duration} uchun Bloklandi" +msgstr "{user} foydalanuvchisi Bloklandi. Muddat: {duration}" -#: app/handlers/simple_admin.py:106 +#: aiogram_bot/handlers/simple_admin.py:150 msgid "" "Please use this command is only in reply to message what do you want to " "report and this message will be reported to chat administrators." @@ -166,50 +206,63 @@ msgstr "" "Iltimos, ushbu buyruqdan faqat boshqa xabarga javob ( reply ) sifatida foydalaning" "Men bu haqida chat ma'muriyatiga xabar beraman." -#: app/handlers/simple_admin.py:113 +#: aiogram_bot/handlers/simple_admin.py:157 msgid "[ALERT] User {user} is reported message in chat {chat}." msgstr "Diqqat. {user} foydalanuvchisi {chat} chatida xabar yubordi." -#: app/handlers/simple_admin.py:135 +#: aiogram_bot/handlers/simple_admin.py:179 msgid "This message is reported to chat administrators." msgstr "Chat ma\'muriyati ogohlantirildi." -#: app/handlers/simple_admin.py:148 +#: aiogram_bot/handlers/simple_admin.py:191 msgid "User {user} leave this chat..." msgstr "Foydalanuvchi {user} ushbu chatni tark etdi..." -#: app/handlers/superuser.py:25 +#: aiogram_bot/handlers/simple_admin.py:227 +msgid "Channel {channel} allowed in this chat" +msgstr "{channel} kanali chatda yozishga ruhsat berildi" + +#: aiogram_bot/handlers/superuser.py:25 msgid "Successful changed is_superuser to {is_superuser} for user {user}" msgstr "" "{user} foydalanuvchisi uchun is_superuser bayrog\'i {is_superuser}" ga muvaffaqiyatli yangilandi." - -#: app/handlers/superuser.py:30 +#: aiogram_bot/handlers/superuser.py:30 msgid "Failed to set is_superuser to {is_superuser} for user {user}" msgstr "" "{user} foydalanuvchisi uchun is_superuser-ni {is_superuser} ga o\'rnatib bo'lmadi" - -#: app/utils/chat_settings.py:24 +#: aiogram_bot/utils/chat_settings.py:29 msgid "Settings for chat {chat_title}" msgstr "{chat_title} chati uchun sozlamalar!" -#: app/utils/chat_settings.py:29 +#: aiogram_bot/utils/chat_settings.py:34 msgid "{status} Join filter" msgstr "{status} Join filtri" -#: app/utils/chat_settings.py:39 app/utils/chat_settings.py:77 +#: aiogram_bot/utils/chat_settings.py:44 +msgid "{status} Ban channels" +msgstr "{status} Kanallarni taqiqlash" + +#: aiogram_bot/utils/chat_settings.py:54 +msgid "{status} Delete channel messages" +msgstr "{status} Kanal xabarlarini o\'chirish" + +#: aiogram_bot/utils/chat_settings.py:64 aiogram_bot/utils/chat_settings.py:102 msgid "{flag} Language" msgstr "{flag} Til" -#: app/utils/chat_settings.py:49 app/utils/chat_settings.py:85 +#: aiogram_bot/utils/chat_settings.py:74 aiogram_bot/utils/chat_settings.py:110 msgid "Done" msgstr "Tayyor" -#: app/utils/chat_settings.py:62 +#: aiogram_bot/utils/chat_settings.py:87 msgid "Personal settings" msgstr "Shaxsiy sozlamalar" -#: app/utils/chat_settings.py:67 +#: aiogram_bot/utils/chat_settings.py:92 msgid "{status} Do not disturb" msgstr "{status} Bezovta qilmang" + +#~ msgid "Join filter re-configured" +#~ msgstr "Chatga kirish filtri qayta sozlandi"