From 85d0b47511de212c32e1c9cbd02cf004412af91b Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Thu, 16 Jun 2022 18:34:44 +0200 Subject: [PATCH] added missing string --- locale/app.pot | 4 ++++ tabby-electron/src/sftpContextMenu.ts | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/locale/app.pot b/locale/app.pot index 8ffe6ebe..8c0ac9a0 100644 --- a/locale/app.pot +++ b/locale/app.pot @@ -626,6 +626,10 @@ msgstr "" msgid "Edit" msgstr "" +#: tabby-electron/src/sftpContextMenu.ts:30 +msgid "Edit locally" +msgstr "" + #: locale/tmp-html/tabby-plugin-manager/src/components/pluginsSettingsTab.component.html:56 msgid "Enable" msgstr "" diff --git a/tabby-electron/src/sftpContextMenu.ts b/tabby-electron/src/sftpContextMenu.ts index 26203c3e..24a42c05 100644 --- a/tabby-electron/src/sftpContextMenu.ts +++ b/tabby-electron/src/sftpContextMenu.ts @@ -3,7 +3,7 @@ import * as path from 'path' import * as fs from 'fs' import { Subject, debounceTime, debounce } from 'rxjs' import { Injectable } from '@angular/core' -import { MenuItemOptions } from 'tabby-core' +import { MenuItemOptions, TranslateService } from 'tabby-core' import { SFTPFile, SFTPPanelComponent, SFTPContextMenuItemProvider, SFTPSession } from 'tabby-ssh' import { ElectronPlatformService } from './services/platform.service' @@ -14,6 +14,7 @@ export class EditSFTPContextMenu extends SFTPContextMenuItemProvider { weight = 0 constructor ( + private translate: TranslateService, private platform: ElectronPlatformService, ) { super() @@ -26,7 +27,7 @@ export class EditSFTPContextMenu extends SFTPContextMenuItemProvider { return [ { click: () => this.edit(item, panel.sftp), - label: 'Edit locally', + label: this.translate.instant('Edit locally'), }, ] }