mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:03:08 +08:00
Move localisation string to common location
This commit is contained in:
parent
8af9cfbe40
commit
446485f804
@ -1,19 +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 ModPresetColumnStrings
|
|
||||||
{
|
|
||||||
private const string prefix = @"osu.Game.Resources.Localisation.ModPresetColumn";
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// "Personal Presets"
|
|
||||||
/// </summary>
|
|
||||||
public static LocalisableString PersonalPresets => new TranslatableString(getKey(@"personal_presets"), @"Personal Presets");
|
|
||||||
|
|
||||||
private static string getKey(string key) => $@"{prefix}:{key}";
|
|
||||||
}
|
|
||||||
}
|
|
@ -24,6 +24,11 @@ namespace osu.Game.Localisation
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static LocalisableString ModCustomisation => new TranslatableString(getKey(@"mod_customisation"), @"Mod Customisation");
|
public static LocalisableString ModCustomisation => new TranslatableString(getKey(@"mod_customisation"), @"Mod Customisation");
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// "Personal Presets"
|
||||||
|
/// </summary>
|
||||||
|
public static LocalisableString PersonalPresets => new TranslatableString(getKey(@"personal_presets"), @"Personal Presets");
|
||||||
|
|
||||||
private static string getKey(string key) => $@"{prefix}:{key}";
|
private static string getKey(string key) => $@"{prefix}:{key}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ namespace osu.Game.Overlays.Mods
|
|||||||
private void load(OsuColour colours)
|
private void load(OsuColour colours)
|
||||||
{
|
{
|
||||||
AccentColour = colours.Orange1;
|
AccentColour = colours.Orange1;
|
||||||
HeaderText = ModPresetColumnStrings.PersonalPresets;
|
HeaderText = ModSelectOverlayStrings.PersonalPresets;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
|
Loading…
Reference in New Issue
Block a user