From eb60c3c3c6a0f09dfcf71abbd34618c7c73ea4b4 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Tue, 18 Jan 2022 10:10:25 +0100 Subject: [PATCH] locale fixes --- tabby-core/src/buttonProvider.ts | 2 +- .../src/components/startPage.component.pug | 2 +- tabby-core/src/hotkeys.ts | 40 +++++++++---------- tabby-core/src/theme.ts | 2 +- .../components/sshSettingsTab.component.pug | 2 +- tabby-ssh/src/components/sshTab.component.pug | 2 +- tabby-telnet/src/profiles.ts | 2 +- 7 files changed, 26 insertions(+), 26 deletions(-) diff --git a/tabby-core/src/buttonProvider.ts b/tabby-core/src/buttonProvider.ts index cdf5ce0a..ff76026b 100644 --- a/tabby-core/src/buttonProvider.ts +++ b/tabby-core/src/buttonProvider.ts @@ -37,7 +37,7 @@ export class ButtonProvider extends ToolbarButtonProvider { icon: this.hostApp.platform === Platform.Web ? require('./icons/plus.svg') : require('./icons/profiles.svg'), - title: this.translate.instant('Profiles and connections'), + title: this.translate.instant('Profiles & connections'), click: () => this.activate(), }, ...this.profilesService.getRecentProfiles().map(profile => ({ diff --git a/tabby-core/src/components/startPage.component.pug b/tabby-core/src/components/startPage.component.pug index 798502c4..c05ab476 100644 --- a/tabby-core/src/components/startPage.component.pug +++ b/tabby-core/src/components/startPage.component.pug @@ -15,7 +15,7 @@ footer.d-flex.align-items-center .btn-group.mr-auto button.btn.btn-dark((click)='homeBase.openGitHub()') i.fab.fa-github - span(translate) GitHub + span GitHub button.btn.btn-dark((click)='homeBase.reportBug()') i.fas.fa-bug span(translate) Report a problem diff --git a/tabby-core/src/hotkeys.ts b/tabby-core/src/hotkeys.ts index ccac4e3f..6b12bfb7 100644 --- a/tabby-core/src/hotkeys.ts +++ b/tabby-core/src/hotkeys.ts @@ -58,83 +58,83 @@ export class AppHotkeyProvider extends HotkeyProvider { }, { id: 'tab-1', - name: this.translate.instant('Tab 1'), + name: this.translate.instant('Tab {number}', { number: 1 }), }, { id: 'tab-2', - name: this.translate.instant('Tab 2'), + name: this.translate.instant('Tab {number}', { number: 2 }), }, { id: 'tab-3', - name: this.translate.instant('Tab 3'), + name: this.translate.instant('Tab {number}', { number: 3 }), }, { id: 'tab-4', - name: this.translate.instant('Tab 4'), + name: this.translate.instant('Tab {number}', { number: 4 }), }, { id: 'tab-5', - name: this.translate.instant('Tab 5'), + name: this.translate.instant('Tab {number}', { number: 5 }), }, { id: 'tab-6', - name: this.translate.instant('Tab 6'), + name: this.translate.instant('Tab {number}', { number: 6 }), }, { id: 'tab-7', - name: this.translate.instant('Tab 7'), + name: this.translate.instant('Tab {number}', { number: 7 }), }, { id: 'tab-8', - name: this.translate.instant('Tab 8'), + name: this.translate.instant('Tab {number}', { number: 8 }), }, { id: 'tab-9', - name: this.translate.instant('Tab 9'), + name: this.translate.instant('Tab {number}', { number: 9 }), }, { id: 'tab-10', - name: this.translate.instant('Tab 10'), + name: this.translate.instant('Tab {number}', { number: 10 }), }, { id: 'tab-11', - name: this.translate.instant('Tab 11'), + name: this.translate.instant('Tab {number}', { number: 11 }), }, { id: 'tab-12', - name: this.translate.instant('Tab 12'), + name: this.translate.instant('Tab {number}', { number: 12 }), }, { id: 'tab-13', - name: this.translate.instant('Tab 13'), + name: this.translate.instant('Tab {number}', { number: 13 }), }, { id: 'tab-14', - name: this.translate.instant('Tab 14'), + name: this.translate.instant('Tab {number}', { number: 14 }), }, { id: 'tab-15', - name: this.translate.instant('Tab 15'), + name: this.translate.instant('Tab {number}', { number: 15 }), }, { id: 'tab-16', - name: this.translate.instant('Tab 16'), + name: this.translate.instant('Tab {number}', { number: 16 }), }, { id: 'tab-17', - name: this.translate.instant('Tab 17'), + name: this.translate.instant('Tab {number}', { number: 17 }), }, { id: 'tab-18', - name: this.translate.instant('Tab 18'), + name: this.translate.instant('Tab {number}', { number: 18 }), }, { id: 'tab-19', - name: this.translate.instant('Tab 19'), + name: this.translate.instant('Tab {number}', { number: 19 }), }, { id: 'tab-20', - name: this.translate.instant('Tab 20'), + name: this.translate.instant('Tab {number}', { number: 20 }), }, { id: 'split-right', diff --git a/tabby-core/src/theme.ts b/tabby-core/src/theme.ts index 51340140..e23f2c4f 100644 --- a/tabby-core/src/theme.ts +++ b/tabby-core/src/theme.ts @@ -31,7 +31,7 @@ export class StandardCompactTheme extends Theme { /** @hidden */ @Injectable() export class PaperTheme extends Theme { - name = this.translate.instant('Paper') + name = 'Paper' css = require('./theme.paper.scss') terminalBackground = '#f7f1e0' diff --git a/tabby-ssh/src/components/sshSettingsTab.component.pug b/tabby-ssh/src/components/sshSettingsTab.component.pug index dd261773..5eada6f5 100644 --- a/tabby-ssh/src/components/sshSettingsTab.component.pug +++ b/tabby-ssh/src/components/sshSettingsTab.component.pug @@ -29,7 +29,7 @@ h3 SSH ) option(value='auto', translate) Automatic option(value='pageant') Pageant - option(value='pipe', translate) Named pipe + option(value='pipe') Named pipe .form-line(*ngIf='config.store.ssh.agentType === "pipe"') .header diff --git a/tabby-ssh/src/components/sshTab.component.pug b/tabby-ssh/src/components/sshTab.component.pug index d30eeb96..02799010 100644 --- a/tabby-ssh/src/components/sshTab.component.pug +++ b/tabby-ssh/src/components/sshTab.component.pug @@ -27,7 +27,7 @@ button.btn.btn-sm.btn-link.mr-2((click)='openSFTP()', *ngIf='session && session.open') i.far.fa-folder-open - span(translate) SFTP + span SFTP button.btn.btn-sm.btn-link( *ngIf='session && session.open && hostApp.platform !== Platform.Web', diff --git a/tabby-telnet/src/profiles.ts b/tabby-telnet/src/profiles.ts index 1d5fc0db..772fe668 100644 --- a/tabby-telnet/src/profiles.ts +++ b/tabby-telnet/src/profiles.ts @@ -7,7 +7,7 @@ import { TelnetProfile } from './session' @Injectable({ providedIn: 'root' }) export class TelnetProfilesService extends ProfileProvider { id = 'telnet' - name = this.translate.instant('Telnet') + name = 'Telnet' supportsQuickConnect = false settingsComponent = TelnetProfileSettingsComponent configDefaults = {