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:
@@ -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);
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user