add: Added default prompts for agency agreement and some multi-language translations

This commit is contained in:
yuluo
2024-04-13 12:44:06 +08:00
parent a8c843a0c4
commit 726f419172
3 changed files with 5 additions and 1 deletions

View File

@@ -2051,7 +2051,9 @@ void changeSocks5Proxy() async {
Expanded( Expanded(
child: TextField( child: TextField(
decoration: InputDecoration( decoration: InputDecoration(
errorText: proxyMsg.isNotEmpty ? proxyMsg : null), errorText: proxyMsg.isNotEmpty ? proxyMsg : null,
hintText: translate("Default proxy protocol is socks5"),
),
controller: proxyController, controller: proxyController,
autofocus: true, autofocus: true,
), ),

View File

@@ -240,6 +240,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Invalid folder name", "无效文件夹名称"), ("Invalid folder name", "无效文件夹名称"),
("Socks5 Proxy", "Socks5 代理"), ("Socks5 Proxy", "Socks5 代理"),
("Socks5/Http(s) Proxy", "Socks5/Http(s) 代理"), ("Socks5/Http(s) Proxy", "Socks5/Http(s) 代理"),
("Default proxy protocol is socks5", "默认代理协议为socks5"),
("Discovered", "已发现"), ("Discovered", "已发现"),
("install_daemon_tip", "为了开机启动,请安装系统服务。"), ("install_daemon_tip", "为了开机启动,请安装系统服务。"),
("Remote ID", "远程 ID"), ("Remote ID", "远程 ID"),

View File

@@ -61,6 +61,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Remove from Favorites", "Remove from favorites"), ("Remove from Favorites", "Remove from favorites"),
("Socks5 Proxy", "Socks5 proxy"), ("Socks5 Proxy", "Socks5 proxy"),
("Socks5/Http(s) Proxy", "Socks5/Http(s) 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."), ("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?"), ("Are you sure to close the connection?", "Are you sure you want to close the connection?"),
("One-Finger Tap", "One-finger tap"), ("One-Finger Tap", "One-finger tap"),