1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-26 03:49:56 +08:00

Use proper string key

This commit is contained in:
Loreos7
2025-11-09 17:48:19 +03:00
Unverified
parent 6a6c7ad3ba
commit 1df640898f
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -202,7 +202,7 @@ namespace osu.Game.Localisation
/// <summary>
/// "Delete..."
/// </summary>
public static LocalisableString Delete => new TranslatableString(getKey(@"delete"), @"Delete...");
public static LocalisableString DeleteEllipsis => new TranslatableString(getKey(@"delete_ellipsis"), @"Delete...");
private static string getKey(string key) => $@"{prefix}:{key}";
}
@@ -62,7 +62,7 @@ namespace osu.Game.Screens.SelectV2
Debug.Assert(beatmap.BeatmapSet != null);
addHeader(SongSelectStrings.ForAllDifficulties, beatmap.BeatmapSet.ToString());
addButton(CommonStrings.Delete, FontAwesome.Solid.Trash, () => SongSelect?.Delete(beatmap.BeatmapSet), colours.Red1);
addButton(CommonStrings.DeleteEllipsis, FontAwesome.Solid.Trash, () => SongSelect?.Delete(beatmap.BeatmapSet), colours.Red1);
addHeader(SongSelectStrings.ForSelectedDifficulty, beatmap.DifficultyName);
+1 -1
View File
@@ -268,7 +268,7 @@ namespace osu.Game.Screens.SelectV2
if (beatmapSet.Beatmaps.Any(b => b.Hidden))
items.Add(new OsuMenuItem(SongSelectStrings.RestoreAllHidden, MenuItemType.Standard, () => songSelect?.RestoreAllHidden(beatmapSet)));
items.Add(new OsuMenuItem(CommonStrings.Delete, MenuItemType.Destructive, () => songSelect?.Delete(beatmapSet)));
items.Add(new OsuMenuItem(CommonStrings.DeleteEllipsis, MenuItemType.Destructive, () => songSelect?.Delete(beatmapSet)));
return items.ToArray();
}
}