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

@@ -110,9 +110,9 @@ namespace Content.Server.PowerCell.Components
if (!inDetailsRange) return;
string sizeLetter = SlotSize switch
{
PowerCellSize.Small => Loc.GetString("S"),
PowerCellSize.Medium => Loc.GetString("M"),
PowerCellSize.Large => Loc.GetString("L"),
PowerCellSize.Small => Loc.GetString("power-cell-slot-component-small-size-shorthand"),
PowerCellSize.Medium => Loc.GetString("power-cell-slot-component-medium-size-shorthand"),
PowerCellSize.Large => Loc.GetString("power-cell-slot-component-large-size-shorthand"),
_ => "???"
};
if (DescFormatString != null) message.AddMarkup(string.Format(DescFormatString, sizeLetter));
@@ -189,12 +189,12 @@ namespace Content.Server.PowerCell.Components
if (component.Cell == null)
{
data.Text = Loc.GetString("No cell");
data.Text = Loc.GetString("power-cell-slot-component-no-cell");
data.Visibility = VerbVisibility.Disabled;
}
else
{
data.Text = Loc.GetString("Eject cell");
data.Text = Loc.GetString("power-cell-slot-component-eject-cell");
data.IconTexture = "/Textures/Interface/VerbIcons/eject.svg.192dpi.png";
}