Add lead-in and lead-out to

This commit is contained in:
Rebecca Wallander
2026-02-22 10:57:51 +01:00
parent cdef88a9ca
commit 9e6f7c06ab
3 changed files with 15 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
// /***************************************************************************
// /***************************************************************************
// Aaru Data Preservation Suite
// ----------------------------------------------------------------------------
//
@@ -105,6 +105,11 @@ public static class ImageInfo
imageFormat.Info.SectorSize,
ByteSize.FromBytes(imageFormat.Info.Sectors * imageFormat.Info.SectorSize).Humanize());
if(imageFormat.Info.NegativeSectors > 0 || imageFormat.Info.OverflowSectors > 0)
AaruLogging.WriteLine(Localization.Core.Image_has_0_leadin_and_1_leadout_sectors_WithMarkup,
imageFormat.Info.NegativeSectors,
imageFormat.Info.OverflowSectors);
if(!string.IsNullOrWhiteSpace(imageFormat.Info.Creator))
AaruLogging.WriteLine(Localization.Core.Created_by_0_WithMarkup, Markup.Escape(imageFormat.Info.Creator));

View File

@@ -1022,6 +1022,12 @@ namespace Aaru.Localization {
return ResourceManager.GetString("Contains_a_media_of_0_sectors_with_a_maximum_sector_size_of_1_bytes_etc", resourceCulture);
}
}
public static string Image_has_0_leadin_and_1_leadout_sectors_WithMarkup {
get {
return ResourceManager.GetString("Image_has_0_leadin_and_1_leadout_sectors_WithMarkup", resourceCulture);
}
}
public static string Contains_a_media_of_type_0_and_XML_type_1 {
get {

View File

@@ -517,6 +517,9 @@
</data>
<data name="Contains_a_media_of_0_sectors_with_a_maximum_sector_size_of_1_bytes_etc" xml:space="preserve">
<value>[slateblue1]Contains a media of [lime]{0}[/] sectors with a maximum sector size of [teal]{1}[/] bytes (if all sectors are of the same size this would be [aqua]{2}[/])[/]</value>
</data>
<data name="Image_has_0_leadin_and_1_leadout_sectors_WithMarkup" xml:space="preserve">
<value>[slateblue1]Has [lime]{0}[/] lead-in sectors and (up to) [lime]{1}[/] lead-out sectors.[/]</value>
</data>
<data name="Contains_a_media_of_type_0_and_XML_type_1" xml:space="preserve">
<value>Contains a media of type {0} and XML type {1}</value>