Removed old Loc.GetString() use instances (#4155)
Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
This commit is contained in:
@@ -163,7 +163,7 @@ namespace Content.Server.Buckle.Components
|
||||
|
||||
if (!EntitySystem.Get<ActionBlockerSystem>().CanInteract(user))
|
||||
{
|
||||
user.PopupMessage(Loc.GetString("You can't do that!"));
|
||||
user.PopupMessage(Loc.GetString("buckle-component-cannot-do-that-message"));
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -193,15 +193,15 @@ namespace Content.Server.Buckle.Components
|
||||
|
||||
if (!user.HasComponent<HandsComponent>())
|
||||
{
|
||||
user.PopupMessage(Loc.GetString("You don't have hands!"));
|
||||
user.PopupMessage(Loc.GetString("buckle-component-no-hands-message "));
|
||||
return false;
|
||||
}
|
||||
|
||||
if (Buckled)
|
||||
{
|
||||
var message = Loc.GetString(Owner == user
|
||||
? "You are already buckled in!"
|
||||
: "{0:They} are already buckled in!", Owner);
|
||||
? "buckle-component-already-buckled-message"
|
||||
: "buckle-component-other-already-buckled-message",("owner", Owner));
|
||||
Owner.PopupMessage(user, message);
|
||||
|
||||
return false;
|
||||
@@ -213,8 +213,8 @@ namespace Content.Server.Buckle.Components
|
||||
if (parent == user.Transform)
|
||||
{
|
||||
var message = Loc.GetString(Owner == user
|
||||
? "You can't buckle yourself there!"
|
||||
: "You can't buckle {0:them} there!", Owner);
|
||||
? "buckle-component-cannot-buckle-message"
|
||||
: "buckle-component-other-cannot-buckle-message",("owner", Owner));
|
||||
Owner.PopupMessage(user, message);
|
||||
|
||||
return false;
|
||||
@@ -226,8 +226,8 @@ namespace Content.Server.Buckle.Components
|
||||
if (!strap.HasSpace(this))
|
||||
{
|
||||
var message = Loc.GetString(Owner == user
|
||||
? "You can't fit there!"
|
||||
: "{0:They} can't fit there!", Owner);
|
||||
? "buckle-component-cannot-fit-message"
|
||||
: "buckle-component-other-cannot-fit-message",("owner", Owner));
|
||||
Owner.PopupMessage(user, message);
|
||||
|
||||
return false;
|
||||
@@ -248,8 +248,8 @@ namespace Content.Server.Buckle.Components
|
||||
if (!strap.TryAdd(this))
|
||||
{
|
||||
var message = Loc.GetString(Owner == user
|
||||
? "You can't buckle yourself there!"
|
||||
: "You can't buckle {0:them} there!", Owner);
|
||||
? "buckle-component-cannot-buckle-message"
|
||||
: "buckle-component-other-cannot-buckle-message",("owner", Owner));
|
||||
Owner.PopupMessage(user, message);
|
||||
return false;
|
||||
}
|
||||
@@ -316,7 +316,7 @@ namespace Content.Server.Buckle.Components
|
||||
|
||||
if (!EntitySystem.Get<ActionBlockerSystem>().CanInteract(user))
|
||||
{
|
||||
user.PopupMessage(Loc.GetString("You can't do that!"));
|
||||
user.PopupMessage(Loc.GetString("buckle-component-cannot-do-that-message"));
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -445,7 +445,7 @@ namespace Content.Server.Buckle.Components
|
||||
return;
|
||||
}
|
||||
|
||||
data.Text = Loc.GetString("Unbuckle");
|
||||
data.Text = Loc.GetString("buckle-verb-unbuckle");
|
||||
}
|
||||
|
||||
protected override void Activate(IEntity user, BuckleComponent component)
|
||||
|
||||
Reference in New Issue
Block a user