diff --git a/osu.Game/Localisation/SoloSpectatorScreenStrings.cs b/osu.Game/Localisation/SoloSpectatorScreenStrings.cs new file mode 100644 index 000000000000..db3513d743df --- /dev/null +++ b/osu.Game/Localisation/SoloSpectatorScreenStrings.cs @@ -0,0 +1,24 @@ +// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. +// See the LICENCE file in the repository root for full licence text. + +using osu.Framework.Localisation; + +namespace osu.Game.Localisation +{ + public static class SoloSpectatorScreenStrings + { + private const string prefix = @"osu.Game.Resources.Localisation.SoloSpectatorScreen"; + + /// + /// "Spectator Mode" + /// + public static LocalisableString SpectatorMode => new TranslatableString(getKey(@"spectator_mode"), @"Spectator Mode"); + + /// + /// "Start Watching" + /// + public static LocalisableString StartWatching => new TranslatableString(getKey(@"start_watching"), @"Start Watching"); + + private static string getKey(string key) => $@"{prefix}:{key}"; + } +} diff --git a/osu.Game/Screens/Play/SoloSpectatorScreen.cs b/osu.Game/Screens/Play/SoloSpectatorScreen.cs index 39f2cd5f86d2..9cb37eb32ee4 100644 --- a/osu.Game/Screens/Play/SoloSpectatorScreen.cs +++ b/osu.Game/Screens/Play/SoloSpectatorScreen.cs @@ -100,7 +100,7 @@ private void load(OsuConfigManager config) { new OsuSpriteText { - Text = "Spectator Mode", + Text = SoloSpectatorScreenStrings.SpectatorMode, Font = OsuFont.Default.With(size: 30), Anchor = Anchor.Centre, Origin = Anchor.Centre, @@ -145,7 +145,7 @@ private void load(OsuConfigManager config) }, watchButton = new PurpleRoundedButton { - Text = "Start Watching", + Text = SoloSpectatorScreenStrings.StartWatching, Width = 250, Anchor = Anchor.Centre, Origin = Anchor.Centre,