mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 07:53:22 +08:00
Create localisation string class for multiplayer countdown buttons
This commit is contained in:
parent
66f1ed052b
commit
59fa46bbdd
29
osu.Game/Localisation/MultiplayerCountdownButtonStrings.cs
Normal file
29
osu.Game/Localisation/MultiplayerCountdownButtonStrings.cs
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
// 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 MultiplayerCountdownButtonStrings
|
||||||
|
{
|
||||||
|
private const string prefix = @"osu.Game.Resources.Localisation.MultiplayerCountdownButton";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// "Stop countdown"
|
||||||
|
/// </summary>
|
||||||
|
public static LocalisableString StopCountdown => new TranslatableString(getKey(@"stop_countdown"), @"Stop countdown");
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// "Countdown settings"
|
||||||
|
/// </summary>
|
||||||
|
public static LocalisableString CountdownSettings => new TranslatableString(getKey(@"countdown_settings"), @"Countdown settings");
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// "Start match in {0} minute/seconds"
|
||||||
|
/// </summary>
|
||||||
|
public static LocalisableString StartMatchInTime(string humanReadableTime) => new TranslatableString(getKey(@"start_match_in"), @"Start match in {0}", humanReadableTime);
|
||||||
|
|
||||||
|
private static string getKey(string key) => $@"{prefix}:{key}";
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user