diff --git a/QSB/Localization/Translation.cs b/QSB/Localization/Translation.cs index 7968c406..72addba5 100644 --- a/QSB/Localization/Translation.cs +++ b/QSB/Localization/Translation.cs @@ -47,5 +47,7 @@ public class Translation public string YouAreDead; public string WaitingForRespawn; public string WaitingForAllToDie; + public string AttachToShip; + public string DetachFromShip; public Dictionary DeathMessages; } diff --git a/QSB/ShipSync/ShipCustomAttach.cs b/QSB/ShipSync/ShipCustomAttach.cs index 6ce9adc2..9d0fa9ef 100644 --- a/QSB/ShipSync/ShipCustomAttach.cs +++ b/QSB/ShipSync/ShipCustomAttach.cs @@ -1,12 +1,20 @@ -using UnityEngine; +using QSB.Localization; +using UnityEngine; namespace QSB.ShipSync; public class ShipCustomAttach : MonoBehaviour { - private static readonly ScreenPrompt _attachPrompt = new(InputLibrary.interactSecondary, InputLibrary.interact, - "Attach to ship" + " ", ScreenPrompt.MultiCommandType.HOLD_ONE_AND_PRESS_2ND); - private static readonly ScreenPrompt _detachPrompt = new(InputLibrary.cancel, "Detach from ship" + " "); + private static readonly ScreenPrompt _attachPrompt = new( + InputLibrary.interactSecondary, + InputLibrary.interact, + QSBLocalization.Current.AttachToShip + " ", + ScreenPrompt.MultiCommandType.HOLD_ONE_AND_PRESS_2ND); + + private static readonly ScreenPrompt _detachPrompt = new( + InputLibrary.cancel, + QSBLocalization.Current.DetachFromShip + " "); + private PlayerAttachPoint _playerAttachPoint; private void Awake() diff --git a/QSB/Translations/en.json b/QSB/Translations/en.json index 32d1aa7d..e0605cfc 100644 --- a/QSB/Translations/en.json +++ b/QSB/Translations/en.json @@ -42,6 +42,8 @@ "YouAreDead": "You are dead.", "WaitingForRespawn": "Waiting for someone to respawn you...", "WaitingForAllToDie": "Waiting for {0} player(s) to die...", + "AttachToShip": "Attach to ship", + "DetachFromShip": "Detach from ship", "DeathMessages": { "Default": [ "{0} died",