From ab8622c9fd82c611575dfabec7a2eaa9c38a17f6 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sat, 8 Jan 2022 19:13:07 +0100 Subject: [PATCH] more localization fixes --- tabby-core/src/components/unlockVaultModal.component.pug | 4 ++-- .../src/components/pluginsSettingsTab.component.pug | 4 ++-- .../src/components/configSyncSettingsTab.component.pug | 4 ++-- tabby-settings/src/components/editProfileModal.component.pug | 2 +- .../src/components/terminalSettingsTab.component.pug | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tabby-core/src/components/unlockVaultModal.component.pug b/tabby-core/src/components/unlockVaultModal.component.pug index 0358872d..44620417 100644 --- a/tabby-core/src/components/unlockVaultModal.component.pug +++ b/tabby-core/src/components/unlockVaultModal.component.pug @@ -5,9 +5,9 @@ button.btn.btn-link(ngbDropdownToggle, (click)='$event.stopPropagation()') span( *ngIf='rememberFor', - translate, + translate='Remember for {time}', [translateParams]='{time: getRememberForDisplay(rememberFor)}' - ) Remember for {time} + ) span(*ngIf='!rememberFor', translate) Do not remember div(ngbDropdownMenu) button.dropdown-item( diff --git a/tabby-plugin-manager/src/components/pluginsSettingsTab.component.pug b/tabby-plugin-manager/src/components/pluginsSettingsTab.component.pug index da6795b6..cd185f19 100644 --- a/tabby-plugin-manager/src/components/pluginsSettingsTab.component.pug +++ b/tabby-plugin-manager/src/components/pluginsSettingsTab.component.pug @@ -5,7 +5,7 @@ span(translate) Plugins folder .alert.alert-danger(*ngIf='errorMessage') - strong(translate, [translateParams]='{plugin: erroredPlugin}') Error in {plugin}: + strong(translate='Error in {plugin}:', [translateParams]='{plugin: erroredPlugin}') pre {{errorMessage}} ul.nav-tabs.mb-2(ngbNav, #nav='ngbNav') @@ -75,7 +75,7 @@ ul.nav-tabs.mb-2(ngbNav, #nav='ngbNav') ) i.fas.fa-fw.fa-arrow-up(*ngIf='busy.get(plugin.name) != BusyState.Installing') i.fas.fa-fw.fa-circle-notch.fa-spin(*ngIf='busy.get(plugin.name) == BusyState.Installing') - span(translate, [translateParams]='{version: knownUpgrades[plugin.name].version}') Upgrade to {version} + span(translate='Upgrade to {version}', [translateParams]='{version: knownUpgrades[plugin.name].version}') ng-template(ngbPanelContent) .row diff --git a/tabby-settings/src/components/configSyncSettingsTab.component.pug b/tabby-settings/src/components/configSyncSettingsTab.component.pug index d1c6a8af..d7039aed 100644 --- a/tabby-settings/src/components/configSyncSettingsTab.component.pug +++ b/tabby-settings/src/components/configSyncSettingsTab.component.pug @@ -38,7 +38,7 @@ ul.nav-tabs(ngbNav, #nav='ngbNav') ng-container(*ngIf='config.store.configSync.token') .alert.alert-danger(*ngIf='connectionSuccessful === false') i.fas.fa-exclamation-triangle - span.ml-2(translate, [translateParams]='{error: connectionError}') Connection failed: {error} + span.ml-2(translate='Connection failed: {error}', [translateParams]='{error: connectionError}') ng-container(*ngIf='connectionSuccessful') .form-line @@ -59,7 +59,7 @@ ul.nav-tabs(ngbNav, #nav='ngbNav') i.fas.fa-fw.fa-file .ml-2.d-flex.flex-column.align-items-start div {{cfg.name}} - small.text-muted(translate, [translateParams]='{date: cfg.modified_at|date:"medium"}') Modified on {date} + small.text-muted(translate='Modified on {date}', [translateParams]='{date: cfg.modified_at|date:"medium"}') .mr-auto button.btn.btn-link.ml-1( (click)='uploadAndSync(cfg)', diff --git a/tabby-settings/src/components/editProfileModal.component.pug b/tabby-settings/src/components/editProfileModal.component.pug index 99e4cfdf..839c7893 100644 --- a/tabby-settings/src/components/editProfileModal.component.pug +++ b/tabby-settings/src/components/editProfileModal.component.pug @@ -2,7 +2,7 @@ h3.m-0 {{profile.name}} .modal-header(*ngIf='defaultsMode') - h3.m-0(translate, [translateParams]='{type: profileProvider.name}') Defaults for {type} + h3.m-0(translate='Defaults for {type}', [translateParams]='{type: profileProvider.name}') .modal-body .row diff --git a/tabby-terminal/src/components/terminalSettingsTab.component.pug b/tabby-terminal/src/components/terminalSettingsTab.component.pug index 118cb5ba..7a530f44 100644 --- a/tabby-terminal/src/components/terminalSettingsTab.component.pug +++ b/tabby-terminal/src/components/terminalSettingsTab.component.pug @@ -28,7 +28,7 @@ div.mt-4 .form-line .header - .title(translate, [translateParams]='{altKeyName: altKeyName}') Use {altKeyName} as the Meta key + .title(translate='Use {altKeyName} as the Meta key', [translateParams]='{altKeyName: altKeyName}') .description(translate) Lets the shell handle Meta key instead of OS toggle( [(ngModel)]='config.store.terminal.altIsMeta',