Skip to content

Commit

Permalink
Add missing translation in client
Browse files Browse the repository at this point in the history
  • Loading branch information
BijinDev committed Jan 16, 2025
1 parent c6e6b22 commit c12c3b1
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/common/gui/RenderLoginInfoLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function showVersionDropdown(e: MouseEvent) {
createDropdown({
lazyButtons: () => [
{
label: () => "Get logs",
label: () => lang.get("getLogs_action"),
click: () => showLogsDialog(),
},
],
Expand Down
2 changes: 1 addition & 1 deletion src/common/misc/ErrorReporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
4 changes: 4 additions & 0 deletions src/common/misc/TranslationKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/common/misc/passwords/PasswordGeneratorDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export async function showPasswordGeneratorDialog(): Promise<string> {
updateAction()

const dialog = Dialog.showActionDialog({
title: () => "Passphrase",
title: () => lang.get("passphrase_label"),
child: {
view: () =>
m(PasswordGeneratorDialog, {
Expand Down
2 changes: 1 addition & 1 deletion src/common/settings/AboutDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class AboutDialog implements Component<AboutDialogAttrs> {
? m(
"",
m(Button, {
label: () => "Show welcome dialog",
label: () => lang.get("showWelcomeDialog_action"),
type: ButtonType.Primary,
click: vnode.attrs.onShowSetupWizard,
}),
Expand Down
4 changes: 4 additions & 0 deletions src/mail-app/translations/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
4 changes: 4 additions & 0 deletions src/mail-app/translations/de_sie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
4 changes: 4 additions & 0 deletions src/mail-app/translations/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down

0 comments on commit c12c3b1

Please sign in to comment.