From 39d5fd1856e280490a2bbdc8a3ae4be21b623da7 Mon Sep 17 00:00:00 2001 From: VAQYBIN Date: Tue, 20 Jan 2026 01:44:22 +0500 Subject: [PATCH] =?UTF-8?q?chore(promo):=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=BB=D0=BE=D0=BA=D0=B0=D0=BB=D0=B8?= =?UTF-8?q?=D0=B7=D0=B0=D1=86=D0=B8=D1=8F=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA?= =?UTF-8?q?=D0=B8=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F?= =?UTF-8?q?=20=D0=BF=D1=80=D0=BE=D1=86=D0=B5=D0=BD=D1=82=D0=B0=20=D1=81?= =?UTF-8?q?=D0=BA=D0=B8=D0=B4=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot/handlers/admin/promo/manage.py | 2 +- locales/en.json | 1 + locales/ru.json | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bot/handlers/admin/promo/manage.py b/bot/handlers/admin/promo/manage.py index c90b432..3a90c20 100644 --- a/bot/handlers/admin/promo/manage.py +++ b/bot/handlers/admin/promo/manage.py @@ -415,7 +415,7 @@ async def promo_edit_select_handler(callback: types.CallbackQuery, i18n_data: di builder = InlineKeyboardBuilder() # Show appropriate edit option based on type if promo_type == "discount": - builder.row(InlineKeyboardButton(text="💰 Edit Discount %", callback_data=f"promo_edit_field:discount_percentage:{promo_id}")) + builder.row(InlineKeyboardButton(text=_("admin_promo_edit_discount_percentage"), callback_data=f"promo_edit_field:discount_percentage:{promo_id}")) else: builder.row(InlineKeyboardButton(text=_("admin_promo_edit_bonus_days"), callback_data=f"promo_edit_field:bonus_days:{promo_id}")) diff --git a/locales/en.json b/locales/en.json index 85a0095..d6a3b9f 100644 --- a/locales/en.json +++ b/locales/en.json @@ -214,6 +214,7 @@ "admin_promo_edit_success": "Promo code updated successfully.", "admin_promo_invalid_input": "Invalid input, please try again.", "admin_promo_edit_bonus_days": "🎁 Bonus Days", + "admin_promo_edit_discount_percentage": "💰 Discount %", "admin_promo_edit_max_activations": "🔢 Max Activations", "admin_promo_edit_validity": "⏰ Validity", "admin_ban_user_prompt": "Enter user ID or @username to ban:", diff --git a/locales/ru.json b/locales/ru.json index fc5aac1..a9de522 100644 --- a/locales/ru.json +++ b/locales/ru.json @@ -224,6 +224,7 @@ "admin_promo_edit_success": "Промокод успешно обновлен.", "admin_promo_invalid_input": "Неверный ввод, попробуйте еще раз.", "admin_promo_edit_bonus_days": "🎁 Бонусные дни", + "admin_promo_edit_discount_percentage": "💰 Процент скидки", "admin_promo_edit_max_activations": "🔢 Макс. активации", "admin_promo_edit_validity": "⏰ Срок действия", "admin_ban_user_prompt": "Введите ID или @username пользователя для блокировки:",