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 System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
@@ -43,7 +43,7 @@ namespace Content.Server.Configurable
{
foreach (var key in _keys)
{
_config.Add(key, "");
_config.Add(key, string.Empty);
}
}
@@ -102,7 +102,7 @@ namespace Content.Server.Configurable
{
var value = msg.Config.GetValueOrDefault(key);
if (value == null || _validation != null && !_validation.IsMatch(value) && value != "")
if (value == null || _validation != null && !_validation.IsMatch(value) && value != string.Empty)
continue;
_config[key] = value;
@@ -144,7 +144,7 @@ namespace Content.Server.Configurable
return;
}
data.Text = Loc.GetString("Open Configuration");
data.Text = Loc.GetString("configure-verb-get-data-text");
data.IconTexture = "/Textures/Interface/VerbIcons/settings.svg.192dpi.png";
}