From 27bfc352d43407f3f1cbecb6f123c8a3db659ad8 Mon Sep 17 00:00:00 2001 From: infosave2007 Date: Sat, 14 Feb 2026 18:23:57 +0300 Subject: [PATCH] feat: Add missing translations for protocol management UI and update protocol visibility --- ...7_add_protocol_management_translations.sql | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 migrations/057_add_protocol_management_translations.sql diff --git a/migrations/057_add_protocol_management_translations.sql b/migrations/057_add_protocol_management_translations.sql new file mode 100644 index 0000000..42b2d2a --- /dev/null +++ b/migrations/057_add_protocol_management_translations.sql @@ -0,0 +1,31 @@ +-- Add missing translations for protocol management UI (EN/RU) +INSERT INTO translations (locale, category, key_name, translation) VALUES +('en', 'protocols', 'management', 'Protocol Management'), +('ru', 'protocols', 'management', 'Управление протоколами'), +('en', 'protocols', 'management_description', 'Configure and manage VPN protocols'), +('ru', 'protocols', 'management_description', 'Настройка и управление VPN-протоколами'), +('en', 'common', 'active', 'Active'), +('ru', 'common', 'active', 'Активный'), +('en', 'common', 'inactive', 'Inactive'), +('ru', 'common', 'inactive', 'Неактивный'), +('en', 'protocols', 'add_protocol', 'Add Protocol'), +('ru', 'protocols', 'add_protocol', 'Добавить протокол'), +('en', 'common', 'settings', 'Settings'), +('ru', 'common', 'settings', 'Настройки'), +('en', 'protocols', 'available_protocols', 'Available Protocols'), +('ru', 'protocols', 'available_protocols', 'Доступные протоколы'), +('en', 'protocols', 'search_protocols', 'Search protocols'), +('ru', 'protocols', 'search_protocols', 'Поиск протоколов'), +('en', 'protocols', 'all_protocols', 'All Protocols'), +('ru', 'protocols', 'all_protocols', 'Все протоколы'), +('en', 'protocols', 'active_only', 'Active only'), +('ru', 'protocols', 'active_only', 'Только активные'), +('en', 'protocols', 'with_ai_generations', 'With AI generations'), +('ru', 'protocols', 'with_ai_generations', 'С AI-генерациями') +ON DUPLICATE KEY UPDATE translation = VALUES(translation); + +-- Hide protocols that should not be published +UPDATE protocols +SET is_active = 0 +WHERE slug IN ('cloak', 'openvpn', 'shadowsocks', 'wireguard', 'wireguard-standard') + OR name IN ('Cloak', 'OpenVPN', 'Shadowsocks', 'WireGuard', 'WireGuard Standard');