Use TheName macro and GrammarComponent (#1396)
This commit is contained in:
@@ -120,7 +120,7 @@ namespace Content.Server.GameObjects.Components.Gravity
|
||||
|
||||
var notifyManager = IoCManager.Resolve<IServerNotifyManager>();
|
||||
|
||||
notifyManager.PopupMessage(Owner, eventArgs.User, Loc.GetString("You repair the gravity generator with the welder"));
|
||||
notifyManager.PopupMessage(Owner, eventArgs.User, Loc.GetString("You repair {0:theName} with {1:theName}", Owner, eventArgs.Using));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ namespace Content.Server.GameObjects.Components.Nutrition
|
||||
|
||||
if (UsesRemaining <= 0)
|
||||
{
|
||||
user.PopupMessage(user, Loc.GetString($"The {Owner.Name} is empty!"));
|
||||
user.PopupMessage(user, Loc.GetString("{0:TheName} is empty!", Owner));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace Content.Server.GameObjects.Components
|
||||
if (size > MaxItemSize)
|
||||
{
|
||||
Owner.PopupMessage(eventArgs.User,
|
||||
Loc.GetString("{0:TheName} is too big to fit in the plant!", eventArgs.Using.Name));
|
||||
Loc.GetString("{0:TheName} is too big to fit in the plant!", eventArgs.Using));
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace Content.Server.GameObjects.Components
|
||||
return false;
|
||||
}
|
||||
|
||||
Owner.PopupMessage(eventArgs.User, Loc.GetString("You hide {0:theName} in the plant.", eventArgs.Using.Name));
|
||||
Owner.PopupMessage(eventArgs.User, Loc.GetString("You hide {0:theName} in the plant.", eventArgs.Using));
|
||||
Rustle();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ namespace Content.Server.GameObjects.Components.Weapon.Melee
|
||||
{
|
||||
sprite.LayerSetState(0, "burnt");
|
||||
|
||||
_notifyManager.PopupMessage(Owner, user, "The flash burns out!");
|
||||
_notifyManager.PopupMessage(Owner, user, Loc.GetString("The flash burns out!"));
|
||||
}
|
||||
else if (!_flashing)
|
||||
{
|
||||
@@ -151,7 +151,7 @@ namespace Content.Server.GameObjects.Components.Weapon.Melee
|
||||
|
||||
if (entity != user)
|
||||
{
|
||||
_notifyManager.PopupMessage(user, entity, $"{user.Name} blinds you with the {Owner.Name}");
|
||||
_notifyManager.PopupMessage(user, entity, Loc.GetString("{0:TheName} blinds you with {1:theName}", user, Owner));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -166,7 +166,7 @@ namespace Content.Server.GameObjects.Components.Weapon.Melee
|
||||
if (inDetailsRange)
|
||||
{
|
||||
message.AddMarkup(_localizationManager.GetString(
|
||||
$"The flash has [color=green]{Uses}[/color] uses remaining."));
|
||||
"The flash has [color=green]{0}[/color] uses remaining.", Uses));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user