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 System.Collections.Generic;
using System.Collections.Generic;
using Content.Server.Chat.Managers;
using Content.Server.Radio.EntitySystems;
using Content.Shared.Examine;
@@ -65,7 +65,8 @@ namespace Content.Server.Radio.Components
{
RadioOn = !RadioOn;
var message = Loc.GetString($"The radio is now {(RadioOn ? "on" : "off")}.");
var message = Loc.GetString("handheld-radio-component-on-use",
("radioState", Loc.GetString(RadioOn ? "handheld-radio-component-on-state" : "handheld-radio-component-off-state")));
Owner.PopupMessage(user, message);
return true;
@@ -108,7 +109,7 @@ namespace Content.Server.Radio.Components
public void Examine(FormattedMessage message, bool inDetailsRange)
{
message.AddText(Loc.GetString("It is set to broadcast over the {0} frequency.", BroadcastFrequency));
message.AddText(Loc.GetString("handheld-radio-component-on-examine",("frequency", BroadcastFrequency)));
}
}
}