From 726f419172b73f1d76a44c2c26cf1cad3a8af9ce Mon Sep 17 00:00:00 2001 From: yuluo Date: Sat, 13 Apr 2024 12:44:06 +0800 Subject: [PATCH] add: Added default prompts for agency agreement and some multi-language translations --- flutter/lib/desktop/pages/desktop_setting_page.dart | 4 +++- src/lang/cn.rs | 1 + src/lang/en.rs | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/flutter/lib/desktop/pages/desktop_setting_page.dart b/flutter/lib/desktop/pages/desktop_setting_page.dart index 0f2489610..809c03d53 100644 --- a/flutter/lib/desktop/pages/desktop_setting_page.dart +++ b/flutter/lib/desktop/pages/desktop_setting_page.dart @@ -2051,7 +2051,9 @@ void changeSocks5Proxy() async { Expanded( child: TextField( decoration: InputDecoration( - errorText: proxyMsg.isNotEmpty ? proxyMsg : null), + errorText: proxyMsg.isNotEmpty ? proxyMsg : null, + hintText: translate("Default proxy protocol is socks5"), + ), controller: proxyController, autofocus: true, ), diff --git a/src/lang/cn.rs b/src/lang/cn.rs index 323220435..8a0cf1e38 100644 --- a/src/lang/cn.rs +++ b/src/lang/cn.rs @@ -240,6 +240,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Invalid folder name", "无效文件夹名称"), ("Socks5 Proxy", "Socks5 代理"), ("Socks5/Http(s) Proxy", "Socks5/Http(s) 代理"), + ("Default proxy protocol is socks5", "默认代理协议为socks5"), ("Discovered", "已发现"), ("install_daemon_tip", "为了开机启动,请安装系统服务。"), ("Remote ID", "远程 ID"), diff --git a/src/lang/en.rs b/src/lang/en.rs index 57b9b8ace..5d7130429 100644 --- a/src/lang/en.rs +++ b/src/lang/en.rs @@ -61,6 +61,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> = ("Remove from Favorites", "Remove from favorites"), ("Socks5 Proxy", "Socks5 proxy"), ("Socks5/Http(s) Proxy", "Socks5/Http(s) proxy"), + ("Default proxy protocol is socks5", "Default proxy protocol is socks5"), ("install_daemon_tip", "For starting on boot, you need to install system service."), ("Are you sure to close the connection?", "Are you sure you want to close the connection?"), ("One-Finger Tap", "One-finger tap"),