mirror of
https://github.com/Ylianst/MeshCentralRouter
synced 2025-12-16 08:13:25 +00:00
More work on internalization change.
This commit is contained in:
14
NodeClass.cs
14
NodeClass.cs
@@ -44,13 +44,13 @@ namespace MeshCentralRouter
|
||||
public string getStateString()
|
||||
{
|
||||
string status = "";
|
||||
if (mtype == 3) return Properties.Resources.Local;
|
||||
if ((conn & 1) != 0) { if (status.Length > 0) { status += ", "; } status += Properties.Resources.Agent; }
|
||||
if ((conn & 2) != 0) { if (status.Length > 0) { status += ", "; } status += Properties.Resources.CIRA; }
|
||||
if ((conn & 4) != 0) { if (status.Length > 0) { status += ", "; } status += Properties.Resources.AMT; }
|
||||
if ((conn & 8) != 0) { if (status.Length > 0) { status += ", "; } status += Properties.Resources.Relay; }
|
||||
if ((conn & 16) != 0) { if (status.Length > 0) { status += ", "; } status += Properties.Resources.MQTT; }
|
||||
if (status == "") { status = Properties.Resources.Offline; }
|
||||
if (mtype == 3) return Translate.T(Properties.Resources.Local);
|
||||
if ((conn & 1) != 0) { if (status.Length > 0) { status += ", "; } status += Translate.T(Properties.Resources.Agent); }
|
||||
if ((conn & 2) != 0) { if (status.Length > 0) { status += ", "; } status += Translate.T(Properties.Resources.CIRA); }
|
||||
if ((conn & 4) != 0) { if (status.Length > 0) { status += ", "; } status += Translate.T(Properties.Resources.AMT); }
|
||||
if ((conn & 8) != 0) { if (status.Length > 0) { status += ", "; } status += Translate.T(Properties.Resources.Relay); }
|
||||
if ((conn & 16) != 0) { if (status.Length > 0) { status += ", "; } status += Translate.T(Properties.Resources.MQTT); }
|
||||
if (status == "") { status = Translate.T(Properties.Resources.Offline); }
|
||||
return status;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user