Ticket #3524: 3524.diff
File 3524.diff, 3.7 KB (added by , 9 years ago) |
---|
-
binaries/data/mods/public/gui/replaymenu/replay_actions.js
108 108 var replay = g_ReplaysFiltered[selected]; 109 109 110 110 // Show confirmation message 111 var btCaptions = [translate(" Yes"), translate("No")];112 var btCode = [ function() { reallyDeleteReplay(replay.directory); }, null];111 var btCaptions = [translate("No"), translate("Yes")]; 112 var btCode = [null, function() { reallyDeleteReplay(replay.directory); }]; 113 113 114 114 var title = translate("Delete replay"); 115 115 var question = translate("Are you sure to delete this replay permanently?") + "\n" + escapeText(replay.file); -
binaries/data/mods/public/gui/savedgames/load.js
46 46 if (!sameEngineVersion || !sameSavegameVersion || !sameMods) 47 47 { 48 48 // version not compatible ... ask for confirmation 49 var btCaptions = [translate(" Yes"), translate("No")];50 var btCode = [ function(){ reallyLoadGame(gameId); }, init];49 var btCaptions = [translate("No"), translate("Yes")]; 50 var btCode = [init, function(){ reallyLoadGame(gameId); }]; 51 51 var message = translate("This saved game may not be compatible:"); 52 52 53 53 if (!sameEngineVersion) … … 120 120 var gameID = gameSelection.list_data[gameSelection.selected]; 121 121 122 122 // Ask for confirmation 123 var btCaptions = [translate(" Yes"), translate("No")];124 var btCode = [ function(){ reallyDeleteGame(gameID); }, null];123 var btCaptions = [translate("No"), translate("Yes")]; 124 var btCode = [null, function(){ reallyDeleteGame(gameID); }]; 125 125 messageBox(500, 200, sprintf(translate("\"%(label)s\""), { label: gameLabel }) + "\n" + translate("Saved game will be permanently deleted, are you sure?"), translate("DELETE"), 0, btCaptions, btCode); 126 126 } 127 127 -
binaries/data/mods/public/gui/savedgames/save.js
56 56 if (gameSelection.selected != -1) 57 57 { 58 58 // Ask for confirmation 59 var btCaptions = [translate(" Yes"), translate("No")];60 var btCode = [ function(){ reallySaveGame(name, desc, false); }, null];59 var btCaptions = [translate("No"), translate("Yes")]; 60 var btCode = [null, function(){ reallySaveGame(name, desc, false); }]; 61 61 messageBox(500, 200, sprintf(translate("\"%(label)s\""), { label: gameLabel }) + "\n" + translate("Saved game will be permanently overwritten, are you sure?"), translate("OVERWRITE SAVE"), 0, btCaptions, btCode); 62 62 } 63 63 else -
binaries/data/mods/public/gui/session/session.js
566 566 closeMenu(); 567 567 closeOpenDialogs(); 568 568 pauseGame(); 569 var btCaptions = [translateWithContext("replayFinished", " Yes"), translateWithContext("replayFinished", "No")];569 var btCaptions = [translateWithContext("replayFinished", "No"), translateWithContext("replayFinished", "Yes")]; 570 570 var btCode = [leaveGame, resumeGame]; 571 571 messageBox(400, 200, translateWithContext("replayFinished", "The replay has finished. Do you want to quit?"), translateWithContext("replayFinished","Confirmation"), 0, btCaptions, btCode); 572 572 }