From b454f3c98bb011b1fcbf400f05773131ac15efb8 Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Mon, 10 Aug 2026 09:19:01 +0800 Subject: [PATCH] Restore missing Hysteria server translations Signed-off-by: Loren Eteval --- Furious/Backends/Hysteria1/Protocols.py | 9 +++++++++ Furious/Backends/Hysteria2/Protocols.py | 9 +++++++++ Furious/Externals/GenTranslation.py | 16 ++++++++++++++++ 3 files changed, 34 insertions(+) diff --git a/Furious/Backends/Hysteria1/Protocols.py b/Furious/Backends/Hysteria1/Protocols.py index d530603c..7fd49936 100644 --- a/Furious/Backends/Hysteria1/Protocols.py +++ b/Furious/Backends/Hysteria1/Protocols.py @@ -36,6 +36,15 @@ import copy __all__ = ['HYSTERIA1_PROTOCOL_HANDLERS'] +def _placeholder(x): + return x + + +_ = _placeholder + +_TRANSLATABLE = (_('Add Hysteria1 Server...'),) + + class Hysteria1ProtocolHandler(ProtocolHandler): """Own Hysteria 1 URI, mapping, validation, and export behavior.""" diff --git a/Furious/Backends/Hysteria2/Protocols.py b/Furious/Backends/Hysteria2/Protocols.py index a878745c..0289025e 100644 --- a/Furious/Backends/Hysteria2/Protocols.py +++ b/Furious/Backends/Hysteria2/Protocols.py @@ -36,6 +36,15 @@ import copy __all__ = ['HYSTERIA2_PROTOCOL_HANDLERS'] +def _placeholder(x): + return x + + +_ = _placeholder + +_TRANSLATABLE = (_('Add Hysteria2 Server...'),) + + class Hysteria2ProtocolHandler(ProtocolHandler): """Own Hysteria 2 URI, mapping, validation, and export behavior.""" diff --git a/Furious/Externals/GenTranslation.py b/Furious/Externals/GenTranslation.py index ef89d50a..5878398e 100644 --- a/Furious/Externals/GenTranslation.py +++ b/Furious/Externals/GenTranslation.py @@ -2151,6 +2151,22 @@ TRANSLATION = { "ZH": "添加Trojan服务器...", "isReviewed": "True" }, + "Add Hysteria1 Server...": { + "source": [ + "Furious.Backends.Hysteria1.Protocols" + ], + "RU": "Добавить сервер Hysteria 1...", + "ZH": "添加Hysteria1服务器...", + "isReviewed": "True" + }, + "Add Hysteria2 Server...": { + "source": [ + "Furious.Backends.Hysteria2.Protocols" + ], + "RU": "Добавить сервер Hysteria 2...", + "ZH": "添加Hysteria2服务器...", + "isReviewed": "True" + }, "Add SOCKS Server...": { "source": [ "Furious.Backends.Xray.Protocols"