diff --git a/Aaru.Devices/Localization/Localization.es.resx b/Aaru.Devices/Localization/Localization.es.resx index 0407b47c5..38cd4022c 100644 --- a/Aaru.Devices/Localization/Localization.es.resx +++ b/Aaru.Devices/Localization/Localization.es.resx @@ -421,8 +421,8 @@ URI remota inválida. - Error al conectar al servidor. - + [red]Error al conectar al servidor.[/] + Protocolo remoto inválido. @@ -430,8 +430,8 @@ Servidor no encontrado - Conectado a {0} - + [slateblue1]Conectado a [teal]{0}[/][/] + No se pudo leer desde la red... diff --git a/Aaru.Devices/Localization/Localization.resx b/Aaru.Devices/Localization/Localization.resx index 6f981ff40..014840192 100644 --- a/Aaru.Devices/Localization/Localization.resx +++ b/Aaru.Devices/Localization/Localization.resx @@ -428,8 +428,8 @@ Invalid remote URI. - Error connecting to host. - + [red]Error connecting to host.[/] + Invalid remote protocol. @@ -437,8 +437,8 @@ Host not found - Connected to {0} - + [slateblue1]Connected to [teal]{0}[/][/] + Could not read from the network... diff --git a/Aaru.Localization/UI.Designer.cs b/Aaru.Localization/UI.Designer.cs index 4d45e36c1..bf686cc7b 100644 --- a/Aaru.Localization/UI.Designer.cs +++ b/Aaru.Localization/UI.Designer.cs @@ -6117,5 +6117,35 @@ namespace Aaru.Localization { return ResourceManager.GetString("Title_Date_modified", resourceCulture); } } + + public static string Title_Server_information { + get { + return ResourceManager.GetString("Title_Server_information", resourceCulture); + } + } + + public static string Server_application { + get { + return ResourceManager.GetString("Server_application", resourceCulture); + } + } + + public static string Server_operating_system { + get { + return ResourceManager.GetString("Server_operating_system", resourceCulture); + } + } + + public static string Server_maximum_protocol { + get { + return ResourceManager.GetString("Server_maximum_protocol", resourceCulture); + } + } + + public static string Error_connecting_to_host { + get { + return ResourceManager.GetString("Error_connecting_to_host", resourceCulture); + } + } } } diff --git a/Aaru.Localization/UI.es.resx b/Aaru.Localization/UI.es.resx index 048e658fe..2b5b87d2c 100644 --- a/Aaru.Localization/UI.es.resx +++ b/Aaru.Localization/UI.es.resx @@ -3056,4 +3056,19 @@ Probadores: [bold][dodgerblue1]Fecha modificación[/][/] + + [bold][blue]Información del servidor[/][/] + + + [green]Aplicación del servidor[/] + + + [orange3]Sistema operativo del servidor[/] + + + [slateblue1]Protocolo máximo del servidor[/] + + + [red]Error al conectar al servidor.[/] + \ No newline at end of file diff --git a/Aaru.Localization/UI.resx b/Aaru.Localization/UI.resx index 954828d40..270353f82 100644 --- a/Aaru.Localization/UI.resx +++ b/Aaru.Localization/UI.resx @@ -3135,4 +3135,19 @@ Do you want to continue? [bold][dodgerblue1]Date modified[/][/] + + [bold][blue]Server information[/][/] + + + [green]Server application[/] + + + [orange3]Server operating system[/] + + + [slateblue1]Server maximum protocol[/] + + + [red]Error connecting to host.[/] + \ No newline at end of file diff --git a/Aaru/Commands/Remote.cs b/Aaru/Commands/Remote.cs index 0937ad8b4..aabcbd8bd 100644 --- a/Aaru/Commands/Remote.cs +++ b/Aaru/Commands/Remote.cs @@ -36,6 +36,7 @@ using System; using System.ComponentModel; using Aaru.CommonTypes.Enums; using Aaru.Core; +using Aaru.Localization; using Aaru.Logging; using Sentry; using Spectre.Console; @@ -70,20 +71,29 @@ sealed class RemoteCommand : Command Table table = new() { - Title = new TableTitle("Server information") + Title = new TableTitle(UI.Title_Server_information) }; + AaruLogging.Information(UI.Title_Server_information); + table.AddColumn(""); table.AddColumn(""); table.Columns[0].RightAligned(); + table.Border(TableBorder.Rounded); + table.BorderColor(Color.Yellow); + table.HideHeaders(); - table.AddRow("Server application", $"{remote.ServerApplication} {remote.ServerVersion}"); + table.AddRow(UI.Server_application, $"[green]{remote.ServerApplication}[/] [red]{remote.ServerVersion}[/]"); - table.AddRow("Server operating system", - $"{remote.ServerOperatingSystem} {remote.ServerOperatingSystemVersion} ({ - remote.ServerArchitecture})"); + table.AddRow(UI.Server_operating_system, + $"[fuchsia]{remote.ServerOperatingSystem}[/] [lime]{remote.ServerOperatingSystemVersion}[/] [slateblue1]([gold3]{ + remote.ServerArchitecture}[/])[/]"); - table.AddRow("Server maximum protocol", $"{remote.ServerProtocolVersion}"); + table.AddRow(UI.Server_maximum_protocol, $"[teal]{remote.ServerProtocolVersion}[/]"); + + AaruLogging.Information($"{UI.Server_application}: {remote.ServerApplication} {remote.ServerVersion}"); + AaruLogging.Information($"{UI.Server_operating_system}: {remote.ServerOperatingSystem} {remote.ServerOperatingSystemVersion} ({remote.ServerArchitecture})"); + AaruLogging.Information($"{UI.Server_maximum_protocol}: {remote.ServerProtocolVersion}"); AnsiConsole.Write(table); remote.Disconnect(); @@ -91,7 +101,7 @@ sealed class RemoteCommand : Command catch(Exception ex) { SentrySdk.CaptureException(ex); - AaruLogging.Error("Error connecting to host."); + AaruLogging.Error(UI.Error_connecting_to_host); return (int)ErrorNumber.CannotOpenDevice; }