mirror of
https://github.com/ppy/osu.git
synced 2024-12-21 08:32:54 +08:00
1a26a5dbda
The `Strings` suffix is not supposed to be in here, judging by other localisation classes.
30 lines
991 B
C#
30 lines
991 B
C#
// 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 DialogStrings
|
|
{
|
|
private const string prefix = @"osu.Game.Resources.Localisation.Dialog";
|
|
|
|
/// <summary>
|
|
/// "Caution"
|
|
/// </summary>
|
|
public static LocalisableString Caution => new TranslatableString(getKey(@"header_text"), @"Caution");
|
|
|
|
/// <summary>
|
|
/// "Yes. Go for it."
|
|
/// </summary>
|
|
public static LocalisableString Confirm => new TranslatableString(getKey(@"confirm"), @"Yes. Go for it.");
|
|
|
|
/// <summary>
|
|
/// "No! Abort mission"
|
|
/// </summary>
|
|
public static LocalisableString Cancel => new TranslatableString(getKey(@"cancel"), @"No! Abort mission");
|
|
|
|
private static string getKey(string key) => $@"{prefix}:{key}";
|
|
}
|
|
}
|