Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/common/network.js
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | case 0: return wasConnected ? | ||||
translate("This is often caused by UDP port 20595 not being forwarded on the host side, by a firewall, or anti-virus software"); | translate("This is often caused by UDP port 20595 not being forwarded on the host side, by a firewall, or anti-virus software"); | ||||
case 1: return translate("The host has ended the game"); | case 1: return translate("The host has ended the game"); | ||||
case 2: return translate("Incorrect network protocol version"); | case 2: return translate("Incorrect network protocol version"); | ||||
case 3: return translate("Game is loading, please try again later"); | case 3: return translate("Game is loading, please try again later"); | ||||
case 4: return translate("Game has already started, no observers allowed"); | case 4: return translate("Game has already started, no observers allowed"); | ||||
case 5: return translate("You have been kicked"); | case 5: return translate("You have been kicked"); | ||||
case 6: return translate("You have been banned"); | case 6: return translate("You have been banned"); | ||||
case 7: return translate("Playername in use. If you were disconnected, retry in few seconds"); | case 7: return translate("Playername in use. If you were disconnected, retry in few seconds"); | ||||
case 8: return translate("Server full"); | case 8: return translate("Server full"); | ||||
case 9: return translate("Secure lobby authentication failed. Join via lobby"); | |||||
elexis: (Everytime I see these sentences not ending with a period here but receiving one later hurts my… | |||||
default: | default: | ||||
Done Inline ActionsDon't remove that case. elexis: Don't remove that case.
(Guess we should move those strings to C++ some day, so that we don't… | |||||
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 162 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
(Everytime I see these sentences not ending with a period here but receiving one later hurts my head. We should fix it right after the release.
(and I still don't see why I was made to revert that this not being a global array. Noone should have the computational power to add any kind of code here and complicate this needlessly).)