1
0
mirror of https://github.com/Ylianst/MeshCentralRouter synced 2026-01-03 00:43:14 +00:00

More work on internalization change.

This commit is contained in:
Ylian Saint-Hilaire
2021-06-01 15:50:05 -07:00
parent 1f16f9430f
commit 74c9deaca7
202 changed files with 780 additions and 350041 deletions

View File

@@ -133,8 +133,8 @@ namespace MeshCentralRouter
private void UpdateInfo() {
string msg = "";
if (state == -1) { msg = Properties.Resources.UnableToBindToLocalPort; }
else if (state == 0) { msg = Properties.Resources.Stopped2; }
if (state == -1) { msg = Translate.T(Properties.Resources.UnableToBindToLocalPort); }
else if (state == 0) { msg = Translate.T(Properties.Resources.Stopped2); }
else if (state == 1) {
if (remoteip == null)
{
@@ -142,8 +142,8 @@ namespace MeshCentralRouter
} else {
msg = "Port " + localport + " to " + remoteip + ":" + remoteport;
}
if (totalConnectCounter == 1) { msg += Properties.Resources.OneConnection; }
if (totalConnectCounter > 1) { msg += string.Format(Properties.Resources.ManyConnections, totalConnectCounter); }
if (totalConnectCounter == 1) { msg += Translate.T(Properties.Resources.OneConnection); }
if (totalConnectCounter > 1) { msg += string.Format(Translate.T(Properties.Resources.ManyConnections), totalConnectCounter); }
}
if (onStateMsgChanged != null) { onStateMsgChanged(msg); }
}