1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 00:47:24 +08:00

Move localisation string to common location

This commit is contained in:
Bartłomiej Dach 2022-07-24 23:30:52 +02:00
parent 8af9cfbe40
commit 446485f804
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497
3 changed files with 6 additions and 20 deletions

View File

@ -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}";
}
}

View File

@ -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}";
} }
} }

View File

@ -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()