mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 20:23:00 +08:00
Add localisation support for new button string
This commit is contained in:
parent
b7abab6d8a
commit
be995f1359
@ -34,6 +34,11 @@ namespace osu.Game.Localisation
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static LocalisableString AddPreset => new TranslatableString(getKey(@"add_preset"), @"Add preset");
|
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}";
|
private static string getKey(string key) => $@"{prefix}:{key}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -94,7 +94,7 @@ namespace osu.Game.Overlays.Mods
|
|||||||
{
|
{
|
||||||
Anchor = Anchor.TopCentre,
|
Anchor = Anchor.TopCentre,
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
Text = "Use Current Mods",
|
Text = ModSelectOverlayStrings.UseCurrentMods,
|
||||||
Action = useCurrentMods
|
Action = useCurrentMods
|
||||||
},
|
},
|
||||||
saveButton = new ShearedButton
|
saveButton = new ShearedButton
|
||||||
|
Loading…
Reference in New Issue
Block a user