1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 15:17:27 +08:00

Rename class and key to better match expectations

This commit is contained in:
Dean Herbert 2023-06-26 13:38:34 +09:00
parent a7153478d6
commit b240ce295b
2 changed files with 7 additions and 7 deletions

View File

@ -5,9 +5,9 @@ using osu.Framework.Localisation;
namespace osu.Game.Localisation
{
public static class MultiplayerCountdownButtonStrings
public static class MultiplayerMatchStrings
{
private const string prefix = @"osu.Game.Resources.Localisation.MultiplayerCountdownButton";
private const string prefix = @"osu.Game.Resources.Localisation.MultiplayerMatchStrings";
/// <summary>
/// "Stop countdown"
@ -20,9 +20,9 @@ namespace osu.Game.Localisation
public static LocalisableString CountdownSettings => new TranslatableString(getKey(@"countdown_settings"), @"Countdown settings");
/// <summary>
/// "Start match in {0} minute/seconds"
/// "Start match in {0}"
/// </summary>
public static LocalisableString StartMatchInTime(string humanReadableTime) => new TranslatableString(getKey(@"start_match_in"), @"Start match in {0}", humanReadableTime);
public static LocalisableString StartMatchWithCountdown(string humanReadableTime) => new TranslatableString(getKey(@"start_match_width_countdown"), @"Start match in {0}", humanReadableTime);
private static string getKey(string key) => $@"{prefix}:{key}";
}

View File

@ -57,7 +57,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
base.Action = this.ShowPopover;
TooltipText = MultiplayerCountdownButtonStrings.CountdownSettings;
TooltipText = MultiplayerMatchStrings.CountdownSettings;
}
[BackgroundDependencyLoader]
@ -113,7 +113,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
flow.Add(new RoundedButton
{
RelativeSizeAxes = Axes.X,
Text = MultiplayerCountdownButtonStrings.StartMatchInTime(duration.Humanize()),
Text = MultiplayerMatchStrings.StartMatchWithCountdown(duration.Humanize()),
BackgroundColour = colours.Green,
Action = () =>
{
@ -128,7 +128,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
flow.Add(new RoundedButton
{
RelativeSizeAxes = Axes.X,
Text = MultiplayerCountdownButtonStrings.StopCountdown,
Text = MultiplayerMatchStrings.StopCountdown,
BackgroundColour = colours.Red,
Action = () =>
{