mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Localize strings in convert.
This commit is contained in:
@@ -698,5 +698,11 @@ namespace Aaru.Archives {
|
||||
return ResourceManager.GetString("Archive_contains_0_files", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
internal static string Converting_negative_sector_0_of_1 {
|
||||
get {
|
||||
return ResourceManager.GetString("Converting_negative_sector_0_of_1", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -350,4 +350,7 @@
|
||||
<data name="Archive_contains_0_files" xml:space="preserve">
|
||||
<value>[slateblue1]Archive contains [green]{0}[/] files[/]</value>
|
||||
</data>
|
||||
<data name="Converting_negative_sector_0_of_1" xml:space="preserve">
|
||||
<value>[slateblue1]Converting sector -[lime]{0}[/] of -[violet]{1}[/][/]</value>
|
||||
</data>
|
||||
</root>
|
||||
72
Aaru.Localization/UI.Designer.cs
generated
72
Aaru.Localization/UI.Designer.cs
generated
@@ -6147,5 +6147,77 @@ namespace Aaru.Localization {
|
||||
return ResourceManager.GetString("Error_connecting_to_host", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Converting_negative_sector_0_of_1 {
|
||||
get {
|
||||
return ResourceManager.GetString("Converting_negative_sector_0_of_1", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Error_0_reading_negative_sector_1_continuing {
|
||||
get {
|
||||
return ResourceManager.GetString("Error_0_reading_negative_sector_1_continuing", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Error_0_reading_negative_sector_1_not_continuing {
|
||||
get {
|
||||
return ResourceManager.GetString("Error_0_reading_negative_sector_1_not_continuing", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Error_0_writing_negative_sector_1_continuing {
|
||||
get {
|
||||
return ResourceManager.GetString("Error_0_writing_negative_sector_1_continuing", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Error_0_writing_negative_sector_1_not_continuing {
|
||||
get {
|
||||
return ResourceManager.GetString("Error_0_writing_negative_sector_1_not_continuing", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Converting_tag_1_for_negative_sector_0 {
|
||||
get {
|
||||
return ResourceManager.GetString("Converting_tag_1_for_negative_sector_0", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Converting_overflow_sector_0_of_1 {
|
||||
get {
|
||||
return ResourceManager.GetString("Converting_overflow_sector_0_of_1", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Error_0_reading_overflow_sector_1_continuing {
|
||||
get {
|
||||
return ResourceManager.GetString("Error_0_reading_overflow_sector_1_continuing", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Error_0_reading_overflow_sector_1_not_continuing {
|
||||
get {
|
||||
return ResourceManager.GetString("Error_0_reading_overflow_sector_1_not_continuing", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Error_0_writing_overflow_sector_1_continuing {
|
||||
get {
|
||||
return ResourceManager.GetString("Error_0_writing_overflow_sector_1_continuing", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Error_0_writing_overflow_sector_1_not_continuing {
|
||||
get {
|
||||
return ResourceManager.GetString("Error_0_writing_overflow_sector_1_not_continuing", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Converting_tag_1_for_overflow_sector_0 {
|
||||
get {
|
||||
return ResourceManager.GetString("Converting_tag_1_for_overflow_sector_0", resourceCulture);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3074,4 +3074,40 @@ Probadores:
|
||||
<data name="Running_in_0_architecture" xml:space="preserve">
|
||||
<value>Ejecutándose en arquitectura {0}</value>
|
||||
</data>
|
||||
<data name="Converting_negative_sector_0_of_1" xml:space="preserve">
|
||||
<value>[slateblue1]Convirtiendo sector [lime]-{0}[/] of [violet]-{1}[/][/]</value>
|
||||
</data>
|
||||
<data name="Converting_overflow_sector_0_of_1" xml:space="preserve">
|
||||
<value>[slateblue1]Convirtiendo sector de sobrecarga [lime]{0}[/] de [violet]{1}[/][/]</value>
|
||||
</data>
|
||||
<data name="Converting_tag_1_for_negative_sector_0" xml:space="preserve">
|
||||
<value>[slateblue1]Convirtiendo etiqueta [orange3]{1}[/] del sector [lime]-{0}[/][/]</value>
|
||||
</data>
|
||||
<data name="Converting_tag_1_for_overflow_sector_0" xml:space="preserve">
|
||||
<value>[slateblue1]Convirtiendo etiqueta [orange3]{1}[/] del sector de sobrecarga [lime]{0}[/][/]</value>
|
||||
</data>
|
||||
<data name="Error_0_reading_negative_sector_1_continuing" xml:space="preserve">
|
||||
<value>[olive]Error [orange3]{0}[/] leyendo sector [lime]-{1}[/], se continuará...[/]</value>
|
||||
</data>
|
||||
<data name="Error_0_reading_negative_sector_1_not_continuing" xml:space="preserve">
|
||||
<value>[red]Error [orange3]{0}[/] leyendo sector [lime]-{1}[/], no se continuará...[/]</value>
|
||||
</data>
|
||||
<data name="Error_0_reading_overflow_sector_1_continuing" xml:space="preserve">
|
||||
<value>[olive]Error [orange3]{0}[/] leyendo sector de sobrecarga [lime]{1}[/], se continuará...[/]</value>
|
||||
</data>
|
||||
<data name="Error_0_reading_overflow_sector_1_not_continuing" xml:space="preserve">
|
||||
<value>[red]Error [orange3]{0}[/] leyendo sector de sobrecarga [lime]{1}[/], no se continuará...[/]</value>
|
||||
</data>
|
||||
<data name="Error_0_writing_negative_sector_1_continuing" xml:space="preserve">
|
||||
<value>[olive]Error [orange3]{0}[/] escribiendo sector [lime]-{1}[/], se continuará...[/]</value>
|
||||
</data>
|
||||
<data name="Error_0_writing_negative_sector_1_not_continuing" xml:space="preserve">
|
||||
<value>[red]Error [orange3]{0}[/] escribiendo sector [lime]-{1}[/], no se continuará...[/]</value>
|
||||
</data>
|
||||
<data name="Error_0_writing_overflow_sector_1_continuing" xml:space="preserve">
|
||||
<value>[olive]Error [orange3]{0}[/] escribiendo sector de sobrecarga [lime]{1}[/], se continuará...[/]</value>
|
||||
</data>
|
||||
<data name="Error_0_writing_overflow_sector_1_not_continuing" xml:space="preserve">
|
||||
<value>[red]Error [orange3]{0}[/] escribiendo sector de sobrecarga [lime]{1}[/], no se continuará...[/]</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -3150,4 +3150,40 @@ Do you want to continue?</value>
|
||||
<data name="Error_connecting_to_host" xml:space="preserve">
|
||||
<value>[red]Error connecting to host.[/]</value>
|
||||
</data>
|
||||
<data name="Converting_negative_sector_0_of_1" xml:space="preserve">
|
||||
<value>[slateblue1]Converting sector [lime]-{0}[/] of [violet]-{1}[/][/]</value>
|
||||
</data>
|
||||
<data name="Error_0_reading_negative_sector_1_continuing" xml:space="preserve">
|
||||
<value>[olive]Error [orange3]{0}[/] reading sector [lime]-{1}[/], continuing...[/]</value>
|
||||
</data>
|
||||
<data name="Error_0_reading_negative_sector_1_not_continuing" xml:space="preserve">
|
||||
<value>[red]Error [orange3]{0}[/] reading sector [lime]-{1}[/], not continuing...[/]</value>
|
||||
</data>
|
||||
<data name="Error_0_writing_negative_sector_1_continuing" xml:space="preserve">
|
||||
<value>[olive]Error [orange3]{0}[/] writing sector [lime]-{1}[/], continuing...[/]</value>
|
||||
</data>
|
||||
<data name="Error_0_writing_negative_sector_1_not_continuing" xml:space="preserve">
|
||||
<value>[red]Error [orange3]{0}[/] writing sector [lime]-{1}[/], not continuing...[/]</value>
|
||||
</data>
|
||||
<data name="Converting_tag_1_for_negative_sector_0" xml:space="preserve">
|
||||
<value>[slateblue1]Converting tag [orange3]{1}[/] for sector [lime]-{0}[/][/]</value>
|
||||
</data>
|
||||
<data name="Converting_overflow_sector_0_of_1" xml:space="preserve">
|
||||
<value>[slateblue1]Converting overflow sector [lime]{0}[/] of [violet]{1}[/][/]</value>
|
||||
</data>
|
||||
<data name="Error_0_reading_overflow_sector_1_continuing" xml:space="preserve">
|
||||
<value>[olive]Error [orange3]{0}[/] reading overflow sector [lime]{1}[/], continuing...[/]</value>
|
||||
</data>
|
||||
<data name="Error_0_reading_overflow_sector_1_not_continuing" xml:space="preserve">
|
||||
<value>[red]Error [orange3]{0}[/] reading overflow sector [lime]{1}[/], not continuing...[/]</value>
|
||||
</data>
|
||||
<data name="Error_0_writing_overflow_sector_1_continuing" xml:space="preserve">
|
||||
<value>[olive]Error [orange3]{0}[/] writing overflow sector [lime]{1}[/], continuing...[/]</value>
|
||||
</data>
|
||||
<data name="Error_0_writing_overflow_sector_1_not_continuing" xml:space="preserve">
|
||||
<value>[red]Error [orange3]{0}[/] writing overflow sector [lime]{1}[/], not continuing...[/]</value>
|
||||
</data>
|
||||
<data name="Converting_tag_1_for_overflow_sector_0" xml:space="preserve">
|
||||
<value>[slateblue1]Converting tag [orange3]{1}[/] for overflow sector [lime]{0}[/][/]</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -2016,7 +2016,7 @@ sealed class ConvertImageCommand : Command<ConvertImageCommand.Settings>
|
||||
byte[] sector;
|
||||
|
||||
mediaTask.Description =
|
||||
string.Format("Converting sector -{0} of -{1}", i, nominalNegativeSectors);
|
||||
string.Format(UI.Converting_negative_sector_0_of_1, i, nominalNegativeSectors);
|
||||
|
||||
bool result;
|
||||
SectorStatus sectorStatus;
|
||||
@@ -2033,15 +2033,11 @@ sealed class ConvertImageCommand : Command<ConvertImageCommand.Settings>
|
||||
|
||||
if(settings.Force)
|
||||
{
|
||||
AaruLogging
|
||||
.Error("[olive]Error [orange3]{0}[/] reading sector [lime]-{1}[/], continuing...",
|
||||
errno,
|
||||
i);
|
||||
AaruLogging.Error(UI.Error_0_reading_negative_sector_1_continuing, errno, i);
|
||||
}
|
||||
else
|
||||
{
|
||||
AaruLogging
|
||||
.Error("[red]Error [orange3]{0}[/] reading sector [lime]-{1}[/], not continuing...",
|
||||
AaruLogging.Error(UI.Error_0_reading_negative_sector_1_not_continuing,
|
||||
errno,
|
||||
i);
|
||||
|
||||
@@ -2061,15 +2057,11 @@ sealed class ConvertImageCommand : Command<ConvertImageCommand.Settings>
|
||||
|
||||
if(settings.Force)
|
||||
{
|
||||
AaruLogging
|
||||
.Error("[olive]Error [orange3]{0}[/] reading sector [lime]-{1}[/], continuing...",
|
||||
errno,
|
||||
i);
|
||||
AaruLogging.Error(UI.Error_0_reading_negative_sector_1_continuing, errno, i);
|
||||
}
|
||||
else
|
||||
{
|
||||
AaruLogging
|
||||
.Error("[red]Error [orange3]{0}[/] reading sector [lime]-{1}[/], not continuing...",
|
||||
AaruLogging.Error(UI.Error_0_reading_negative_sector_1_not_continuing,
|
||||
errno,
|
||||
i);
|
||||
|
||||
@@ -2082,15 +2074,13 @@ sealed class ConvertImageCommand : Command<ConvertImageCommand.Settings>
|
||||
{
|
||||
if(settings.Force)
|
||||
{
|
||||
AaruLogging
|
||||
.Error("[olive]Error [orange3]{0}[/] writing sector [lime]-{1}[/], continuing...[/]",
|
||||
AaruLogging.Error(UI.Error_0_writing_negative_sector_1_continuing,
|
||||
outputMedia.ErrorMessage,
|
||||
i);
|
||||
}
|
||||
else
|
||||
{
|
||||
AaruLogging
|
||||
.Error("[red]Error [orange3]{0}[/] writing sector [lime]-{1}[/], not continuing...[/]",
|
||||
AaruLogging.Error(UI.Error_0_writing_negative_sector_1_not_continuing,
|
||||
outputMedia.ErrorMessage,
|
||||
i);
|
||||
|
||||
@@ -2130,11 +2120,7 @@ sealed class ConvertImageCommand : Command<ConvertImageCommand.Settings>
|
||||
|
||||
for(uint i = 1; i <= nominalNegativeSectors; i++)
|
||||
{
|
||||
tagsTask.Description =
|
||||
string
|
||||
.Format("[slateblue1]Converting tag [orange3]{1}[/] for sector [lime]-{0}[/][/]",
|
||||
i,
|
||||
tag);
|
||||
tagsTask.Description = string.Format(UI.Converting_tag_1_for_negative_sector_0, i, tag);
|
||||
|
||||
bool result;
|
||||
|
||||
@@ -2148,15 +2134,11 @@ sealed class ConvertImageCommand : Command<ConvertImageCommand.Settings>
|
||||
|
||||
if(settings.Force)
|
||||
{
|
||||
AaruLogging
|
||||
.Error("[olive]Error [orange3]{0}[/] reading sector [lime]-{1}[/], continuing...",
|
||||
errno,
|
||||
i);
|
||||
AaruLogging.Error(UI.Error_0_reading_negative_sector_1_continuing, errno, i);
|
||||
}
|
||||
else
|
||||
{
|
||||
AaruLogging
|
||||
.Error("[red]Error [orange3]{0}[/] reading sector [lime]-{1}[/], not continuing...",
|
||||
AaruLogging.Error(UI.Error_0_reading_negative_sector_1_not_continuing,
|
||||
errno,
|
||||
i);
|
||||
|
||||
@@ -2168,15 +2150,13 @@ sealed class ConvertImageCommand : Command<ConvertImageCommand.Settings>
|
||||
{
|
||||
if(settings.Force)
|
||||
{
|
||||
AaruLogging
|
||||
.Error("[olive]Error [orange3]{0}[/] writing sector [lime]-{1}[/], continuing...[/]",
|
||||
AaruLogging.Error(UI.Error_0_writing_negative_sector_1_continuing,
|
||||
outputMedia.ErrorMessage,
|
||||
i);
|
||||
}
|
||||
else
|
||||
{
|
||||
AaruLogging
|
||||
.Error("[red]Error [orange3]{0}[/] writing sector [lime]-{1}[/], not continuing...[/]",
|
||||
AaruLogging.Error(UI.Error_0_writing_negative_sector_1_not_continuing,
|
||||
outputMedia.ErrorMessage,
|
||||
i);
|
||||
|
||||
@@ -2220,7 +2200,7 @@ sealed class ConvertImageCommand : Command<ConvertImageCommand.Settings>
|
||||
byte[] sector;
|
||||
|
||||
mediaTask.Description =
|
||||
string.Format("Converting overflow sector {0} of {1}", i, nominalOverflowSectors);
|
||||
string.Format(UI.Converting_overflow_sector_0_of_1, i, nominalOverflowSectors);
|
||||
|
||||
bool result;
|
||||
SectorStatus sectorStatus;
|
||||
@@ -2233,25 +2213,23 @@ sealed class ConvertImageCommand : Command<ConvertImageCommand.Settings>
|
||||
out sectorStatus);
|
||||
|
||||
if(errno == ErrorNumber.NoError)
|
||||
{
|
||||
result = outputMedia.WriteSectorLong(sector,
|
||||
inputFormat.Info.Sectors + i,
|
||||
false,
|
||||
sectorStatus);
|
||||
}
|
||||
else
|
||||
{
|
||||
result = true;
|
||||
|
||||
if(settings.Force)
|
||||
{
|
||||
AaruLogging
|
||||
.Error("[olive]Error [orange3]{0}[/] reading overflow sector [lime]{1}[/], continuing...",
|
||||
errno,
|
||||
i);
|
||||
AaruLogging.Error(UI.Error_0_reading_overflow_sector_1_continuing, errno, i);
|
||||
}
|
||||
else
|
||||
{
|
||||
AaruLogging
|
||||
.Error("[red]Error [orange3]{0}[/] reading overflow sector [lime]{1}[/], not continuing...",
|
||||
AaruLogging.Error(UI.Error_0_reading_overflow_sector_1_not_continuing,
|
||||
errno,
|
||||
i);
|
||||
|
||||
@@ -2267,25 +2245,23 @@ sealed class ConvertImageCommand : Command<ConvertImageCommand.Settings>
|
||||
out sectorStatus);
|
||||
|
||||
if(errno == ErrorNumber.NoError)
|
||||
{
|
||||
result = outputMedia.WriteSector(sector,
|
||||
inputFormat.Info.Sectors + i,
|
||||
false,
|
||||
sectorStatus);
|
||||
}
|
||||
else
|
||||
{
|
||||
result = true;
|
||||
|
||||
if(settings.Force)
|
||||
{
|
||||
AaruLogging
|
||||
.Error("[olive]Error [orange3]{0}[/] reading overflow sector [lime]{1}[/], continuing...",
|
||||
errno,
|
||||
i);
|
||||
AaruLogging.Error(UI.Error_0_reading_overflow_sector_1_continuing, errno, i);
|
||||
}
|
||||
else
|
||||
{
|
||||
AaruLogging
|
||||
.Error("[red]Error [orange3]{0}[/] reading overflow sector [lime]{1}[/], not continuing...",
|
||||
AaruLogging.Error(UI.Error_0_reading_overflow_sector_1_not_continuing,
|
||||
errno,
|
||||
i);
|
||||
|
||||
@@ -2298,15 +2274,13 @@ sealed class ConvertImageCommand : Command<ConvertImageCommand.Settings>
|
||||
{
|
||||
if(settings.Force)
|
||||
{
|
||||
AaruLogging
|
||||
.Error("[olive]Error [orange3]{0}[/] writing overflow sector [lime]{1}[/], continuing...[/]",
|
||||
AaruLogging.Error(UI.Error_0_writing_overflow_sector_1_continuing,
|
||||
outputMedia.ErrorMessage,
|
||||
i);
|
||||
}
|
||||
else
|
||||
{
|
||||
AaruLogging
|
||||
.Error("[red]Error [orange3]{0}[/] writing overflow sector [lime]{1}[/], not continuing...[/]",
|
||||
AaruLogging.Error(UI.Error_0_writing_overflow_sector_1_not_continuing,
|
||||
outputMedia.ErrorMessage,
|
||||
i);
|
||||
|
||||
@@ -2346,11 +2320,7 @@ sealed class ConvertImageCommand : Command<ConvertImageCommand.Settings>
|
||||
|
||||
for(uint i = 1; i <= nominalOverflowSectors; i++)
|
||||
{
|
||||
tagsTask.Description =
|
||||
string
|
||||
.Format("[slateblue1]Converting tag [orange3]{1}[/] for overflow sector [lime]{0}[/][/]",
|
||||
i,
|
||||
tag);
|
||||
tagsTask.Description = string.Format(UI.Converting_tag_1_for_overflow_sector_0, i, tag);
|
||||
|
||||
bool result;
|
||||
|
||||
@@ -2360,25 +2330,25 @@ sealed class ConvertImageCommand : Command<ConvertImageCommand.Settings>
|
||||
out byte[] sector);
|
||||
|
||||
if(errno == ErrorNumber.NoError)
|
||||
{
|
||||
result = outputMedia.WriteSectorTag(sector,
|
||||
inputFormat.Info.Sectors + i,
|
||||
false,
|
||||
tag);
|
||||
}
|
||||
else
|
||||
{
|
||||
result = true;
|
||||
|
||||
if(settings.Force)
|
||||
{
|
||||
AaruLogging
|
||||
.Error("[olive]Error [orange3]{0}[/] reading overflow sector [lime]{1}[/], continuing...",
|
||||
AaruLogging.Error(UI.Error_0_reading_overflow_sector_1_continuing,
|
||||
errno,
|
||||
inputFormat.Info.Sectors + i);
|
||||
}
|
||||
else
|
||||
{
|
||||
AaruLogging
|
||||
.Error("[red]Error [orange3]{0}[/] reading overflow sector [lime]{1}[/], not continuing...",
|
||||
AaruLogging.Error(UI.Error_0_reading_overflow_sector_1_not_continuing,
|
||||
errno,
|
||||
inputFormat.Info.Sectors + i);
|
||||
|
||||
@@ -2390,15 +2360,13 @@ sealed class ConvertImageCommand : Command<ConvertImageCommand.Settings>
|
||||
{
|
||||
if(settings.Force)
|
||||
{
|
||||
AaruLogging
|
||||
.Error("[olive]Error [orange3]{0}[/] writing overflow sector [lime]{1}[/], continuing...[/]",
|
||||
AaruLogging.Error(UI.Error_0_writing_overflow_sector_1_continuing,
|
||||
outputMedia.ErrorMessage,
|
||||
inputFormat.Info.Sectors + i);
|
||||
}
|
||||
else
|
||||
{
|
||||
AaruLogging
|
||||
.Error("[red]Error [orange3]{0}[/] writing overflow sector [lime]{1}[/], not continuing...[/]",
|
||||
AaruLogging.Error(UI.Error_0_writing_overflow_sector_1_not_continuing,
|
||||
outputMedia.ErrorMessage,
|
||||
inputFormat.Info.Sectors + i);
|
||||
|
||||
@@ -2543,6 +2511,4 @@ sealed class ConvertImageCommand : Command<ConvertImageCommand.Settings>
|
||||
[CommandOption("--ignore-overflow-sectors")]
|
||||
public bool IgnoreOverflowSectors { get; init; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
Reference in New Issue
Block a user