diff --git a/Aaru.Gui/ViewModels/Windows/DeviceViewModel.cs b/Aaru.Gui/ViewModels/Windows/DeviceViewModel.cs index 0834fd639..650093d46 100644 --- a/Aaru.Gui/ViewModels/Windows/DeviceViewModel.cs +++ b/Aaru.Gui/ViewModels/Windows/DeviceViewModel.cs @@ -355,7 +355,7 @@ public partial class DeviceViewModel : ViewModelBase Dispatcher.UIThread.Invoke(() => { StatusMessageVisible = true; - StatusMessage = "Opening device..."; + StatusMessage = UI.Opening_device; }); var dev = Device.Create(DevicePath, out ErrorNumber devErrno); @@ -408,18 +408,18 @@ public partial class DeviceViewModel : ViewModelBase ScsiType = $"[orange]{dev.ScsiType.Humanize()}[/]"; RemovableChecked = dev.IsRemovable; UsbConnected = dev.IsUsb; - StatusMessage = "Device opened successfully."; + StatusMessage = UI.Device_opened_successfully; }); _dev = dev; Statistics.AddDevice(dev); - Dispatcher.UIThread.Invoke(() => StatusMessage = "Querying device information..."); + Dispatcher.UIThread.Invoke(() => StatusMessage = UI.Querying_device_information); var devInfo = new DeviceInfo(dev); - Dispatcher.UIThread.Invoke(() => StatusMessage = "Device information queryied successfully..."); + Dispatcher.UIThread.Invoke(() => StatusMessage = UI.Device_information_queryied_successfully); if(devInfo.IsUsb) { @@ -553,12 +553,14 @@ public partial class DeviceViewModel : ViewModelBase if(devInfo.PlextorFeatures.PoweRecMax > 0) { PlextorPoweRecMaxVisible = true; + PlextorPoweRecMax = string.Format(UI._0_Kb_sec, devInfo.PlextorFeatures.PoweRecMax); } if(devInfo.PlextorFeatures.PoweRecLast > 0) { PlextorPoweRecLastVisible = true; + PlextorPoweRecLast = string.Format(UI._0_Kb_sec, devInfo.PlextorFeatures.PoweRecLast); } } @@ -713,7 +715,7 @@ public partial class DeviceViewModel : ViewModelBase }); } - Dispatcher.UIThread.Invoke(() => StatusMessage = "Querying media information..."); + Dispatcher.UIThread.Invoke(() => StatusMessage = UI.Querying_media_information); var mediaInfo = new ScsiInfo(dev); @@ -977,7 +979,7 @@ public partial class DeviceViewModel : ViewModelBase { case CommonTypes.MediaType.GDR or CommonTypes.MediaType.GDROM: await MessageBoxManager - .GetMessageBoxStandard(UI.Title_Error, + .GetMessageBoxStandard(Localization.UI.Title_Error, Localization.Core.GD_ROM_dump_support_is_not_yet_implemented, ButtonEnum.Ok, Icon.Error) @@ -987,7 +989,7 @@ public partial class DeviceViewModel : ViewModelBase case CommonTypes.MediaType.XGD or CommonTypes.MediaType.XGD2 or CommonTypes.MediaType.XGD3 when _scsiInfo.DeviceInfo.ScsiInquiry?.KreonPresent != true: await MessageBoxManager - .GetMessageBoxStandard(UI.Title_Error, + .GetMessageBoxStandard(Localization.UI.Title_Error, Localization.Core .Dumping_Xbox_Game_Discs_requires_a_drive_with_Kreon_firmware, ButtonEnum.Ok, @@ -1015,7 +1017,7 @@ public partial class DeviceViewModel : ViewModelBase case CommonTypes.MediaType.GDR: case CommonTypes.MediaType.GDROM: await MessageBoxManager - .GetMessageBoxStandard(UI.Title_Error, + .GetMessageBoxStandard(Localization.UI.Title_Error, Localization.Core.GD_ROM_scan_support_is_not_yet_implemented, ButtonEnum.Ok, Icon.Error) @@ -1027,7 +1029,7 @@ public partial class DeviceViewModel : ViewModelBase case CommonTypes.MediaType.XGD: case CommonTypes.MediaType.XGD2: case CommonTypes.MediaType.XGD3: - await MessageBoxManager.GetMessageBoxStandard(UI.Title_Error, + await MessageBoxManager.GetMessageBoxStandard(Localization.UI.Title_Error, Localization.Core .Scanning_Xbox_discs_is_not_yet_supported, ButtonEnum.Ok, diff --git a/Aaru.Gui/Views/Windows/DeviceView.axaml b/Aaru.Gui/Views/Windows/DeviceView.axaml index aeeea0e34..aabdeb1ea 100644 --- a/Aaru.Gui/Views/Windows/DeviceView.axaml +++ b/Aaru.Gui/Views/Windows/DeviceView.axaml @@ -621,8 +621,8 @@ - + \ No newline at end of file diff --git a/Aaru.Localization/UI.Designer.cs b/Aaru.Localization/UI.Designer.cs index e23f1bca9..2999357a0 100644 --- a/Aaru.Localization/UI.Designer.cs +++ b/Aaru.Localization/UI.Designer.cs @@ -6531,5 +6531,29 @@ namespace Aaru.Localization { return ResourceManager.GetString("Title_Device_path", resourceCulture); } } + + public static string Device_opened_successfully { + get { + return ResourceManager.GetString("Device_opened_successfully", resourceCulture); + } + } + + public static string Querying_device_information { + get { + return ResourceManager.GetString("Querying_device_information", resourceCulture); + } + } + + public static string Device_information_queryied_successfully { + get { + return ResourceManager.GetString("Device_information_queryied_successfully", resourceCulture); + } + } + + public static string Querying_media_information { + get { + return ResourceManager.GetString("Querying_media_information", resourceCulture); + } + } } } diff --git a/Aaru.Localization/UI.es.resx b/Aaru.Localization/UI.es.resx index 9b5364000..04f9506aa 100644 --- a/Aaru.Localization/UI.es.resx +++ b/Aaru.Localization/UI.es.resx @@ -3266,4 +3266,16 @@ Probadores: [bold][slateblue1]Ruta al dispositivo[/][/] + + [slateblue1]Dispositivo abierto correctamente.[/] + + + [slateblue1]Obteniendo información del dispositivo[/] + + + [slateblue1]Información del dispositivo obtenida correctamente.[/] + + + [slateblue1]Obteniendo información del medio...[/] + \ No newline at end of file diff --git a/Aaru.Localization/UI.resx b/Aaru.Localization/UI.resx index da73d683c..3d4656d11 100644 --- a/Aaru.Localization/UI.resx +++ b/Aaru.Localization/UI.resx @@ -3341,4 +3341,16 @@ Do you want to continue? [bold][slateblue1]Device path[/][/] + + [slateblue1]Device opened successfully.[/] + + + [slateblue1]Querying device information...[/] + + + [slateblue1]Device information queryied successfully.[/] + + + [slateblue1]Querying media information...[/] + \ No newline at end of file