mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Grouped localisation strings
This commit is contained in:
@ -1,24 +0,0 @@
|
||||
// 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 HomeStrings
|
||||
{
|
||||
private const string prefix = @"osu.Game.Resources.Localisation.Home";
|
||||
|
||||
/// <summary>
|
||||
/// "home"
|
||||
/// </summary>
|
||||
public static LocalisableString HeaderTitle => new TranslatableString(getKey(@"header_title"), @"home");
|
||||
|
||||
/// <summary>
|
||||
/// "return to the main menu"
|
||||
/// </summary>
|
||||
public static LocalisableString HeaderDescription => new TranslatableString(getKey(@"header_description"), @"return to the main menu");
|
||||
|
||||
private static string getKey(string key) => $"{prefix}:{key}";
|
||||
}
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
// 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 RulesetStrings
|
||||
{
|
||||
private const string prefix = @"osu.Game.Resources.Localisation.Ruleset";
|
||||
|
||||
/// <summary>
|
||||
/// "play some"
|
||||
/// </summary>
|
||||
|
||||
public static LocalisableString HeaderDescription => new TranslatableString(getKey(@"header_description"), @"play some");
|
||||
|
||||
private static string getKey(string key) => $"{prefix}:{key}";
|
||||
}
|
||||
}
|
@ -19,6 +19,22 @@ namespace osu.Game.Localisation
|
||||
/// </summary>
|
||||
public static LocalisableString Connecting => new TranslatableString(getKey(@"connecting"), @"Connecting...");
|
||||
|
||||
/// <summary>
|
||||
/// "home"
|
||||
/// </summary>
|
||||
public static LocalisableString HomeHeaderTitle => new TranslatableString(getKey(@"header_title"), @"home");
|
||||
|
||||
/// <summary>
|
||||
/// "return to the main menu"
|
||||
/// </summary>
|
||||
public static LocalisableString HomeHeaderDescription => new TranslatableString(getKey(@"header_description"), @"return to the main menu");
|
||||
|
||||
/// <summary>
|
||||
/// "play some"
|
||||
/// </summary>
|
||||
|
||||
public static LocalisableString RulesetHeaderDescription => new TranslatableString(getKey(@"header_description"), @"play some");
|
||||
|
||||
private static string getKey(string key) => $@"{prefix}:{key}";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user