[VirtualPC disk image] Translate new strings to Spanish.

This commit is contained in:
2024-01-02 00:40:51 +00:00
parent 71f86bfaad
commit 4825d41460
5 changed files with 83 additions and 9 deletions

View File

@@ -504,6 +504,15 @@ namespace Aaru.Images {
}
}
/// <summary>
/// Looks up a localized string similar to Block size too small for number of sectors, try with a bigger value..
/// </summary>
internal static string Block_size_too_small_for_number_of_sectors {
get {
return ResourceManager.GetString("Block_size_too_small_for_number_of_sectors", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Block type {0} with data type {1} is indexed to be at {2}.
/// </summary>
@@ -1602,6 +1611,15 @@ namespace Aaru.Images {
}
}
/// <summary>
/// Looks up a localized string similar to Create a dynamic image, empty sectors are ignored.
/// </summary>
internal static string Create_a_dynamic_image {
get {
return ResourceManager.GetString("Create_a_dynamic_image", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Creator: &quot;{0}&quot;.
/// </summary>
@@ -4699,6 +4717,15 @@ namespace Aaru.Images {
}
}
/// <summary>
/// Looks up a localized string similar to Invalid block size..
/// </summary>
internal static string Invalid_block_size {
get {
return ResourceManager.GetString("Invalid_block_size", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Invalid compression type {0} for block with data type {1}, continuing....
/// </summary>
@@ -4807,6 +4834,15 @@ namespace Aaru.Images {
}
}
/// <summary>
/// Looks up a localized string similar to Invalid value for dynamic option..
/// </summary>
internal static string Invalid_value_for_dynamic_option {
get {
return ResourceManager.GetString("Invalid_value_for_dynamic_option", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Invalid value for hwversion option.
/// </summary>
@@ -8235,6 +8271,15 @@ namespace Aaru.Images {
}
}
/// <summary>
/// Looks up a localized string similar to Block size. Must be a power of 2. Only 2MiB and 512KiB are supported by VirtualPC.
/// </summary>
internal static string Vhd_Block_size_Must_be_a_power_of_2 {
get {
return ResourceManager.GetString("Vhd_Block_size_Must_be_a_power_of_2", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Virtual PC.
/// </summary>

View File

@@ -2934,4 +2934,19 @@
<data name="_5_6_or_7" xml:space="preserve">
<value>5, 6 ó 7</value>
</data>
<data name="Block_size_too_small_for_number_of_sectors" xml:space="preserve">
<value>Tamaño del bloque demasiado pequeño para el número de sectores, intenta uno mayor.</value>
</data>
<data name="Invalid_block_size" xml:space="preserve">
<value>Tamaño de bloque no válido.</value>
</data>
<data name="Invalid_value_for_dynamic_option" xml:space="preserve">
<value>Valor no válido para opción dinámica.</value>
</data>
<data name="Vhd_Block_size_Must_be_a_power_of_2" xml:space="preserve">
<value>Tamaño de bloque. Debe ser potencia de 2. VirtualPC sólo soporta 2MiB y 512KiB</value>
</data>
<data name="Create_a_dynamic_image" xml:space="preserve">
<value>Crear una imagen dinámica, los sectores vacíos se ignoran</value>
</data>
</root>

View File

@@ -2944,4 +2944,19 @@
<data name="A2R_Name" xml:space="preserve">
<value>A2R</value>
</data>
<data name="Invalid_block_size" xml:space="preserve">
<value>Invalid block size.</value>
</data>
<data name="Invalid_value_for_dynamic_option" xml:space="preserve">
<value>Invalid value for dynamic option.</value>
</data>
<data name="Block_size_too_small_for_number_of_sectors" xml:space="preserve">
<value>Block size too small for number of sectors, try with a bigger value.</value>
</data>
<data name="Create_a_dynamic_image" xml:space="preserve">
<value>Create a dynamic image, empty sectors are ignored</value>
</data>
<data name="Vhd_Block_size_Must_be_a_power_of_2" xml:space="preserve">
<value>Block size. Must be a power of 2. Only 2MiB and 512KiB are supported by VirtualPC</value>
</data>
</root>

View File

@@ -88,9 +88,8 @@ public sealed partial class Vhd
/// <inheritdoc />
public IEnumerable<(string name, Type type, string description, object @default)> SupportedOptions => new[]
{
("dynamic", typeof(bool), "Create a dynamic image, empty sectors are ignored", (object)true),
("block_size", typeof(uint),
"Block size. Must be a power of 2. Only 2MiB and 512KiB are supported by VirtualPC", 2097152)
("dynamic", typeof(bool), Localization.Create_a_dynamic_image, (object)true),
("block_size", typeof(uint), Localization.Vhd_Block_size_Must_be_a_power_of_2, 2097152)
};
/// <inheritdoc />

View File

@@ -62,7 +62,7 @@ public sealed partial class Vhd
{
if(!uint.TryParse(tmpValue, out _blockSize))
{
ErrorMessage = "Invalid block size.";
ErrorMessage = Localization.Invalid_block_size;
return false;
}
@@ -74,7 +74,7 @@ public sealed partial class Vhd
{
if(!bool.TryParse(tmpValue, out _dynamic))
{
ErrorMessage = "Invalid option for dynamic image.";
ErrorMessage = Localization.Invalid_value_for_dynamic_option;
return false;
}
@@ -155,7 +155,7 @@ public sealed partial class Vhd
if(numberOfBlocks > uint.MaxValue)
{
ErrorMessage = "Block size too small for number of sectors, try with a bigger value.";
ErrorMessage = Localization.Block_size_too_small_for_number_of_sectors;
return false;
}
@@ -231,7 +231,7 @@ public sealed partial class Vhd
_writingStream.Seek((long)(0 + sectorAddress * 512), SeekOrigin.Begin);
_writingStream.Write(data, 0, data.Length);
ErrorMessage = "";
ErrorMessage = string.Empty;
return true;
}
@@ -389,7 +389,7 @@ public sealed partial class Vhd
_writingStream.Seek((long)(0 + sectorAddress * 512), SeekOrigin.Begin);
_writingStream.Write(data, 0, data.Length);
ErrorMessage = "";
ErrorMessage = string.Empty;
return true;
}
@@ -426,7 +426,7 @@ public sealed partial class Vhd
_writingStream.Close();
IsWriting = false;
ErrorMessage = "";
ErrorMessage = string.Empty;
return true;
}