Extract storage comp text to locale file (#7289)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user