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,11 +695,11 @@
|
||||
<value>Texto</value>
|
||||
</data>
|
||||
<data name="Directory_0" xml:space="preserve">
|
||||
<value>Directorio: {0}</value>
|
||||
</data>
|
||||
<value>[slateblue1]Directorio: [green]{0}[/]</value>
|
||||
</data>
|
||||
<data name="Directory_abbreviation" xml:space="preserve">
|
||||
<value><DIR></value>
|
||||
</data>
|
||||
<value>[green]<DIR>[/]</value>
|
||||
</data>
|
||||
<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>
|
||||
</data>
|
||||
@@ -902,8 +902,8 @@
|
||||
<value>[red]Error [orange3]{0}[/] leyendo etiqueta del medio, no se continuará...[/]</value>
|
||||
</data>
|
||||
<data name="Error_0_reading_root_directory" xml:space="preserve">
|
||||
<value>Error {0} leyendo directorio raíz.</value>
|
||||
</data>
|
||||
<value>[red]Error [orange3]{0}[/] leyendo directorio raíz.[red]</value>
|
||||
</data>
|
||||
<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>
|
||||
</data>
|
||||
@@ -1320,8 +1320,8 @@
|
||||
<value>[red]Formato de imagen no identificado, no se procede con la extracción de ficheros.[/]</value>
|
||||
</data>
|
||||
<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>
|
||||
</data>
|
||||
<value>[red]Format de imagen no identificado, no se procede con el listado.[/]</value>
|
||||
</data>
|
||||
<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>
|
||||
</data>
|
||||
@@ -1635,8 +1635,8 @@
|
||||
<value>[red]Más de un plugin soporta la extensión solicitada.[/]</value>
|
||||
</data>
|
||||
<data name="Mounting_filesystem" xml:space="preserve">
|
||||
<value>Montando sistema de ficheros...</value>
|
||||
</data>
|
||||
<value>[slateblue1]Montando sistema de ficheros...[/]</value>
|
||||
</data>
|
||||
<data name="Namespaces_for_0" xml:space="preserve">
|
||||
<value>Espacios de nombre para {0}:</value>
|
||||
</data>
|
||||
@@ -1800,8 +1800,8 @@
|
||||
<value>Leyendo datos...</value>
|
||||
</data>
|
||||
<data name="Reading_directory" xml:space="preserve">
|
||||
<value>Leyendo directorio...</value>
|
||||
</data>
|
||||
<value>[slateblue1]Leyendo directorio...[/]</value>
|
||||
</data>
|
||||
<data name="Reading_extended_attribute" xml:space="preserve">
|
||||
<value>[slateblue1]Leyendo atributo extendido...[/]</value>
|
||||
</data>
|
||||
@@ -1848,8 +1848,8 @@
|
||||
<value>El fichero de resumen no contiene información del hardware de volcado...</value>
|
||||
</data>
|
||||
<data name="Retrieving_file_information" xml:space="preserve">
|
||||
<value>Obteniendo información del fichero...</value>
|
||||
</data>
|
||||
<value>[slateblue1]Obteniendo información del fichero...[/]</value>
|
||||
</data>
|
||||
<data name="Retrieving_SCSI_information" xml:space="preserve">
|
||||
<value>[slateblue1]Obteniendo información SCSI...[/]</value>
|
||||
</data>
|
||||
@@ -1860,8 +1860,8 @@
|
||||
<value>Reintentar el subcanal. Implica corregir su posición.</value>
|
||||
</data>
|
||||
<data name="Root_directory" xml:space="preserve">
|
||||
<value>Directorio raíz</value>
|
||||
</data>
|
||||
<value>[slateblue1]Directorio raíz[/]</value>
|
||||
</data>
|
||||
<data name="Save_descriptors_to_file" xml:space="preserve">
|
||||
<value>Guardar descriptores a fichero</value>
|
||||
</data>
|
||||
|
||||
@@ -453,8 +453,8 @@ In you are unsure, please press N to not continue.</value>
|
||||
<value>[slateblue1]As identified by [fuchsia]{0}[/].[/]</value>
|
||||
</data>
|
||||
<data name="Mounting_filesystem" xml:space="preserve">
|
||||
<value>Mounting filesystem...</value>
|
||||
</data>
|
||||
<value>[slateblue1]Mounting filesystem...[/]</value>
|
||||
</data>
|
||||
<data name="Unable_to_mount_volume_error_0" xml:space="preserve">
|
||||
<value>[red]Unable to mount volume, error [orange3]{0}[/][/]</value>
|
||||
</data>
|
||||
@@ -465,11 +465,11 @@ In you are unsure, please press N to not continue.</value>
|
||||
<value>[red]Error reading file:[/] [orange3]{0}[/]</value>
|
||||
</data>
|
||||
<data name="Error_0_reading_root_directory" xml:space="preserve">
|
||||
<value>Error {0} reading root directory.</value>
|
||||
</data>
|
||||
<value>[red]Error [orange3]{0}[/] reading root directory.[red]</value>
|
||||
</data>
|
||||
<data name="Retrieving_file_information" xml:space="preserve">
|
||||
<value>Retrieving file information...</value>
|
||||
</data>
|
||||
<value>[slateblue1]Retrieving file information...[/]</value>
|
||||
</data>
|
||||
<data name="Created_subdirectory_at_0" xml:space="preserve">
|
||||
<value>[slateblue1]Created subdirectory at [blue]{0}[/][/]</value>
|
||||
</data>
|
||||
@@ -537,24 +537,24 @@ In you are unsure, please press N to not continue.</value>
|
||||
<value>Use long format.</value>
|
||||
</data>
|
||||
<data name="Image_format_not_identified_not_proceeding_with_listing" xml:space="preserve">
|
||||
<value>Image format not identified, not proceeding with listing.</value>
|
||||
</data>
|
||||
<value>[red]Image format not identified, not proceeding with listing.[/]</value>
|
||||
</data>
|
||||
<data name="Root_directory" xml:space="preserve">
|
||||
<value>Root directory</value>
|
||||
</data>
|
||||
<value>[slateblue1]Root directory[/]</value>
|
||||
</data>
|
||||
<data name="Directory_0" xml:space="preserve">
|
||||
<value>Directory: {0}</value>
|
||||
</data>
|
||||
<value>[slateblue1]Directory:[/] [green]{0}[/]</value>
|
||||
</data>
|
||||
<data name="Reading_directory" xml:space="preserve">
|
||||
<value>Reading directory...</value>
|
||||
</data>
|
||||
<value>[slateblue1]Reading directory...[/]</value>
|
||||
</data>
|
||||
<data name="Error_0_reading_directory_1" xml:space="preserve">
|
||||
<value>[red]Error [orange3]{0}[/] reading directory [green]{1}[/][/]</value>
|
||||
</data>
|
||||
<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>
|
||||
</data>
|
||||
</data>
|
||||
<data name="Read_only_filesystems_options" xml:space="preserve">
|
||||
<value>Read-only filesystems options:</value>
|
||||
</data>
|
||||
|
||||
@@ -157,15 +157,11 @@ sealed class LsCommand : Command<LsCommand.Settings>
|
||||
|
||||
AaruLogging.Debug(MODULE_NAME, UI.Correctly_opened_image_file);
|
||||
|
||||
AaruLogging.Debug(MODULE_NAME,
|
||||
UI.Image_without_headers_is_0_bytes,
|
||||
imageFormat.Info.ImageSize);
|
||||
AaruLogging.Debug(MODULE_NAME, 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_identifies_media_type_as_0,
|
||||
imageFormat.Info.MediaType);
|
||||
AaruLogging.Debug(MODULE_NAME, UI.Image_identifies_media_type_as_0, imageFormat.Info.MediaType);
|
||||
|
||||
Statistics.AddMediaFormat(imageFormat.Format);
|
||||
Statistics.AddMedia(imageFormat.Info.MediaType, false);
|
||||
@@ -353,17 +349,17 @@ sealed class LsCommand : Command<LsCommand.Settings>
|
||||
if(entry.Value.Attributes.HasFlag(FileAttributes.Directory))
|
||||
{
|
||||
AaruLogging.WriteLine("{0, 10:d} {0, 12:T} {1, -20} {2}",
|
||||
entry.Value.CreationTimeUtc,
|
||||
$"[dodgerblue1]{entry.Value.CreationTimeUtc}[/]",
|
||||
UI.Directory_abbreviation,
|
||||
Markup.Escape(entry.Key));
|
||||
$"[teal]{Markup.Escape(entry.Key)}[/]");
|
||||
}
|
||||
else
|
||||
{
|
||||
AaruLogging.WriteLine("{0, 10:d} {0, 12:T} {1, 6}{2, 14:N0} {3}",
|
||||
entry.Value.CreationTimeUtc,
|
||||
entry.Value.Inode,
|
||||
entry.Value.Length,
|
||||
Markup.Escape(entry.Key));
|
||||
$"[dodgerblue1]{entry.Value.CreationTimeUtc}[/]",
|
||||
$"[fuchsia]{entry.Value.Inode}[/]",
|
||||
$"[lime]{entry.Value.Length}[/]",
|
||||
$"[teal]{Markup.Escape(entry.Key)}[/]");
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
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
|
||||
@@ -385,9 +383,9 @@ sealed class LsCommand : Command<LsCommand.Settings>
|
||||
else
|
||||
{
|
||||
AaruLogging.WriteLine(entry.Value?.Attributes.HasFlag(FileAttributes.Directory) == true
|
||||
? "{0}/"
|
||||
: "{0}",
|
||||
entry.Key);
|
||||
? "[green]{0}/[/]"
|
||||
: "[teal]{0}[/]",
|
||||
Markup.Escape(entry.Key));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user