:globe_with_meridians:完善内部中文

This commit is contained in:
Amazing_DM
2020-05-07 13:37:19 +08:00
parent 635654336d
commit 577e0e01a7
4 changed files with 36 additions and 4 deletions

View File

@@ -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)

View File

@@ -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>

View File

@@ -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

Submodule modes updated: a9329cd3f1...314f2d14b4