WindowComponent localization update (#3417)

* WindowComponent localization update

* address reviews
This commit is contained in:
AJCM-git
2021-02-26 05:19:12 -04:00
committed by GitHub
parent f23e35dc40
commit 5022a56e76
2 changed files with 21 additions and 7 deletions

View File

@@ -106,22 +106,22 @@ namespace Content.Server.GameObjects.Components
switch (level) switch (level)
{ {
case 0: case 0:
message.AddText(Loc.GetString("It looks fully intact.")); message.AddText(Loc.GetString("comp-window-damaged-1"));
break; break;
case 1: case 1:
message.AddText(Loc.GetString("It has a few scratches.")); message.AddText(Loc.GetString("comp-window-damaged-2"));
break; break;
case 2: case 2:
message.AddText(Loc.GetString("It has a few small cracks.")); message.AddText(Loc.GetString("comp-window-damaged-3"));
break; break;
case 3: case 3:
message.AddText(Loc.GetString("It has several big cracks running along its surface.")); message.AddText(Loc.GetString("comp-window-damaged-4"));
break; break;
case 4: case 4:
message.AddText(Loc.GetString("It has deep cracks across multiple layers.")); message.AddText(Loc.GetString("comp-window-damaged-5"));
break; break;
case 5: 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; break;
} }
} }
@@ -135,7 +135,7 @@ namespace Content.Server.GameObjects.Components
EntitySystem.Get<AudioSystem>() EntitySystem.Get<AudioSystem>()
.PlayAtCoords("/Audio/Effects/glass_knock.ogg", eventArgs.Target.Transform.Coordinates, AudioHelpers.WithVariation(0.05f)); .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; _lastKnockTime = _gameTiming.CurTime;

View File

@@ -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*