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

View File

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