mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Colorize fs list.
This commit is contained in:
@@ -695,10 +695,10 @@
|
|||||||
<value>Texto</value>
|
<value>Texto</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Directory_0" xml:space="preserve">
|
<data name="Directory_0" xml:space="preserve">
|
||||||
<value>Directorio: {0}</value>
|
<value>[slateblue1]Directorio: [green]{0}[/]</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Directory_abbreviation" xml:space="preserve">
|
<data name="Directory_abbreviation" xml:space="preserve">
|
||||||
<value><DIR></value>
|
<value>[green]<DIR>[/]</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Directory_where_extracted_files_will_be_created" xml:space="preserve">
|
<data name="Directory_where_extracted_files_will_be_created" xml:space="preserve">
|
||||||
<value>Se creará el directorio donde se extraerán los ficheros. Se abortará si existe</value>
|
<value>Se creará el directorio donde se extraerán los ficheros. Se abortará si existe</value>
|
||||||
@@ -902,7 +902,7 @@
|
|||||||
<value>[red]Error [orange3]{0}[/] leyendo etiqueta del medio, no se continuará...[/]</value>
|
<value>[red]Error [orange3]{0}[/] leyendo etiqueta del medio, no se continuará...[/]</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Error_0_reading_root_directory" xml:space="preserve">
|
<data name="Error_0_reading_root_directory" xml:space="preserve">
|
||||||
<value>Error {0} leyendo directorio raíz.</value>
|
<value>[red]Error [orange3]{0}[/] leyendo directorio raíz.[red]</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Error_0_reading_SCSI_INQUIRY_response_from_disc_image" xml:space="preserve">
|
<data name="Error_0_reading_SCSI_INQUIRY_response_from_disc_image" xml:space="preserve">
|
||||||
<value>Error {0} leyendo la respuesta de SCSI INQUIRY de la imagen</value>
|
<value>Error {0} leyendo la respuesta de SCSI INQUIRY de la imagen</value>
|
||||||
@@ -1320,7 +1320,7 @@
|
|||||||
<value>[red]Formato de imagen no identificado, no se procede con la extracción de ficheros.[/]</value>
|
<value>[red]Formato de imagen no identificado, no se procede con la extracción de ficheros.[/]</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Image_format_not_identified_not_proceeding_with_listing" xml:space="preserve">
|
<data name="Image_format_not_identified_not_proceeding_with_listing" xml:space="preserve">
|
||||||
<value>Format de imagen no identificado, no se procede con el listado.</value>
|
<value>[red]Format de imagen no identificado, no se procede con el listado.[/]</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Image_format_not_identified_not_proceeding_with_sidecar_creation" xml:space="preserve">
|
<data name="Image_format_not_identified_not_proceeding_with_sidecar_creation" xml:space="preserve">
|
||||||
<value>Format de imagen no identificado, no se procede con la creación del sidecar.</value>
|
<value>Format de imagen no identificado, no se procede con la creación del sidecar.</value>
|
||||||
@@ -1635,7 +1635,7 @@
|
|||||||
<value>[red]Más de un plugin soporta la extensión solicitada.[/]</value>
|
<value>[red]Más de un plugin soporta la extensión solicitada.[/]</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Mounting_filesystem" xml:space="preserve">
|
<data name="Mounting_filesystem" xml:space="preserve">
|
||||||
<value>Montando sistema de ficheros...</value>
|
<value>[slateblue1]Montando sistema de ficheros...[/]</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Namespaces_for_0" xml:space="preserve">
|
<data name="Namespaces_for_0" xml:space="preserve">
|
||||||
<value>Espacios de nombre para {0}:</value>
|
<value>Espacios de nombre para {0}:</value>
|
||||||
@@ -1800,7 +1800,7 @@
|
|||||||
<value>Leyendo datos...</value>
|
<value>Leyendo datos...</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Reading_directory" xml:space="preserve">
|
<data name="Reading_directory" xml:space="preserve">
|
||||||
<value>Leyendo directorio...</value>
|
<value>[slateblue1]Leyendo directorio...[/]</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Reading_extended_attribute" xml:space="preserve">
|
<data name="Reading_extended_attribute" xml:space="preserve">
|
||||||
<value>[slateblue1]Leyendo atributo extendido...[/]</value>
|
<value>[slateblue1]Leyendo atributo extendido...[/]</value>
|
||||||
@@ -1848,7 +1848,7 @@
|
|||||||
<value>El fichero de resumen no contiene información del hardware de volcado...</value>
|
<value>El fichero de resumen no contiene información del hardware de volcado...</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Retrieving_file_information" xml:space="preserve">
|
<data name="Retrieving_file_information" xml:space="preserve">
|
||||||
<value>Obteniendo información del fichero...</value>
|
<value>[slateblue1]Obteniendo información del fichero...[/]</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Retrieving_SCSI_information" xml:space="preserve">
|
<data name="Retrieving_SCSI_information" xml:space="preserve">
|
||||||
<value>[slateblue1]Obteniendo información SCSI...[/]</value>
|
<value>[slateblue1]Obteniendo información SCSI...[/]</value>
|
||||||
@@ -1860,7 +1860,7 @@
|
|||||||
<value>Reintentar el subcanal. Implica corregir su posición.</value>
|
<value>Reintentar el subcanal. Implica corregir su posición.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Root_directory" xml:space="preserve">
|
<data name="Root_directory" xml:space="preserve">
|
||||||
<value>Directorio raíz</value>
|
<value>[slateblue1]Directorio raíz[/]</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Save_descriptors_to_file" xml:space="preserve">
|
<data name="Save_descriptors_to_file" xml:space="preserve">
|
||||||
<value>Guardar descriptores a fichero</value>
|
<value>Guardar descriptores a fichero</value>
|
||||||
|
|||||||
@@ -453,7 +453,7 @@ In you are unsure, please press N to not continue.</value>
|
|||||||
<value>[slateblue1]As identified by [fuchsia]{0}[/].[/]</value>
|
<value>[slateblue1]As identified by [fuchsia]{0}[/].[/]</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Mounting_filesystem" xml:space="preserve">
|
<data name="Mounting_filesystem" xml:space="preserve">
|
||||||
<value>Mounting filesystem...</value>
|
<value>[slateblue1]Mounting filesystem...[/]</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Unable_to_mount_volume_error_0" xml:space="preserve">
|
<data name="Unable_to_mount_volume_error_0" xml:space="preserve">
|
||||||
<value>[red]Unable to mount volume, error [orange3]{0}[/][/]</value>
|
<value>[red]Unable to mount volume, error [orange3]{0}[/][/]</value>
|
||||||
@@ -465,10 +465,10 @@ In you are unsure, please press N to not continue.</value>
|
|||||||
<value>[red]Error reading file:[/] [orange3]{0}[/]</value>
|
<value>[red]Error reading file:[/] [orange3]{0}[/]</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Error_0_reading_root_directory" xml:space="preserve">
|
<data name="Error_0_reading_root_directory" xml:space="preserve">
|
||||||
<value>Error {0} reading root directory.</value>
|
<value>[red]Error [orange3]{0}[/] reading root directory.[red]</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Retrieving_file_information" xml:space="preserve">
|
<data name="Retrieving_file_information" xml:space="preserve">
|
||||||
<value>Retrieving file information...</value>
|
<value>[slateblue1]Retrieving file information...[/]</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Created_subdirectory_at_0" xml:space="preserve">
|
<data name="Created_subdirectory_at_0" xml:space="preserve">
|
||||||
<value>[slateblue1]Created subdirectory at [blue]{0}[/][/]</value>
|
<value>[slateblue1]Created subdirectory at [blue]{0}[/][/]</value>
|
||||||
@@ -537,22 +537,22 @@ In you are unsure, please press N to not continue.</value>
|
|||||||
<value>Use long format.</value>
|
<value>Use long format.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Image_format_not_identified_not_proceeding_with_listing" xml:space="preserve">
|
<data name="Image_format_not_identified_not_proceeding_with_listing" xml:space="preserve">
|
||||||
<value>Image format not identified, not proceeding with listing.</value>
|
<value>[red]Image format not identified, not proceeding with listing.[/]</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Root_directory" xml:space="preserve">
|
<data name="Root_directory" xml:space="preserve">
|
||||||
<value>Root directory</value>
|
<value>[slateblue1]Root directory[/]</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Directory_0" xml:space="preserve">
|
<data name="Directory_0" xml:space="preserve">
|
||||||
<value>Directory: {0}</value>
|
<value>[slateblue1]Directory:[/] [green]{0}[/]</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Reading_directory" xml:space="preserve">
|
<data name="Reading_directory" xml:space="preserve">
|
||||||
<value>Reading directory...</value>
|
<value>[slateblue1]Reading directory...[/]</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Error_0_reading_directory_1" xml:space="preserve">
|
<data name="Error_0_reading_directory_1" xml:space="preserve">
|
||||||
<value>[red]Error [orange3]{0}[/] reading directory [green]{1}[/][/]</value>
|
<value>[red]Error [orange3]{0}[/] reading directory [green]{1}[/][/]</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Directory_abbreviation" xml:space="preserve">
|
<data name="Directory_abbreviation" xml:space="preserve">
|
||||||
<value><DIR></value>
|
<value>[green]<DIR>[/]</value>
|
||||||
<comment>Directory abbreviation as shown in CLI filesystem listing, like old DOS showed</comment>
|
<comment>Directory abbreviation as shown in CLI filesystem listing, like old DOS showed</comment>
|
||||||
</data>
|
</data>
|
||||||
<data name="Read_only_filesystems_options" xml:space="preserve">
|
<data name="Read_only_filesystems_options" xml:space="preserve">
|
||||||
|
|||||||
@@ -157,15 +157,11 @@ sealed class LsCommand : Command<LsCommand.Settings>
|
|||||||
|
|
||||||
AaruLogging.Debug(MODULE_NAME, UI.Correctly_opened_image_file);
|
AaruLogging.Debug(MODULE_NAME, UI.Correctly_opened_image_file);
|
||||||
|
|
||||||
AaruLogging.Debug(MODULE_NAME,
|
AaruLogging.Debug(MODULE_NAME, UI.Image_without_headers_is_0_bytes, imageFormat.Info.ImageSize);
|
||||||
UI.Image_without_headers_is_0_bytes,
|
|
||||||
imageFormat.Info.ImageSize);
|
|
||||||
|
|
||||||
AaruLogging.Debug(MODULE_NAME, UI.Image_has_0_sectors, imageFormat.Info.Sectors);
|
AaruLogging.Debug(MODULE_NAME, UI.Image_has_0_sectors, imageFormat.Info.Sectors);
|
||||||
|
|
||||||
AaruLogging.Debug(MODULE_NAME,
|
AaruLogging.Debug(MODULE_NAME, UI.Image_identifies_media_type_as_0, imageFormat.Info.MediaType);
|
||||||
UI.Image_identifies_media_type_as_0,
|
|
||||||
imageFormat.Info.MediaType);
|
|
||||||
|
|
||||||
Statistics.AddMediaFormat(imageFormat.Format);
|
Statistics.AddMediaFormat(imageFormat.Format);
|
||||||
Statistics.AddMedia(imageFormat.Info.MediaType, false);
|
Statistics.AddMedia(imageFormat.Info.MediaType, false);
|
||||||
@@ -353,17 +349,17 @@ sealed class LsCommand : Command<LsCommand.Settings>
|
|||||||
if(entry.Value.Attributes.HasFlag(FileAttributes.Directory))
|
if(entry.Value.Attributes.HasFlag(FileAttributes.Directory))
|
||||||
{
|
{
|
||||||
AaruLogging.WriteLine("{0, 10:d} {0, 12:T} {1, -20} {2}",
|
AaruLogging.WriteLine("{0, 10:d} {0, 12:T} {1, -20} {2}",
|
||||||
entry.Value.CreationTimeUtc,
|
$"[dodgerblue1]{entry.Value.CreationTimeUtc}[/]",
|
||||||
UI.Directory_abbreviation,
|
UI.Directory_abbreviation,
|
||||||
Markup.Escape(entry.Key));
|
$"[teal]{Markup.Escape(entry.Key)}[/]");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
AaruLogging.WriteLine("{0, 10:d} {0, 12:T} {1, 6}{2, 14:N0} {3}",
|
AaruLogging.WriteLine("{0, 10:d} {0, 12:T} {1, 6}{2, 14:N0} {3}",
|
||||||
entry.Value.CreationTimeUtc,
|
$"[dodgerblue1]{entry.Value.CreationTimeUtc}[/]",
|
||||||
entry.Value.Inode,
|
$"[fuchsia]{entry.Value.Inode}[/]",
|
||||||
entry.Value.Length,
|
$"[lime]{entry.Value.Length}[/]",
|
||||||
Markup.Escape(entry.Key));
|
$"[teal]{Markup.Escape(entry.Key)}[/]");
|
||||||
}
|
}
|
||||||
|
|
||||||
error = fs.ListXAttr(path + "/" + entry.Key, out List<string> xattrs);
|
error = fs.ListXAttr(path + "/" + entry.Key, out List<string> xattrs);
|
||||||
@@ -376,7 +372,9 @@ sealed class LsCommand : Command<LsCommand.Settings>
|
|||||||
error = fs.GetXattr(path + "/" + entry.Key, xattr, ref xattrBuf);
|
error = fs.GetXattr(path + "/" + entry.Key, xattr, ref xattrBuf);
|
||||||
|
|
||||||
if(error == ErrorNumber.NoError)
|
if(error == ErrorNumber.NoError)
|
||||||
AaruLogging.WriteLine("\t\t{0}\t{1:##,#}", Markup.Escape(xattr), xattrBuf.Length);
|
AaruLogging.WriteLine("\t\t[orange3]{0}[/]\t{1:##,#}",
|
||||||
|
Markup.Escape(xattr),
|
||||||
|
xattrBuf.Length);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -385,9 +383,9 @@ sealed class LsCommand : Command<LsCommand.Settings>
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
AaruLogging.WriteLine(entry.Value?.Attributes.HasFlag(FileAttributes.Directory) == true
|
AaruLogging.WriteLine(entry.Value?.Attributes.HasFlag(FileAttributes.Directory) == true
|
||||||
? "{0}/"
|
? "[green]{0}/[/]"
|
||||||
: "{0}",
|
: "[teal]{0}[/]",
|
||||||
entry.Key);
|
Markup.Escape(entry.Key));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user