Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/message_box/QuitConfirmation.js
class QuitConfirmation extends SessionMessageBox | class QuitConfirmation extends SessionMessageBox | |||||||||
{ | { | |||||||||
} | } | |||||||||
QuitConfirmation.prototype.Title = | QuitConfirmation.prototype.Title = | |||||||||
translate("Confirmation"); | translate("Confirmation"); | |||||||||
QuitConfirmation.prototype.Caption = | QuitConfirmation.prototype.Caption = | |||||||||
translate("Are you sure you want to quit?"); | translate("Game has finished, what do you want to do?"); | |||||||||
FreagarachUnsubmitted Done Inline Actions
Freagarach: | ||||||||||
QuitConfirmation.prototype.Buttons = | QuitConfirmation.prototype.Buttons = | |||||||||
[ | [ | |||||||||
{ | { | |||||||||
"caption": translate("No") | "caption": translate("Stay") | |||||||||
Done Inline ActionsYou'll need context here. (And below possible also.) Freagarach: You'll need context here. (And below possible also.) | ||||||||||
Done Inline ActionsSorry for saying something different now, but IIRC in these kind of situations we prefer something like: // Translation: Shown when about to leave a match. "caption": translate("Stay"); See discussion at D3491#154257. I'm (still) not very familiar with translations and what to use when, so perhaps more people want to give their insights. Freagarach: Sorry for saying something different now, but IIRC in these kind of situations we prefer… | ||||||||||
}, | }, | |||||||||
{ | { | |||||||||
"caption": translate("Yes"), | "caption": translate("Quit and View Summary"), | |||||||||
Done Inline Actions"caption": translate("Summary"), nwtour: "caption": translate("Summary"), | ||||||||||
"onPress": endGame | "onPress": () => { endGame(true); } | |||||||||
}, | ||||||||||
{ | ||||||||||
"caption": translate("Quit"), | ||||||||||
"onPress": () => { endGame(false); } | ||||||||||
} | } | |||||||||
]; | ]; |
Wildfire Games · Phabricator