diff --git a/Content.Server/GameObjects/Components/WindowComponent.cs b/Content.Server/GameObjects/Components/WindowComponent.cs index ebc0e7de3b..d7902c03b6 100644 --- a/Content.Server/GameObjects/Components/WindowComponent.cs +++ b/Content.Server/GameObjects/Components/WindowComponent.cs @@ -106,22 +106,22 @@ namespace Content.Server.GameObjects.Components switch (level) { case 0: - message.AddText(Loc.GetString("It looks fully intact.")); + message.AddText(Loc.GetString("comp-window-damaged-1")); break; case 1: - message.AddText(Loc.GetString("It has a few scratches.")); + message.AddText(Loc.GetString("comp-window-damaged-2")); break; case 2: - message.AddText(Loc.GetString("It has a few small cracks.")); + message.AddText(Loc.GetString("comp-window-damaged-3")); break; case 3: - message.AddText(Loc.GetString("It has several big cracks running along its surface.")); + message.AddText(Loc.GetString("comp-window-damaged-4")); break; case 4: - message.AddText(Loc.GetString("It has deep cracks across multiple layers.")); + message.AddText(Loc.GetString("comp-window-damaged-5")); break; case 5: - message.AddText(Loc.GetString("It is extremely badly cracked and on the verge of shattering.")); + message.AddText(Loc.GetString("comp-window-damaged-6")); break; } } @@ -135,7 +135,7 @@ namespace Content.Server.GameObjects.Components EntitySystem.Get() .PlayAtCoords("/Audio/Effects/glass_knock.ogg", eventArgs.Target.Transform.Coordinates, AudioHelpers.WithVariation(0.05f)); - eventArgs.Target.PopupMessageEveryone(Loc.GetString("*knock knock*")); + eventArgs.Target.PopupMessageEveryone(Loc.GetString("comp-window-knock")); _lastKnockTime = _gameTiming.CurTime; diff --git a/Resources/Locale/en-US/components/window-component.ftl b/Resources/Locale/en-US/components/window-component.ftl new file mode 100644 index 0000000000..3650cc89ab --- /dev/null +++ b/Resources/Locale/en-US/components/window-component.ftl @@ -0,0 +1,14 @@ +### UI + +# Shown when examining the window. Each entry represents the window's health condition +comp-window-damaged-1 = It looks fully intact. +comp-window-damaged-2 = It has a few scratches +comp-window-damaged-3 = It has a few small cracks. +comp-window-damaged-4 = It has several big cracks running along its surface. +comp-window-damaged-5 = It has deep cracks across multiple layers. +comp-window-damaged-6 = It is extremely cracked and on the verge of shattering. + +### Interaction Messages + +# Shown when knocking on a window +comp-window-knock = *knock knock*