Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/messages.js
Show First 20 Lines • Show All 723 Lines • ▼ Show 20 Lines | function onNetworkOutOfSync(msg) | ||||
messageBox( | messageBox( | ||||
600, 280, | 600, 280, | ||||
txt.join("\n"), | txt.join("\n"), | ||||
translate("Out of Sync") | translate("Out of Sync") | ||||
); | ); | ||||
} | } | ||||
function onReplayOutOfSync() | function onReplayOutOfSync(msg) | ||||
{ | { | ||||
messageBox( | messageBox( | ||||
500, 140, | 500, 140, | ||||
translate("Out-Of-Sync error!") + "\n" + | sprintf(translate("Out-Of-Sync error on turn %(turn)s."), { | ||||
"turn": msg.turn | |||||
}) + "\n" + | |||||
// Translation: This is shown if replay is out of sync | // Translation: This is shown if replay is out of sync | ||||
translateWithContext("Out-Of-Sync", "The current game state is different from the original game state."), | translateWithContext("Out-Of-Sync", "The current game state is different from the original game state."), | ||||
translate("Out of Sync") | translate("Out of Sync") | ||||
); | ); | ||||
} | } | ||||
function handlePlayerAssignmentsMessage(message) | function handlePlayerAssignmentsMessage(message) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 552 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator