From fc48cd7a09ecea4e384506d1ba668e22e62e6623 Mon Sep 17 00:00:00 2001 From: machka-pasla Date: Sun, 3 Aug 2025 22:06:22 +0300 Subject: [PATCH] Update inline system statistics localization for clarity and consistency - Revised the inline system statistics description in both English and Russian to include updated terminology and additional metrics, enhancing user understanding. - Ensured consistency across localization files by aligning the descriptions in both languages. --- bot/handlers/inline_mode.py | 4 +++- locales/en.json | 2 +- locales/ru.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bot/handlers/inline_mode.py b/bot/handlers/inline_mode.py index 9355b0c..93528cb 100644 --- a/bot/handlers/inline_mode.py +++ b/bot/handlers/inline_mode.py @@ -329,7 +329,9 @@ async def create_system_stats_result(session: AsyncSession, i18n_instance, lang: ), description=_( "inline_system_description", - default="Панель: онлайн, ноды, трафик" + default="🟢 Онлайн: {online}, 📊 Активных: {active}", + online=online_now, + active=active_users ), input_message_content=InputTextMessageContent( message_text=stats_text, diff --git a/locales/en.json b/locales/en.json index 9b5d0eb..a7d5717 100644 --- a/locales/en.json +++ b/locales/en.json @@ -452,7 +452,7 @@ "inline_financial_title": "Financial statistics", "inline_financial_description": "Today: {today} RUB", "inline_system_title": "System statistics", - "inline_system_description": "Online: {online}, Offline: {offline}", + "inline_system_description": "🟢 Online: {online}, 📊 Active: {active}", "inline_admin_help_title": "Commands help", "inline_admin_help_description": "Available commands: ref, stat, financial, system", "inline_user_help_title": "Commands help", diff --git a/locales/ru.json b/locales/ru.json index d59c569..438d89e 100644 --- a/locales/ru.json +++ b/locales/ru.json @@ -453,7 +453,7 @@ "inline_financial_title": "Финансовая статистика", "inline_financial_description": "Сегодня: {today} RUB", "inline_system_title": "Системная статистика", - "inline_system_description": "Онлайн: {online}, Офлайн: {offline}", + "inline_system_description": "🟢 Онлайн: {online}, 📊 Активных: {active}", "inline_admin_help_title": "Помощь по командам", "inline_admin_help_description": "Доступны команды: реф, стат, финансы, система", "inline_user_help_title": "Помощь по командам",