Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/common/network.js
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | function getDisconnectReason(id, wasConnected) | ||||
case 8: return translate("Server full."); | case 8: return translate("Server full."); | ||||
case 9: return translate("Secure lobby authentication failed. Join via lobby."); | case 9: return translate("Secure lobby authentication failed. Join via lobby."); | ||||
case 10: return translate("Error: Server failed to allocate a unique client identifier."); | case 10: return translate("Error: Server failed to allocate a unique client identifier."); | ||||
case 11: return translate("Error: Client commands were ready for an unexpected game turn."); | case 11: return translate("Error: Client commands were ready for an unexpected game turn."); | ||||
case 12: return translate("Error: Client simulated an unexpected game turn."); | case 12: return translate("Error: Client simulated an unexpected game turn."); | ||||
case 13: return translate("Password is invalid."); | case 13: return translate("Password is invalid."); | ||||
case 14: return translate("Could not find an unused port for the enet STUN client."); | case 14: return translate("Could not find an unused port for the enet STUN client."); | ||||
case 15: return translate("Could not find the STUN endpoint."); | case 15: return translate("Could not find the STUN endpoint."); | ||||
case 16: return translate("Invalid connection address."); | |||||
case 17: return translate("The hoster's Access Control List does not allow you to join this game. Ask the hoster what is necessary for you to change in order to be allowed to join the game."); | |||||
default: | default: | ||||
warn("Unknown disconnect-reason ID received: " + id); | warn("Unknown disconnect-reason ID received: " + id); | ||||
return sprintf(translate("\\[Invalid value %(id)s]"), { "id": id }); | return sprintf(translate("\\[Invalid value %(id)s]"), { "id": id }); | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* Show the disconnect reason in a message box. | * Show the disconnect reason in a message box. | ||||
▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator