Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions osu.Game/Localisation/SoloSpectatorScreenStrings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. 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";

/// <summary>
/// "Spectator Mode"
/// </summary>
public static LocalisableString SpectatorMode => new TranslatableString(getKey(@"spectator_mode"), @"Spectator Mode");

/// <summary>
/// "Start Watching"
/// </summary>
public static LocalisableString StartWatching => new TranslatableString(getKey(@"start_watching"), @"Start Watching");

private static string getKey(string key) => $@"{prefix}:{key}";
}
}
4 changes: 2 additions & 2 deletions osu.Game/Screens/Play/SoloSpectatorScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
Loading