From bd0b3a6f2ea52d0d02b0ff37565d4edf3de82dcc Mon Sep 17 00:00:00 2001 From: Amazing_DM Date: Thu, 12 Mar 2020 16:20:09 +0800 Subject: [PATCH] =?UTF-8?q?:lipstick:=E4=BC=98=E5=8C=96NTT=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Netch/Forms/MainForm.cs | 9 ++++++++- Netch/Resources/zh-CN | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Netch/Forms/MainForm.cs b/Netch/Forms/MainForm.cs index e82cc9de..0b4ff10b 100644 --- a/Netch/Forms/MainForm.cs +++ b/Netch/Forms/MainForm.cs @@ -1225,7 +1225,14 @@ namespace Netch.Forms } public void NatTypeStatusText(string text) { - NatTypeStatusLabel.Text = "NatType:" + text; + if (!string.IsNullOrWhiteSpace(text)) + { + NatTypeStatusLabel.Text = "NAT" + Utils.i18N.Translate(": ") + text; + } + else + { + NatTypeStatusLabel.Text = "NAT" + Utils.i18N.Translate(": ") + Utils.i18N.Translate("Test failed"); + } } } } diff --git a/Netch/Resources/zh-CN b/Netch/Resources/zh-CN index 5d5a581f..415c27b9 100644 --- a/Netch/Resources/zh-CN +++ b/Netch/Resources/zh-CN @@ -26,6 +26,7 @@ "Starting netfilter2 Service": "正在启动netfilter2服务", "Starting dns2tcp Service": "正在启动dns2tcp服务", "SetupBypass": "设置绕行规则", + "Test failed": "测试失败", "Server": "服务器", "Import Servers From Clipboard": "从剪贴板导入服务器",