mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-19 18:07:58 +00:00
locale updates, added Italian
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user