Move markup to resources in list-namespaces command.

This commit is contained in:
2025-08-18 14:58:39 +01:00
parent 00581f7bd2
commit 137b776877
2 changed files with 6 additions and 6 deletions

View File

@@ -1657,11 +1657,11 @@ pool with no way of using them to identify you.</value>
<comment>{0} is the number of supported archive formats</comment>
</data>
<data name="Namespaces_for_0" xml:space="preserve">
<value>Namespaces for {0}:</value>
<value>[bold][blue]Namespaces for [teal]{0}[/]:[/][/]</value>
<comment>{0} is the filesystem plugin name</comment>
</data>
<data name="Title_Namespace" xml:space="preserve">
<value>Namespace</value>
<value>[darkgreen]Namespace[/]</value>
</data>
<data name="Invalid_list_of_items" xml:space="preserve">
<value>Invalid list of items</value>

View File

@@ -68,15 +68,15 @@ sealed class ListNamespacesCommand : Command<ListNamespacesCommand.Settings>
Table table = new()
{
Title = new TableTitle(string.Format($"[bold][blue]{UI.Namespaces_for_0}[/][/]",
$"[teal]{Markup.Escape(fs.Name)}[/]"))
Title = new TableTitle(string.Format(UI.Namespaces_for_0,
Markup.Escape(fs.Name)))
};
table.Border(TableBorder.Rounded);
table.BorderColor(Color.Yellow);
table.AddColumn(new TableColumn(new Markup($"[bold][darkgreen]{UI.Title_Namespace}[/][/]").Centered()));
table.AddColumn(new TableColumn(new Markup($"[bold][slateblue1]{UI.Title_Description}[/][/]").Centered()));
table.AddColumn(new TableColumn(new Markup(UI.Title_Namespace).Centered()));
table.AddColumn(new TableColumn(new Markup(UI.Title_Description).Centered()));
foreach(KeyValuePair<string, string> @namespace in fs.Namespaces.OrderBy(t => t.Key))
{