diff --git a/Aaru.Decoders/Localization/Localization.Designer.cs b/Aaru.Decoders/Localization/Localization.Designer.cs
index 0f77b890d..0f24fd3b2 100644
--- a/Aaru.Decoders/Localization/Localization.Designer.cs
+++ b/Aaru.Decoders/Localization/Localization.Designer.cs
@@ -19399,5 +19399,65 @@ namespace Aaru.Decoders {
return ResourceManager.GetString("MediumTypes_CDR_Mixed_80", resourceCulture);
}
}
+
+ internal static string SCSI_Power_condition_page {
+ get {
+ return ResourceManager.GetString("SCSI_Power_condition_page", resourceCulture);
+ }
+ }
+
+ internal static string Standby_timer_Z_is_set_to_0_ms {
+ get {
+ return ResourceManager.GetString("Standby_timer_Z_is_set_to_0_ms", resourceCulture);
+ }
+ }
+
+ internal static string Standby_timer_Y_is_set_to_0_ms {
+ get {
+ return ResourceManager.GetString("Standby_timer_Y_is_set_to_0_ms", resourceCulture);
+ }
+ }
+
+ internal static string Drive_will_not_enter_standby_mode {
+ get {
+ return ResourceManager.GetString("Drive_will_not_enter_standby_mode", resourceCulture);
+ }
+ }
+
+ internal static string Idle_timer_A_is_set_to_0_ms {
+ get {
+ return ResourceManager.GetString("Idle_timer_A_is_set_to_0_ms", resourceCulture);
+ }
+ }
+
+ internal static string Idle_timer_B_is_set_to_0_ms {
+ get {
+ return ResourceManager.GetString("Idle_timer_B_is_set_to_0_ms", resourceCulture);
+ }
+ }
+
+ internal static string Idle_timer_C_is_set_to_0_ms {
+ get {
+ return ResourceManager.GetString("Idle_timer_C_is_set_to_0_ms", resourceCulture);
+ }
+ }
+
+ internal static string Drive_will_not_enter_idle_mode {
+ get {
+ return ResourceManager.GetString("Drive_will_not_enter_idle_mode", resourceCulture);
+ }
+ }
+
+ internal static string Background_take_precedence_over_low_power_conditions {
+ get {
+ return ResourceManager.GetString("Background_take_precedence_over_low_power_conditions", resourceCulture);
+ }
+ }
+
+ internal static string Low_power_take_precedence_over_background {
+ get {
+ return ResourceManager.GetString("Low_power_take_precedence_over_background", resourceCulture);
+ }
+ }
}
}
diff --git a/Aaru.Decoders/Localization/Localization.resx b/Aaru.Decoders/Localization/Localization.resx
index 457af0d96..c788d8e3e 100644
--- a/Aaru.Decoders/Localization/Localization.resx
+++ b/Aaru.Decoders/Localization/Localization.resx
@@ -9757,4 +9757,34 @@
80 mm CD-R with data and audio
+
+ SCSI Power condition page:
+
+
+ Standby timer Z is set to {0} ms
+
+
+ Standby timer Y is set to {0} ms
+
+
+ Drive will not enter standby mode
+
+
+ Idle timer A is set to {0} ms
+
+
+ Idle timer B is set to {0} ms
+
+
+ Idle timer C is set to {0} ms
+
+
+ Drive will not enter idle mode
+
+
+ Performing background functions take precedence over maintaining low power conditions
+
+
+ Maintaining low power conditions take precedence over performing background functions
+
\ No newline at end of file
diff --git a/Aaru.Decoders/SCSI/Modes/1A.cs b/Aaru.Decoders/SCSI/Modes/1A.cs
index 2ff93832d..ef29b97c4 100644
--- a/Aaru.Decoders/SCSI/Modes/1A.cs
+++ b/Aaru.Decoders/SCSI/Modes/1A.cs
@@ -141,49 +141,59 @@ public static partial class Modes
ModePage_1A page = modePage.Value;
var sb = new StringBuilder();
- sb.AppendLine("SCSI Power condition page:");
+ sb.AppendLine($"[bold][blue]{Localization.SCSI_Power_condition_page}[/][/]");
- if(page.PS) sb.AppendLine("\t" + Localization.Parameters_can_be_saved);
+ if(page.PS) sb.AppendLine($"\t[green]{Localization.Parameters_can_be_saved}[/]");
if(page is { Standby: true, StandbyTimer: > 0 } or { Standby_Y: true, StandbyTimer_Y: > 0 })
{
if(page is { Standby: true, StandbyTimer: > 0 })
- sb.AppendFormat("\t" + "Standby timer Z is set to {0} ms", page.StandbyTimer * 100).AppendLine();
+ sb.AppendFormat($"\t[slateblue1]{Localization.Standby_timer_Z_is_set_to_0_ms}[/]",
+ $"[teal]{page.StandbyTimer * 100}[/]")
+ .AppendLine();
if(page is { Standby_Y: true, StandbyTimer_Y: > 0 })
- sb.AppendFormat("\t" + "Standby timer Y is set to {0} ms", page.StandbyTimer_Y * 100).AppendLine();
+ sb.AppendFormat($"\t[slateblue1]{Localization.Standby_timer_Y_is_set_to_0_ms}[/]",
+ $"[teal]{page.StandbyTimer_Y * 100}[/]")
+ .AppendLine();
}
else
- sb.AppendLine("\t" + "Drive will not enter standby mode");
+ sb.AppendLine($"\t[red]{Localization.Drive_will_not_enter_standby_mode}[/]");
if(page is { Idle : true, IdleTimer : > 0 }
or { Idle_B: true, IdleTimer_B: > 0 }
or { Idle_C: true, IdleTimer_C: > 0 })
{
if(page is { Idle: true, IdleTimer: > 0 })
- sb.AppendFormat("\t" + "Idle timer A is set to {0} ms", page.IdleTimer * 100).AppendLine();
+ sb.AppendFormat($"\t[slateblue1]{Localization.Idle_timer_A_is_set_to_0_ms}[/]",
+ $"[teal]{page.IdleTimer * 100}[/]")
+ .AppendLine();
if(page is { Idle_B: true, IdleTimer_B: > 0 })
- sb.AppendFormat("\t" + "Idle timer B is set to {0} ms", page.IdleTimer_B * 100).AppendLine();
+ sb.AppendFormat($"\t[slateblue1]{Localization.Idle_timer_B_is_set_to_0_ms}[/]",
+ $"[teal]{page.IdleTimer_B * 100}[/]")
+ .AppendLine();
if(page is { Idle_C: true, IdleTimer_C: > 0 })
- sb.AppendFormat("\t" + "Idle timer C is set to {0} ms", page.IdleTimer_C * 100).AppendLine();
+ sb.AppendFormat($"\t[slateblue1]{Localization.Idle_timer_C_is_set_to_0_ms}[/]",
+ $"[teal]{page.IdleTimer_C * 100}[/]")
+ .AppendLine();
}
else
- sb.AppendLine("\t" + "Drive will not enter idle mode");
+ sb.AppendLine($"\t[red]{Localization.Drive_will_not_enter_idle_mode}[/]");
switch(page.PM_BG_Precedence)
{
case 0:
break;
case 1:
- sb.AppendLine("\t" +
- "Performing background functions take precedence over maintaining low power conditions");
+ sb.AppendLine($"\t[olive]{
+ Localization.Background_take_precedence_over_low_power_conditions}[/]");
break;
case 2:
- sb.AppendLine("\t" +
- "Maintaining low power conditions take precedence over performing background functions");
+ sb.AppendLine($"\t[green]{
+ Localization.Low_power_take_precedence_over_background}[/]");
break;
}