From c12c3b14104263067c7d2d3e4c9608c0a0f8055e Mon Sep 17 00:00:00 2001 From: bir Date: Thu, 16 Jan 2025 14:07:07 +0100 Subject: [PATCH] Add missing translation in client --- src/common/gui/RenderLoginInfoLinks.ts | 2 +- src/common/misc/ErrorReporter.ts | 2 +- src/common/misc/TranslationKey.ts | 4 ++++ src/common/misc/passwords/PasswordGeneratorDialog.ts | 2 +- src/common/settings/AboutDialog.ts | 2 +- src/mail-app/translations/de.ts | 4 ++++ src/mail-app/translations/de_sie.ts | 4 ++++ src/mail-app/translations/en.ts | 4 ++++ 8 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/common/gui/RenderLoginInfoLinks.ts b/src/common/gui/RenderLoginInfoLinks.ts index 1074f4b9a3f0..2550071c75b7 100644 --- a/src/common/gui/RenderLoginInfoLinks.ts +++ b/src/common/gui/RenderLoginInfoLinks.ts @@ -63,7 +63,7 @@ function showVersionDropdown(e: MouseEvent) { createDropdown({ lazyButtons: () => [ { - label: () => "Get logs", + label: () => lang.get("getLogs_action"), click: () => showLogsDialog(), }, ], diff --git a/src/common/misc/ErrorReporter.ts b/src/common/misc/ErrorReporter.ts index 63dbccf0729d..732d7c7400cd 100644 --- a/src/common/misc/ErrorReporter.ts +++ b/src/common/misc/ErrorReporter.ts @@ -81,7 +81,7 @@ async function showErrorOverlay(): Promise<{ decision: "send" | "cancel"; ignore }, [ { - label: () => "Send report", + label: () => lang.get("sendReport_label"), click: () => resolve("send"), type: ButtonType.Secondary, }, diff --git a/src/common/misc/TranslationKey.ts b/src/common/misc/TranslationKey.ts index ddf8029212b4..f878a94f57b8 100644 --- a/src/common/misc/TranslationKey.ts +++ b/src/common/misc/TranslationKey.ts @@ -1859,6 +1859,10 @@ export type TranslationKeyType = | "yourMessage_label" | "you_label" | "emptyString_msg" + | "getLogs_action" + | "showWelcomeDialog_action" + | "sendReport_label" + | "passphrase_label" // Put in temporarily | "localAdminGroup_label" | "assignAdminRightsToLocallyAdministratedUserError_msg" diff --git a/src/common/misc/passwords/PasswordGeneratorDialog.ts b/src/common/misc/passwords/PasswordGeneratorDialog.ts index 6a2e878c5df0..0dc380d530b0 100644 --- a/src/common/misc/passwords/PasswordGeneratorDialog.ts +++ b/src/common/misc/passwords/PasswordGeneratorDialog.ts @@ -39,7 +39,7 @@ export async function showPasswordGeneratorDialog(): Promise { updateAction() const dialog = Dialog.showActionDialog({ - title: () => "Passphrase", + title: () => lang.get("passphrase_label"), child: { view: () => m(PasswordGeneratorDialog, { diff --git a/src/common/settings/AboutDialog.ts b/src/common/settings/AboutDialog.ts index ddd3a253763f..d4b90204b797 100644 --- a/src/common/settings/AboutDialog.ts +++ b/src/common/settings/AboutDialog.ts @@ -51,7 +51,7 @@ export class AboutDialog implements Component { ? m( "", m(Button, { - label: () => "Show welcome dialog", + label: () => lang.get("showWelcomeDialog_action"), type: ButtonType.Primary, click: vnode.attrs.onShowSetupWizard, }), diff --git a/src/mail-app/translations/de.ts b/src/mail-app/translations/de.ts index 711749f91c4e..e8bc3501ca0c 100644 --- a/src/mail-app/translations/de.ts +++ b/src/mail-app/translations/de.ts @@ -1879,6 +1879,10 @@ export default { "yourFolders_action": "DEINE ORDNER", "yourMessage_label": "Deine Nachricht", "you_label": "Du", + "getLogs_action": "Get logs", + "showWelcomeDialog_action": "Show welcome dialog", + "sendReport_label": "Send report", + "passphrase_label": "Passphrase", // Put in temporarily "localAdminGroup_label": "Local admin group", "assignAdminRightsToLocallyAdministratedUserError_msg": "You can't assign global admin rights to a locally administrated user.", diff --git a/src/mail-app/translations/de_sie.ts b/src/mail-app/translations/de_sie.ts index b99ef0bc093f..feb50fa6edee 100644 --- a/src/mail-app/translations/de_sie.ts +++ b/src/mail-app/translations/de_sie.ts @@ -1879,6 +1879,10 @@ export default { "yourFolders_action": "Ihre ORDNER", "yourMessage_label": "Ihre Nachricht", "you_label": "Sie", + "getLogs_action": "Get logs", + "showWelcomeDialog_action": "Show welcome dialog", + "sendReport_label": "Send report", + "passphrase_label": "Passphrase", // Put in temporarily "localAdminGroup_label": "Local admin group", "assignAdminRightsToLocallyAdministratedUserError_msg": "You can't assign global admin rights to a locally administrated user.", diff --git a/src/mail-app/translations/en.ts b/src/mail-app/translations/en.ts index f5da4d22c3d5..85eedc577fcf 100644 --- a/src/mail-app/translations/en.ts +++ b/src/mail-app/translations/en.ts @@ -1875,6 +1875,10 @@ export default { "yourFolders_action": "YOUR FOLDERS", "yourMessage_label": "Your message", "you_label": "You", + "getLogs_action": "Get logs", + "showWelcomeDialog_action": "Show welcome dialog", + "sendReport_label": "Send report", + "passphrase_label": "Passphrase", // Put in temporarily "localAdminGroup_label": "Local admin group", "assignAdminRightsToLocallyAdministratedUserError_msg": "You can't assign global admin rights to a locally administrated user.",