From cf73f8f9e6c5b6b8cd3e73898ca978abd9f2a7ae Mon Sep 17 00:00:00 2001 From: MayoCollector Date: Mon, 19 Jan 2026 14:39:21 +0900 Subject: [PATCH] Localise "hold for menu" & "press for menu" in `HoldForMenuButton` (#36381) --- osu.Game/Localisation/UserInterfaceStrings.cs | 10 ++++++++++ osu.Game/Screens/Play/HUD/HoldForMenuButton.cs | 5 +++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/osu.Game/Localisation/UserInterfaceStrings.cs b/osu.Game/Localisation/UserInterfaceStrings.cs index 9883ffe173..08b6368571 100644 --- a/osu.Game/Localisation/UserInterfaceStrings.cs +++ b/osu.Game/Localisation/UserInterfaceStrings.cs @@ -174,6 +174,16 @@ namespace osu.Game.Localisation /// public static LocalisableString SelectedMods => new TranslatableString(getKey(@"selected_mods"), @"Selected Mods"); + /// + /// "hold for menu" + /// + public static LocalisableString HoldForMenu => new TranslatableString(getKey(@"hold_for_menu"), @"hold for menu"); + + /// + /// "press for menu" + /// + public static LocalisableString PressForMenu => new TranslatableString(getKey(@"press_for_menu"), @"press for menu"); + private static string getKey(string key) => $@"{prefix}:{key}"; } } diff --git a/osu.Game/Screens/Play/HUD/HoldForMenuButton.cs b/osu.Game/Screens/Play/HUD/HoldForMenuButton.cs index 01314c5de6..2772e7514c 100644 --- a/osu.Game/Screens/Play/HUD/HoldForMenuButton.cs +++ b/osu.Game/Screens/Play/HUD/HoldForMenuButton.cs @@ -21,6 +21,7 @@ using osu.Game.Graphics; using osu.Game.Graphics.Containers; using osu.Game.Graphics.Sprites; using osu.Game.Input.Bindings; +using osu.Game.Localisation; using osuTK; using osuTK.Graphics; @@ -93,8 +94,8 @@ namespace osu.Game.Screens.Play.HUD button.HoldActivationDelay.BindValueChanged(v => { text.Text = v.NewValue > 0 - ? "hold for menu" - : "press for menu"; + ? UserInterfaceStrings.HoldForMenu + : UserInterfaceStrings.PressForMenu; }, true); touchActive = sessionStatics.GetBindable(Static.TouchInputActive);