diff --git a/Content.Server/UserInterface/StatValuesCommand.cs b/Content.Server/UserInterface/StatValuesCommand.cs index a507fd1fda..944a7e6080 100644 --- a/Content.Server/UserInterface/StatValuesCommand.cs +++ b/Content.Server/UserInterface/StatValuesCommand.cs @@ -17,19 +17,19 @@ namespace Content.Server.UserInterface; public sealed class StatValuesCommand : IConsoleCommand { public string Command => "showvalues"; - public string Description => "Dumps all stats for a particular category into a table."; + public string Description => Loc.GetString("stat-values-desc"); public string Help => $"{Command} "; public void Execute(IConsoleShell shell, string argStr, string[] args) { if (shell.Player is not IPlayerSession pSession) { - shell.WriteError($"{Command} can't be run on server!"); + shell.WriteError(Loc.GetString("stat-values-server")); return; } if (args.Length != 1) { - shell.WriteError($"Invalid number of args, need 1"); + shell.WriteError(Loc.GetString("stat-values-args")); return; } @@ -47,7 +47,7 @@ public sealed class StatValuesCommand : IConsoleCommand message = GetMelee(); break; default: - shell.WriteError($"{args[0]} is not a valid stat!"); + shell.WriteError(Loc.GetString("stat-values-invalid", ("arg", args[0]))); return; } @@ -64,7 +64,7 @@ public sealed class StatValuesCommand : IConsoleCommand var values = new List(); var entManager = IoCManager.Resolve(); - var priceSystem = IoCManager.Resolve().GetEntitySystem(); + var priceSystem = entManager.System(); var metaQuery = entManager.GetEntityQuery(); var prices = new HashSet(256); @@ -93,11 +93,11 @@ public sealed class StatValuesCommand : IConsoleCommand var state = new StatValuesEuiMessage() { - Title = "Cargo sell prices", + Title = Loc.GetString("stat-cargo-values"), Headers = new List() { - "ID", - "Price", + Loc.GetString("stat-cargo-id"), + Loc.GetString("stat-cargo-price"), }, Values = values, }; @@ -179,12 +179,12 @@ public sealed class StatValuesCommand : IConsoleCommand var state = new StatValuesEuiMessage() { - Title = "Lathe sell prices", + Title = Loc.GetString("stat-lathe-values"), Headers = new List() { - "ID", - "Cost", - "Sell price", + Loc.GetString("stat-lathe-id"), + Loc.GetString("stat-lathe-cost"), + Loc.GetString("stat-lathe-sell"), }, Values = values, }; diff --git a/Resources/Locale/en-US/commands/stat-values-command.ftl b/Resources/Locale/en-US/commands/stat-values-command.ftl new file mode 100644 index 0000000000..66fa5d98b9 --- /dev/null +++ b/Resources/Locale/en-US/commands/stat-values-command.ftl @@ -0,0 +1,15 @@ +stat-values-desc = Dumps all stats for a particular category into a table. +stat-values-server = Can't be run on the server! +stat-values-args = Invalid number of args, need 1 +stat-values-invalid = {$arg} is not a valid stat! + +# Cargo +stat-cargo-values = Cargo sell prices +stat-cargo-id = ID +stat-cargo-price = Price + +# Lathe +stat-lathe-values = Lathe sell prices +stat-lathe-id = ID +stat-lathe-cost = Cost +stat-lathe-sell = Sell price