Use brand variable in close confirmation message box (#429)

This commit is contained in:
Michael Telatynski 2022-10-18 13:43:30 +01:00 committed by GitHub
parent dc5fc7a2c1
commit ac088dd394
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -247,7 +247,9 @@ const warnBeforeExit = (event: Event, input: Input): void => {
if (shouldWarnBeforeExit && exitShortcutPressed) {
const shouldCancelCloseRequest = dialog.showMessageBoxSync(global.mainWindow, {
type: "question",
buttons: [_t("Cancel"), _t("Close Element")],
buttons: [_t("Cancel"), _t("Close %(brand)s", {
brand: global.vectorConfig.brand || 'Element',
})],
message: _t("Are you sure you want to quit?"),
defaultId: 1,
cancelId: 0,

View File

@ -1,6 +1,6 @@
{
"Cancel": "Cancel",
"Close Element": "Close Element",
"Close %(brand)s": "Close %(brand)s",
"Are you sure you want to quit?": "Are you sure you want to quit?",
"Show/Hide": "Show/Hide",
"Quit": "Quit",