Localize disposal unit state (#11725)

This commit is contained in:
Morb
2022-10-06 17:53:36 +03:00
committed by GitHub
parent cb2d2b426b
commit a210373972
2 changed files with 6 additions and 2 deletions

View File

@@ -549,7 +549,7 @@ namespace Content.Server.Disposal.Unit.EntitySystems
public void UpdateInterface(DisposalUnitComponent component, bool powered)
{
var stateString = Loc.GetString($"{component.State}");
var stateString = Loc.GetString($"disposal-unit-state-{component.State}");
var state = new SharedDisposalUnitComponent.DisposalUnitBoundUserInterfaceState(Name(component.Owner), stateString, EstimatedFullPressure(component), powered, component.Engaged);
_ui.TrySetUiState(component.Owner, SharedDisposalUnitComponent.DisposalUnitUiKey.Key, state);