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-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"
msgstr ""
@ -345,12 +348,18 @@ msgstr ""
msgid "Disconnect"
msgstr ""
msgid "Disconnect from {host}?"
msgstr ""
msgid "Display on"
msgstr ""
msgid "Do not abort"
msgstr ""
msgid "Do not close"
msgstr ""
msgid "Do not remember"
msgstr ""
@ -609,6 +618,9 @@ msgstr ""
msgid "Invalid syntax"
msgstr ""
msgid "Italian"
msgstr ""
msgid "Japanese"
msgstr ""
@ -639,6 +651,9 @@ msgstr ""
msgid "Keyboard-interactive auth"
msgstr ""
msgid "Kill"
msgstr ""
msgid "Language"
msgstr ""
@ -810,6 +825,9 @@ msgstr ""
msgid "Open Settings"
msgstr ""
msgid "Open settings tab: {tab}"
msgstr ""
msgid "Optional"
msgstr ""
@ -888,9 +906,15 @@ msgstr ""
msgid "Port"
msgstr ""
msgid "Port opened"
msgstr ""
msgid "Ports"
msgstr ""
msgid "Press any key to reconnect"
msgstr ""
msgid "Press the key now"
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"
"Language-Team: Japanese\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"
msgstr "既定フォントに不足してる文字を補って表示する代替フォント"
@ -63,7 +63,7 @@ msgid "Allows opening .bat files in tabs, but breaks some shells"
msgstr ".batファイルを開くことを許可 (シェルが正常に動作しない可能性があります)"
msgid "Allows quickly opening a terminal in the selected folder"
msgstr "選択したフォルダ内の端末を素早く開けるようにする"
msgstr "フォルダから端末を素早く開けるようにします"
msgid "Appearance"
msgstr "外観"
@ -360,7 +360,7 @@ msgid "Do not abort"
msgstr "中止しない"
msgid "Do not remember"
msgstr "記憶しない"
msgstr "常にパスワードを要求"
msgid "Dock always on top"
msgstr "ドックを常に最前面表示"
@ -408,7 +408,7 @@ msgid "Enable analytics"
msgstr "統計情報を有効化"
msgid "Enable automatic installation of updates when they become available."
msgstr "アップデートが利用可能になったら自動インストールを実行"
msgstr "アップデートが利用可能になったら自動インストールを実行する"
msgid "Enable font ligatures"
msgstr "合字フォントを有効化"
@ -966,7 +966,7 @@ msgid "Release notes"
msgstr "リリースノート"
msgid "Remember for {time}"
msgstr "{time} を記憶"
msgstr "{time} 後に再認証"
msgid "Remote"
msgstr "リモート"

View file

@ -8,6 +8,7 @@ import localeDE from '@angular/common/locales/de'
import localeES from '@angular/common/locales/es'
import localeFR from '@angular/common/locales/fr'
import localeHR from '@angular/common/locales/hr'
import localeIT from '@angular/common/locales/it'
import localeJA from '@angular/common/locales/ja'
import localePL from '@angular/common/locales/pl'
import localeRU from '@angular/common/locales/ru'
@ -23,6 +24,7 @@ registerLocaleData(localeDE)
registerLocaleData(localeES)
registerLocaleData(localeFR)
registerLocaleData(localeHR)
registerLocaleData(localeIT)
registerLocaleData(localeJA)
registerLocaleData(localePL)
registerLocaleData(localeRU)
@ -48,6 +50,7 @@ export class LocaleService {
'es-ES',
'fr-FR',
'hr-HR',
'it-IT',
'ja-JP',
'pl-PL',
'ru-RU',
@ -106,6 +109,10 @@ export class LocaleService {
code: 'ja-JP',
name: translate.instant('Japanese'),
},
{
code: 'it-IT',
name: translate.instant('Italian'),
},
{
code: 'pl-PL',
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 { BaseTabProcess, WIN_BUILD_CONPTY_SUPPORTED, isWindowsBuild, GetRecoveryTokenOptions } from 'tabby-core'
import { BaseTerminalTabComponent } from 'tabby-terminal'
@ -109,12 +110,12 @@ export class TerminalTabComponent extends BaseTerminalTabComponent {
{
type: 'warning',
message: this.translate.instant(
'"{command}" is still running. Close?',
_('"{command}" is still running. Close?'),
children[0],
),
buttons: [
this.translate.instant('Kill'),
this.translate.instant('Cancel'),
this.translate.instant(_('Kill')),
this.translate.instant(_('Cancel')),
],
defaultId: 0,
cancelId: 1,

View file

@ -1,4 +1,5 @@
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'
import colors from 'ansi-colors'
import { Component, Injector } from '@angular/core'
import { first } from 'rxjs'
@ -68,12 +69,12 @@ export class SerialTabComponent extends BaseTerminalTabComponent {
const session = new SerialSession(this.injector, this.profile)
this.setSession(session)
this.startSpinner(this.translate.instant('Connecting'))
this.startSpinner(this.translate.instant(_('Connecting')))
try {
await this.session!.start()
this.stopSpinner()
session.emitServiceMessage(this.translate.instant('Port opened'))
session.emitServiceMessage(this.translate.instant(_('Port opened')))
} catch (e) {
this.stopSpinner()
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.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(() => {
if (!this.session?.open) {
this.reconnect()
@ -114,7 +115,7 @@ export class SerialTabComponent extends BaseTerminalTabComponent {
async changeBaudRate () {
const rate = await this.selector.show(
this.translate.instant('Baud rate'),
this.translate.instant(_('Baud rate')),
BAUD_RATES.map(x => ({
name: x.toString(), result: x,
})),

View file

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

View file

@ -1,4 +1,5 @@
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'
import * as yaml from 'js-yaml'
import { debounce } from 'utils-decorators/dist/esm/debounce/debounce'
import { Component, Inject, Input, HostBinding, NgZone } from '@angular/core'
@ -52,7 +53,7 @@ export class SettingsTabComponent extends BaseTabComponent {
translate: TranslateService,
) {
super()
this.setTitle(translate.instant('Settings'))
this.setTitle(translate.instant(_('Settings')))
this.settingsProviders = config.enabledServices(this.settingsProviders)
this.settingsProviders = this.settingsProviders.filter(x => !!x.getComponentType())
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 { Component, Injector, HostListener } from '@angular/core'
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
@ -140,7 +141,7 @@ export class SSHTabComponent extends BaseTerminalTabComponent {
if (!session.open) {
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 {
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`)
if (!this.reconnectOffered) {
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(() => {
if (!this.session?.open && this.reconnectOffered) {
this.reconnect()
@ -239,10 +240,10 @@ export class SSHTabComponent extends BaseTerminalTabComponent {
return (await this.platform.showMessageBox(
{
type: 'warning',
message: this.translate.instant('Disconnect from {host}?', this.profile?.options),
message: this.translate.instant(_('Disconnect from {host}?'), this.profile?.options),
buttons: [
this.translate.instant('Disconnect'),
this.translate.instant('Do not close'),
this.translate.instant(_('Disconnect')),
this.translate.instant(_('Do not close')),
],
defaultId: 0,
cancelId: 1,

View file

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