mirror of
https://github.com/netchx/netch.git
synced 2026-04-15 21:03:23 +08:00
:globe_with_meridians:完善内部中文
This commit is contained in:
@@ -173,7 +173,7 @@ namespace Netch.Forms
|
||||
|
||||
if (splited.Length >= 1)
|
||||
{
|
||||
mode.Remark = splited[0].Trim();
|
||||
mode.Remark = Utils.i18N.Translate(splited[0].Trim());
|
||||
}
|
||||
|
||||
if (splited.Length >= 2)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
|
||||
namespace Netch.Models
|
||||
{
|
||||
@@ -41,7 +42,31 @@ namespace Netch.Models
|
||||
/// <returns>备注</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("[{0}] {1}", Type + 1, Remark);
|
||||
if (CultureInfo.CurrentCulture.Name == "zh-CN")
|
||||
{
|
||||
string Stype;
|
||||
if (Type == 0)
|
||||
{
|
||||
Stype = "[进程模式] ";
|
||||
}
|
||||
else if (Type == 1)
|
||||
{
|
||||
Stype = "[TAP黑名单模式] ";
|
||||
}
|
||||
else if (Type == 2)
|
||||
{
|
||||
Stype = "[TAP白名单模式] ";
|
||||
}
|
||||
else
|
||||
{
|
||||
Stype = "";
|
||||
}
|
||||
return string.Format("{0}{1}", Stype, Remark);
|
||||
}
|
||||
else
|
||||
{
|
||||
return string.Format("[{0}] {1}", Type + 1, Remark);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -180,5 +180,12 @@
|
||||
"None": "无",
|
||||
|
||||
"Show": "显示",
|
||||
"Exit": "退出"
|
||||
"Exit": "退出",
|
||||
|
||||
"Bypass LAN": "网页代理-绕过局域网",
|
||||
"Bypass LAN (Non System Proxy)": "网页代理-绕过局域网(不设置系统代理)",
|
||||
"Bypass LAN (TUN/TAP)": "全局模式-绕过局域网(TUN-TAP)",
|
||||
"Bypass LAN and China": "网页代理-绕过局域网和中国大陆",
|
||||
"Bypass LAN and China (Non System Proxy)": "网页代理-绕过局域网和中国大陆 (不设置系统代理)",
|
||||
"Bypass LAN and China (TUN/TAP)": "全局模式-绕过局域网和中国大陆(TUN-TAP)"
|
||||
}
|
||||
2
modes
2
modes
Submodule modes updated: a9329cd3f1...314f2d14b4
Reference in New Issue
Block a user