1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-22 18:11:43 +03:00

locale updates, added Italian

This commit is contained in:
Eugene Pankov 2022-02-10 16:24:24 +01:00
parent 762ee85773
commit 46a9b655fc
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
10 changed files with 1553 additions and 24 deletions

View File

@ -4,6 +4,9 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n" "Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
msgid "\"{command}\" is still running. Close?"
msgstr ""
msgid "A second font family used to display characters missing in the main font" msgid "A second font family used to display characters missing in the main font"
msgstr "" msgstr ""
@ -345,12 +348,18 @@ msgstr ""
msgid "Disconnect" msgid "Disconnect"
msgstr "" msgstr ""
msgid "Disconnect from {host}?"
msgstr ""
msgid "Display on" msgid "Display on"
msgstr "" msgstr ""
msgid "Do not abort" msgid "Do not abort"
msgstr "" msgstr ""
msgid "Do not close"
msgstr ""
msgid "Do not remember" msgid "Do not remember"
msgstr "" msgstr ""
@ -609,6 +618,9 @@ msgstr ""
msgid "Invalid syntax" msgid "Invalid syntax"
msgstr "" msgstr ""
msgid "Italian"
msgstr ""
msgid "Japanese" msgid "Japanese"
msgstr "" msgstr ""
@ -639,6 +651,9 @@ msgstr ""
msgid "Keyboard-interactive auth" msgid "Keyboard-interactive auth"
msgstr "" msgstr ""
msgid "Kill"
msgstr ""
msgid "Language" msgid "Language"
msgstr "" msgstr ""
@ -810,6 +825,9 @@ msgstr ""
msgid "Open Settings" msgid "Open Settings"
msgstr "" msgstr ""
msgid "Open settings tab: {tab}"
msgstr ""
msgid "Optional" msgid "Optional"
msgstr "" msgstr ""
@ -888,9 +906,15 @@ msgstr ""
msgid "Port" msgid "Port"
msgstr "" msgstr ""
msgid "Port opened"
msgstr ""
msgid "Ports" msgid "Ports"
msgstr "" msgstr ""
msgid "Press any key to reconnect"
msgstr ""
msgid "Press the key now" msgid "Press the key now"
msgstr "" msgstr ""

1492
locale/it-IT.po Normal file

File diff suppressed because it is too large Load Diff

View File

@ -12,7 +12,7 @@ msgstr ""
"Project-Id-Version: tabby\n" "Project-Id-Version: tabby\n"
"Language-Team: Japanese\n" "Language-Team: Japanese\n"
"Language: ja_JP\n" "Language: ja_JP\n"
"PO-Revision-Date: 2022-02-07 14:27\n" "PO-Revision-Date: 2022-02-10 15:08\n"
msgid "A second font family used to display characters missing in the main font" msgid "A second font family used to display characters missing in the main font"
msgstr "既定フォントに不足してる文字を補って表示する代替フォント" msgstr "既定フォントに不足してる文字を補って表示する代替フォント"
@ -63,7 +63,7 @@ msgid "Allows opening .bat files in tabs, but breaks some shells"
msgstr ".batファイルを開くことを許可 (シェルが正常に動作しない可能性があります)" msgstr ".batファイルを開くことを許可 (シェルが正常に動作しない可能性があります)"
msgid "Allows quickly opening a terminal in the selected folder" msgid "Allows quickly opening a terminal in the selected folder"
msgstr "選択したフォルダ内の端末を素早く開けるようにする" msgstr "フォルダから端末を素早く開けるようにします"
msgid "Appearance" msgid "Appearance"
msgstr "外観" msgstr "外観"
@ -360,7 +360,7 @@ msgid "Do not abort"
msgstr "中止しない" msgstr "中止しない"
msgid "Do not remember" msgid "Do not remember"
msgstr "記憶しない" msgstr "常にパスワードを要求"
msgid "Dock always on top" msgid "Dock always on top"
msgstr "ドックを常に最前面表示" msgstr "ドックを常に最前面表示"
@ -408,7 +408,7 @@ msgid "Enable analytics"
msgstr "統計情報を有効化" msgstr "統計情報を有効化"
msgid "Enable automatic installation of updates when they become available." msgid "Enable automatic installation of updates when they become available."
msgstr "アップデートが利用可能になったら自動インストールを実行" msgstr "アップデートが利用可能になったら自動インストールを実行する"
msgid "Enable font ligatures" msgid "Enable font ligatures"
msgstr "合字フォントを有効化" msgstr "合字フォントを有効化"
@ -966,7 +966,7 @@ msgid "Release notes"
msgstr "リリースノート" msgstr "リリースノート"
msgid "Remember for {time}" msgid "Remember for {time}"
msgstr "{time} を記憶" msgstr "{time} 後に再認証"
msgid "Remote" msgid "Remote"
msgstr "リモート" msgstr "リモート"

View File

@ -8,6 +8,7 @@ import localeDE from '@angular/common/locales/de'
import localeES from '@angular/common/locales/es' import localeES from '@angular/common/locales/es'
import localeFR from '@angular/common/locales/fr' import localeFR from '@angular/common/locales/fr'
import localeHR from '@angular/common/locales/hr' import localeHR from '@angular/common/locales/hr'
import localeIT from '@angular/common/locales/it'
import localeJA from '@angular/common/locales/ja' import localeJA from '@angular/common/locales/ja'
import localePL from '@angular/common/locales/pl' import localePL from '@angular/common/locales/pl'
import localeRU from '@angular/common/locales/ru' import localeRU from '@angular/common/locales/ru'
@ -23,6 +24,7 @@ registerLocaleData(localeDE)
registerLocaleData(localeES) registerLocaleData(localeES)
registerLocaleData(localeFR) registerLocaleData(localeFR)
registerLocaleData(localeHR) registerLocaleData(localeHR)
registerLocaleData(localeIT)
registerLocaleData(localeJA) registerLocaleData(localeJA)
registerLocaleData(localePL) registerLocaleData(localePL)
registerLocaleData(localeRU) registerLocaleData(localeRU)
@ -48,6 +50,7 @@ export class LocaleService {
'es-ES', 'es-ES',
'fr-FR', 'fr-FR',
'hr-HR', 'hr-HR',
'it-IT',
'ja-JP', 'ja-JP',
'pl-PL', 'pl-PL',
'ru-RU', 'ru-RU',
@ -106,6 +109,10 @@ export class LocaleService {
code: 'ja-JP', code: 'ja-JP',
name: translate.instant('Japanese'), name: translate.instant('Japanese'),
}, },
{
code: 'it-IT',
name: translate.instant('Italian'),
},
{ {
code: 'pl-PL', code: 'pl-PL',
name: translate.instant('Polish'), name: translate.instant('Polish'),

View File

@ -1,3 +1,4 @@
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'
import { Component, Input, Injector } from '@angular/core' import { Component, Input, Injector } from '@angular/core'
import { BaseTabProcess, WIN_BUILD_CONPTY_SUPPORTED, isWindowsBuild, GetRecoveryTokenOptions } from 'tabby-core' import { BaseTabProcess, WIN_BUILD_CONPTY_SUPPORTED, isWindowsBuild, GetRecoveryTokenOptions } from 'tabby-core'
import { BaseTerminalTabComponent } from 'tabby-terminal' import { BaseTerminalTabComponent } from 'tabby-terminal'
@ -109,12 +110,12 @@ export class TerminalTabComponent extends BaseTerminalTabComponent {
{ {
type: 'warning', type: 'warning',
message: this.translate.instant( message: this.translate.instant(
'"{command}" is still running. Close?', _('"{command}" is still running. Close?'),
children[0], children[0],
), ),
buttons: [ buttons: [
this.translate.instant('Kill'), this.translate.instant(_('Kill')),
this.translate.instant('Cancel'), this.translate.instant(_('Cancel')),
], ],
defaultId: 0, defaultId: 0,
cancelId: 1, cancelId: 1,

View File

@ -1,4 +1,5 @@
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'
import colors from 'ansi-colors' import colors from 'ansi-colors'
import { Component, Injector } from '@angular/core' import { Component, Injector } from '@angular/core'
import { first } from 'rxjs' import { first } from 'rxjs'
@ -68,12 +69,12 @@ export class SerialTabComponent extends BaseTerminalTabComponent {
const session = new SerialSession(this.injector, this.profile) const session = new SerialSession(this.injector, this.profile)
this.setSession(session) this.setSession(session)
this.startSpinner(this.translate.instant('Connecting')) this.startSpinner(this.translate.instant(_('Connecting')))
try { try {
await this.session!.start() await this.session!.start()
this.stopSpinner() this.stopSpinner()
session.emitServiceMessage(this.translate.instant('Port opened')) session.emitServiceMessage(this.translate.instant(_('Port opened')))
} catch (e) { } catch (e) {
this.stopSpinner() this.stopSpinner()
this.write(colors.black.bgRed(' X ') + ' ' + colors.red(e.message) + '\r\n') this.write(colors.black.bgRed(' X ') + ' ' + colors.red(e.message) + '\r\n')
@ -88,7 +89,7 @@ export class SerialTabComponent extends BaseTerminalTabComponent {
this.session?.resize(this.size.columns, this.size.rows) this.session?.resize(this.size.columns, this.size.rows)
}) })
this.attachSessionHandler(this.session!.destroyed$, () => { this.attachSessionHandler(this.session!.destroyed$, () => {
this.write(this.translate.instant('Press any key to reconnect') + '\r\n') this.write(this.translate.instant(_('Press any key to reconnect')) + '\r\n')
this.input$.pipe(first()).subscribe(() => { this.input$.pipe(first()).subscribe(() => {
if (!this.session?.open) { if (!this.session?.open) {
this.reconnect() this.reconnect()
@ -114,7 +115,7 @@ export class SerialTabComponent extends BaseTerminalTabComponent {
async changeBaudRate () { async changeBaudRate () {
const rate = await this.selector.show( const rate = await this.selector.show(
this.translate.instant('Baud rate'), this.translate.instant(_('Baud rate')),
BAUD_RATES.map(x => ({ BAUD_RATES.map(x => ({
name: x.toString(), result: x, name: x.toString(), result: x,
})), })),

View File

@ -1,4 +1,5 @@
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'
import axios from 'axios' import axios from 'axios'
import { marked } from 'marked' import { marked } from 'marked'
import { Component } from '@angular/core' import { Component } from '@angular/core'
@ -23,7 +24,7 @@ export class ReleaseNotesComponent extends BaseTabComponent {
constructor (translate: TranslateService) { constructor (translate: TranslateService) {
super() super()
this.setTitle(translate.instant('Release notes')) this.setTitle(translate.instant(_('Release notes')))
this.loadReleases(1) this.loadReleases(1)
} }

View File

@ -1,4 +1,5 @@
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'
import * as yaml from 'js-yaml' import * as yaml from 'js-yaml'
import { debounce } from 'utils-decorators/dist/esm/debounce/debounce' import { debounce } from 'utils-decorators/dist/esm/debounce/debounce'
import { Component, Inject, Input, HostBinding, NgZone } from '@angular/core' import { Component, Inject, Input, HostBinding, NgZone } from '@angular/core'
@ -52,7 +53,7 @@ export class SettingsTabComponent extends BaseTabComponent {
translate: TranslateService, translate: TranslateService,
) { ) {
super() super()
this.setTitle(translate.instant('Settings')) this.setTitle(translate.instant(_('Settings')))
this.settingsProviders = config.enabledServices(this.settingsProviders) this.settingsProviders = config.enabledServices(this.settingsProviders)
this.settingsProviders = this.settingsProviders.filter(x => !!x.getComponentType()) this.settingsProviders = this.settingsProviders.filter(x => !!x.getComponentType())
this.settingsProviders.sort((a, b) => a.weight - b.weight + a.title.localeCompare(b.title)) this.settingsProviders.sort((a, b) => a.weight - b.weight + a.title.localeCompare(b.title))

View File

@ -1,3 +1,4 @@
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'
import colors from 'ansi-colors' import colors from 'ansi-colors'
import { Component, Injector, HostListener } from '@angular/core' import { Component, Injector, HostListener } from '@angular/core'
import { NgbModal } from '@ng-bootstrap/ng-bootstrap' import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
@ -140,7 +141,7 @@ export class SSHTabComponent extends BaseTerminalTabComponent {
if (!session.open) { if (!session.open) {
this.write('\r\n' + colors.black.bgWhite(' SSH ') + ` Connecting to ${session.profile.options.host}\r\n`) this.write('\r\n' + colors.black.bgWhite(' SSH ') + ` Connecting to ${session.profile.options.host}\r\n`)
this.startSpinner(this.translate.instant('Connecting')) this.startSpinner(this.translate.instant(_('Connecting')))
try { try {
await session.start() await session.start()
@ -172,7 +173,7 @@ export class SSHTabComponent extends BaseTerminalTabComponent {
this.write('\r\n' + colors.black.bgWhite(' SSH ') + ` ${this.sshSession?.profile.options.host}: session closed\r\n`) this.write('\r\n' + colors.black.bgWhite(' SSH ') + ` ${this.sshSession?.profile.options.host}: session closed\r\n`)
if (!this.reconnectOffered) { if (!this.reconnectOffered) {
this.reconnectOffered = true this.reconnectOffered = true
this.write(this.translate.instant('Press any key to reconnect') + '\r\n') this.write(this.translate.instant(_('Press any key to reconnect')) + '\r\n')
this.input$.pipe(first()).subscribe(() => { this.input$.pipe(first()).subscribe(() => {
if (!this.session?.open && this.reconnectOffered) { if (!this.session?.open && this.reconnectOffered) {
this.reconnect() this.reconnect()
@ -239,10 +240,10 @@ export class SSHTabComponent extends BaseTerminalTabComponent {
return (await this.platform.showMessageBox( return (await this.platform.showMessageBox(
{ {
type: 'warning', type: 'warning',
message: this.translate.instant('Disconnect from {host}?', this.profile?.options), message: this.translate.instant(_('Disconnect from {host}?'), this.profile?.options),
buttons: [ buttons: [
this.translate.instant('Disconnect'), this.translate.instant(_('Disconnect')),
this.translate.instant('Do not close'), this.translate.instant(_('Do not close')),
], ],
defaultId: 0, defaultId: 0,
cancelId: 1, cancelId: 1,

View File

@ -1,3 +1,4 @@
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'
import colors from 'ansi-colors' import colors from 'ansi-colors'
import { Component, Injector } from '@angular/core' import { Component, Injector } from '@angular/core'
import { first } from 'rxjs' import { first } from 'rxjs'
@ -54,7 +55,7 @@ export class TelnetTabComponent extends BaseTerminalTabComponent {
// Session was closed abruptly // Session was closed abruptly
if (!this.reconnectOffered) { if (!this.reconnectOffered) {
this.reconnectOffered = true this.reconnectOffered = true
this.write(this.translate.instant('Press any key to reconnect') + '\r\n') this.write(this.translate.instant(_('Press any key to reconnect')) + '\r\n')
this.input$.pipe(first()).subscribe(() => { this.input$.pipe(first()).subscribe(() => {
if (!this.session?.open && this.reconnectOffered) { if (!this.session?.open && this.reconnectOffered) {
this.reconnect() this.reconnect()
@ -77,7 +78,7 @@ export class TelnetTabComponent extends BaseTerminalTabComponent {
this.setSession(session) this.setSession(session)
try { try {
this.startSpinner(this.translate.instant('Connecting')) this.startSpinner(this.translate.instant(_('Connecting')))
this.attachSessionHandler(session.serviceMessage$, msg => { this.attachSessionHandler(session.serviceMessage$, msg => {
this.write(`\r${colors.black.bgWhite(' Telnet ')} ${msg}\r\n`) this.write(`\r${colors.black.bgWhite(' Telnet ')} ${msg}\r\n`)
@ -118,10 +119,10 @@ export class TelnetTabComponent extends BaseTerminalTabComponent {
return (await this.platform.showMessageBox( return (await this.platform.showMessageBox(
{ {
type: 'warning', type: 'warning',
message: this.translate.instant('Disconnect from {host}?', this.profile?.options), message: this.translate.instant(_('Disconnect from {host}?'), this.profile?.options),
buttons: [ buttons: [
this.translate.instant('Disconnect'), this.translate.instant(_('Disconnect')),
this.translate.instant('Do not close'), this.translate.instant(_('Do not close')),
], ],
defaultId: 0, defaultId: 0,
cancelId: 1, cancelId: 1,