Extract storage comp text to locale file (#7289)

This commit is contained in:
Morbo
2022-03-27 10:08:26 +03:00
committed by GitHub
parent 1e3369741c
commit 4a6dfabcae
2 changed files with 4 additions and 3 deletions

View File

@@ -256,14 +256,14 @@ namespace Content.Server.Storage.Components
if (!handSys.TryDrop(player, toInsert.Value, handsComp: hands))
{
Owner.PopupMessage(player, "Can't insert.");
Owner.PopupMessage(player, Loc.GetString("comp-storage-cant-insert"));
return false;
}
if (!Insert(toInsert.Value))
{
handSys.PickupOrDrop(player, toInsert.Value, handsComp: hands);
Owner.PopupMessage(player, "Can't insert.");
Owner.PopupMessage(player, Loc.GetString("comp-storage-cant-insert"));
return false;
}
@@ -282,7 +282,7 @@ namespace Content.Server.Storage.Components
if (!Insert(toInsert))
{
Owner.PopupMessage(player, "Can't insert.");
Owner.PopupMessage(player, Loc.GetString("comp-storage-cant-insert"));
return false;
}
return true;

View File

@@ -1,4 +1,5 @@
comp-storage-no-item-size = None
comp-storage-cant-insert = Can't insert.
comp-storage-window-title = Storage Item
comp-storage-window-volume = Items: { $itemCount }, Stored: { $usedVolume }/{ $maxVolume }
comp-storage-window-volume-unlimited = Items: { $itemCount }