Removed old Loc.GetString() use instances (#4155)

Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
This commit is contained in:
Galactic Chimp
2021-06-21 02:13:54 +02:00
committed by GitHub
parent 4a46fbe6dd
commit 392b820796
523 changed files with 3082 additions and 1551 deletions

View File

@@ -1,4 +1,4 @@
using Content.Server.Chat.Managers;
using Content.Server.Chat.Managers;
using Content.Server.Roles;
using Robust.Shared.IoC;
using Robust.Shared.Localization;
@@ -11,7 +11,7 @@ namespace Content.Server.Traitor
{
}
public override string Name => "Syndicate Agent";
public override string Name => Loc.GetString("traitor-role-name");
public override bool Antagonist => true;
public void GreetTraitor(string[] codewords)
@@ -19,8 +19,8 @@ namespace Content.Server.Traitor
if (Mind.TryGetSession(out var session))
{
var chatMgr = IoCManager.Resolve<IChatManager>();
chatMgr.DispatchServerMessage(session, Loc.GetString("Hello Agent!"));
chatMgr.DispatchServerMessage(session, Loc.GetString("Your codewords are: {0}", string.Join(", ",codewords)));
chatMgr.DispatchServerMessage(session, Loc.GetString("traitor-role-greeting"));
chatMgr.DispatchServerMessage(session, Loc.GetString("traitor-role-codewords", ("codewords", string.Join(", ",codewords))));
}
}
}