revert transport error translations cuz they were dumb and also incorrect

This commit is contained in:
JohnCorby 2023-07-06 11:59:39 -07:00
parent 6e86ce8dda
commit cef539d178
3 changed files with 3 additions and 15 deletions

View File

@ -1,5 +1,4 @@
using Mirror; using System.Collections.Generic;
using System.Collections.Generic;
namespace QSB.Localization; namespace QSB.Localization;
@ -29,7 +28,6 @@ public class Translation
public string OK; public string OK;
public string ServerRefusedConnection; public string ServerRefusedConnection;
public string ClientDisconnectWithError; public string ClientDisconnectWithError;
public Dictionary<TransportError, string> TransportErrors;
public string QSBVersionMismatch; public string QSBVersionMismatch;
public string OWVersionMismatch; public string OWVersionMismatch;
public string DLCMismatch; public string DLCMismatch;

View File

@ -736,7 +736,7 @@ internal class MenuManager : MonoBehaviour, IAddComponentOnStart
} }
}; };
OpenInfoPopup(string.Format(QSBLocalization.Current.ClientDisconnectWithError, QSBLocalization.Current.TransportErrors[error], reason), QSBLocalization.Current.OK); OpenInfoPopup(string.Format(QSBLocalization.Current.ClientDisconnectWithError, reason), QSBLocalization.Current.OK);
} }
SetButtonActive(DisconnectButton, false); SetButtonActive(DisconnectButton, false);

View File

@ -22,17 +22,7 @@
"Connecting": "CONNECTING...", "Connecting": "CONNECTING...",
"OK": "OK", "OK": "OK",
"ServerRefusedConnection": "Server refused connection.\n{0}", "ServerRefusedConnection": "Server refused connection.\n{0}",
"ClientDisconnectWithError": "Client disconnected with error!\n{0}\nMore info: {1}", "ClientDisconnectWithError": "Client disconnected with error!\n{0}",
"TransportErrors": {
"DnsResolve": "Failed to resolve host name.",
"Refused": "Connection refused.",
"Timeout": "Connection timed out.",
"Congestion": "Congestion on transport.",
"InvalidReceive": "Error receiving message.",
"InvalidSend": "Error sending message.",
"ConnectionClosed": "Connection closed.",
"Unexpected": "Unexpected error."
},
"QSBVersionMismatch": "QSB version does not match. (Client:{0}, Server:{1})", "QSBVersionMismatch": "QSB version does not match. (Client:{0}, Server:{1})",
"OWVersionMismatch": "Outer Wilds version does not match. (Client:{0}, Server:{1})", "OWVersionMismatch": "Outer Wilds version does not match. (Client:{0}, Server:{1})",
"DLCMismatch": "DLC installation state does not match. (Client:{0}, Server:{1})", "DLCMismatch": "DLC installation state does not match. (Client:{0}, Server:{1})",