1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-09-11 13:13:59 +03:00

added missing string

This commit is contained in:
Eugene Pankov 2022-06-16 18:34:44 +02:00
parent f469c91786
commit 85d0b47511
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
2 changed files with 7 additions and 2 deletions

View File

@ -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 ""

View File

@ -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'),
},
]
}