Use TheName macro and GrammarComponent (#1396)

This commit is contained in:
Hugal31
2020-07-17 10:44:32 +02:00
committed by GitHub
parent f313a9267a
commit a5051c549b
8 changed files with 32 additions and 15 deletions

View File

@@ -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;
}