1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 09:23:06 +08:00

Use existing string

This commit is contained in:
ansel 2023-01-14 00:26:35 +03:00
parent 515ada6815
commit f950b624ae
2 changed files with 3 additions and 6 deletions

View File

@ -24,11 +24,6 @@ namespace osu.Game.Localisation
/// </summary>
public static LocalisableString RunningTasks => new TranslatableString(getKey(@"running_tasks"), @"Running Tasks");
/// <summary>
/// "Clear All"
/// </summary>
public static LocalisableString ClearAll => new TranslatableString(getKey(@"clear_all"), @"Clear All");
/// <summary>
/// "Cancel All"
/// </summary>

View File

@ -17,6 +17,7 @@ using osu.Game.Overlays.Notifications;
using osu.Game.Resources.Localisation.Web;
using osuTK;
using NotificationsStrings = osu.Game.Localisation.NotificationsStrings;
using WebNotificationsStrings = osu.Game.Resources.Localisation.Web.NotificationsStrings;
namespace osu.Game.Overlays
{
@ -92,7 +93,8 @@ namespace osu.Game.Overlays
RelativeSizeAxes = Axes.X,
Children = new[]
{
new NotificationSection(AccountsStrings.NotificationsTitle, new[] { typeof(SimpleNotification) }, NotificationsStrings.ClearAll),
new NotificationSection(AccountsStrings.NotificationsTitle, new[] { typeof(SimpleNotification) },
WebNotificationsStrings.MarkRead(WebNotificationsStrings.FiltersDefault)),
new NotificationSection(NotificationsStrings.RunningTasks, new[] { typeof(ProgressNotification) }, NotificationsStrings.CancelAll),
}
}