Refactor broadcast and user logs messages for localization support

- Updated the broadcast confirmation message to utilize localization for dynamic content, enhancing multilingual support.
- Modified user logs display to incorporate localization for the title, improving consistency across languages.
- Added new localization entries in both English and Russian for better user experience and clarity.
This commit is contained in:
machka-pasla
2025-08-28 22:03:48 +03:00
parent 85bf0fb6fd
commit 24cf193f3c
4 changed files with 39 additions and 19 deletions
+3 -1
View File
@@ -420,7 +420,9 @@ async def handle_view_user_logs(callback: types.CallbackQuery, user: User,
), show_alert=True)
return
logs_text_parts = [f"📜 <b>Последние действия пользователя {user.user_id}:</b>\n"]
logs_text_parts = [
f"{_('admin_user_recent_actions_title', default='📜 Последние действия пользователя {user_id}:', user_id=user.user_id)}\n"
]
for log in logs:
timestamp = log.timestamp.strftime('%Y-%m-%d %H:%M') if log.timestamp else 'N/A'