1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 19:03:08 +08:00

Add localisation support for new button string

This commit is contained in:
Dean Herbert 2023-05-04 11:11:19 +09:00
parent b7abab6d8a
commit be995f1359
2 changed files with 6 additions and 1 deletions

View File

@ -34,6 +34,11 @@ namespace osu.Game.Localisation
/// </summary>
public static LocalisableString AddPreset => new TranslatableString(getKey(@"add_preset"), @"Add preset");
/// <summary>
/// "Use current mods"
/// </summary>
public static LocalisableString UseCurrentMods => new TranslatableString(getKey(@"use_current_mods"), @"Use current mods");
private static string getKey(string key) => $@"{prefix}:{key}";
}
}

View File

@ -94,7 +94,7 @@ namespace osu.Game.Overlays.Mods
{
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Text = "Use Current Mods",
Text = ModSelectOverlayStrings.UseCurrentMods,
Action = useCurrentMods
},
saveButton = new ShearedButton