mirror of
https://github.com/ppy/osu
synced 2024-12-24 15:53:37 +00:00
Rename class and key to better match expectations
This commit is contained in:
parent
a7153478d6
commit
b240ce295b
@ -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}";
|
||||
}
|
@ -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 = () =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user