mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
*Allow content to define localization functions. * Add rldloc command to reload localizations. * Doc comments * Error handling * Parallelize loading of localization files, since I can only assume we'll have a lot eventually. * Type system stuff to allow content to pass custom data types into fluent. * Code cleanup.
21 lines
623 B
C#
21 lines
623 B
C#
using Robust.Shared.Console;
|
|
using Robust.Shared.IoC;
|
|
using Robust.Shared.Localization;
|
|
|
|
namespace Robust.Client.Console.Commands
|
|
{
|
|
internal sealed class ReloadLocalizationsCommand : IConsoleCommand
|
|
{
|
|
public string Command => "rldloc";
|
|
public string Description => "Reloads localization (client & server)";
|
|
public string Help => "Usage: rldloc";
|
|
|
|
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
|
{
|
|
IoCManager.Resolve<ILocalizationManager>().ReloadLocalizations();
|
|
|
|
shell.RemoteExecuteCommand("sudo rldloc");
|
|
}
|
|
}
|
|
}
|