From 59fa46bbdd6933f304521d298ef61720d3ed8929 Mon Sep 17 00:00:00 2001 From: Bastian Pedersen Date: Sun, 25 Jun 2023 21:02:41 +0200 Subject: [PATCH] Create localisation string class for multiplayer countdown buttons --- .../MultiplayerCountdownButtonStrings.cs | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 osu.Game/Localisation/MultiplayerCountdownButtonStrings.cs diff --git a/osu.Game/Localisation/MultiplayerCountdownButtonStrings.cs b/osu.Game/Localisation/MultiplayerCountdownButtonStrings.cs new file mode 100644 index 0000000000..926b15386a --- /dev/null +++ b/osu.Game/Localisation/MultiplayerCountdownButtonStrings.cs @@ -0,0 +1,29 @@ +// 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 MultiplayerCountdownButtonStrings + { + private const string prefix = @"osu.Game.Resources.Localisation.MultiplayerCountdownButton"; + + /// + /// "Stop countdown" + /// + public static LocalisableString StopCountdown => new TranslatableString(getKey(@"stop_countdown"), @"Stop countdown"); + + /// + /// "Countdown settings" + /// + public static LocalisableString CountdownSettings => new TranslatableString(getKey(@"countdown_settings"), @"Countdown settings"); + + /// + /// "Start match in {0} minute/seconds" + /// + 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}"; + } +}