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