Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup_mp/gamesetup_mp.js
Show First 20 Lines • Show All 159 Lines • ▼ Show 20 Lines | |||||
function getConnectionFailReason(reason) | function getConnectionFailReason(reason) | ||||
{ | { | ||||
switch (reason) | switch (reason) | ||||
{ | { | ||||
case "not_server": return translate("Server is not running."); | case "not_server": return translate("Server is not running."); | ||||
case "invalid_password": return translate("Password is invalid."); | case "invalid_password": return translate("Password is invalid."); | ||||
case "banned": return translate("You have been banned."); | case "banned": return translate("You have been banned."); | ||||
case "local_ip_failed": return translate("Failed to get local IP of the server (it was assumed to be on the same network)."); | |||||
default: | default: | ||||
warn("Unknown connection failure reason: " + reason); | warn("Unknown connection failure reason: " + reason); | ||||
return sprintf(translate("\\[Invalid value %(reason)s]"), { "reason": reason }); | return sprintf(translate("\\[Invalid value %(reason)s]"), { "reason": reason }); | ||||
} | } | ||||
} | } | ||||
function reportConnectionFail(reason) | function reportConnectionFail(reason) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 296 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator