:lipstick:优化NTT测试结果

This commit is contained in:
Amazing_DM
2020-03-12 16:20:09 +08:00
parent 35eae6094e
commit bd0b3a6f2e
2 changed files with 9 additions and 1 deletions

View File

@@ -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");
}
}
}
}

View File

@@ -26,6 +26,7 @@
"Starting netfilter2 Service": "正在启动netfilter2服务",
"Starting dns2tcp Service": "正在启动dns2tcp服务",
"SetupBypass": "设置绕行规则",
"Test failed": "测试失败",
"Server": "服务器",
"Import Servers From Clipboard": "从剪贴板导入服务器",