mirror of https://github.com/ppy/osu
Add localisation support for new button string
This commit is contained in:
parent
b7abab6d8a
commit
be995f1359
|
@ -34,6 +34,11 @@ public static class ModSelectOverlayStrings
|
|||
/// </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}";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -94,7 +94,7 @@ public EditPresetPopover(ModPresetPanel modPresetPanel)
|
|||
{
|
||||
Anchor = Anchor.TopCentre,
|
||||
Origin = Anchor.TopCentre,
|
||||
Text = "Use Current Mods",
|
||||
Text = ModSelectOverlayStrings.UseCurrentMods,
|
||||
Action = useCurrentMods
|
||||
},
|
||||
saveButton = new ShearedButton
|
||||
|
|
Loading…
Reference in New Issue