mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 23:44:59 +01:00
Use brand variable in close confirmation message box (#429)
This commit is contained in:
parent
dc5fc7a2c1
commit
ac088dd394
@ -247,7 +247,9 @@ const warnBeforeExit = (event: Event, input: Input): void => {
|
|||||||
if (shouldWarnBeforeExit && exitShortcutPressed) {
|
if (shouldWarnBeforeExit && exitShortcutPressed) {
|
||||||
const shouldCancelCloseRequest = dialog.showMessageBoxSync(global.mainWindow, {
|
const shouldCancelCloseRequest = dialog.showMessageBoxSync(global.mainWindow, {
|
||||||
type: "question",
|
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?"),
|
message: _t("Are you sure you want to quit?"),
|
||||||
defaultId: 1,
|
defaultId: 1,
|
||||||
cancelId: 0,
|
cancelId: 0,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"Cancel": "Cancel",
|
"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?",
|
"Are you sure you want to quit?": "Are you sure you want to quit?",
|
||||||
"Show/Hide": "Show/Hide",
|
"Show/Hide": "Show/Hide",
|
||||||
"Quit": "Quit",
|
"Quit": "Quit",
|
||||||
|
Loading…
Reference in New Issue
Block a user