From 7b37b1597640173a1dd51ccc958b8c034d96b7d1 Mon Sep 17 00:00:00 2001 From: Joseph Madamba Date: Sun, 10 Oct 2021 19:36:50 -0700 Subject: [PATCH] Localise some music action toasts --- osu.Game/Overlays/Music/MusicKeyBindingHandler.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/osu.Game/Overlays/Music/MusicKeyBindingHandler.cs b/osu.Game/Overlays/Music/MusicKeyBindingHandler.cs index dba4bf926f..6fb7fb6591 100644 --- a/osu.Game/Overlays/Music/MusicKeyBindingHandler.cs +++ b/osu.Game/Overlays/Music/MusicKeyBindingHandler.cs @@ -6,9 +6,11 @@ using osu.Framework.Bindables; using osu.Framework.Graphics; using osu.Framework.Input.Bindings; using osu.Framework.Input.Events; +using osu.Framework.Localisation; using osu.Game.Beatmaps; using osu.Game.Configuration; using osu.Game.Input.Bindings; +using osu.Game.Localisation; using osu.Game.Overlays.OSD; namespace osu.Game.Overlays.Music @@ -43,7 +45,7 @@ namespace osu.Game.Overlays.Music return true; case GlobalAction.MusicNext: - musicController.NextTrack(() => onScreenDisplay?.Display(new MusicActionToast("Next track", e.Action))); + musicController.NextTrack(() => onScreenDisplay?.Display(new MusicActionToast(GlobalActionKeyBindingStrings.MusicNext, e.Action))); return true; @@ -57,7 +59,7 @@ namespace osu.Game.Overlays.Music break; case PreviousTrackResult.Previous: - onScreenDisplay?.Display(new MusicActionToast("Previous track", e.Action)); + onScreenDisplay?.Display(new MusicActionToast(GlobalActionKeyBindingStrings.MusicPrev, e.Action)); break; } }); @@ -76,7 +78,7 @@ namespace osu.Game.Overlays.Music { private readonly GlobalAction action; - public MusicActionToast(string value, GlobalAction action) + public MusicActionToast(LocalisableString value, GlobalAction action) : base("Music Playback", value, string.Empty) { this.action = action;