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> /// </summary>
public static LocalisableString RunningTasks => new TranslatableString(getKey(@"running_tasks"), @"Running Tasks"); 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> /// <summary>
/// "Cancel All" /// "Cancel All"
/// </summary> /// </summary>

View File

@ -17,6 +17,7 @@ using osu.Game.Overlays.Notifications;
using osu.Game.Resources.Localisation.Web; using osu.Game.Resources.Localisation.Web;
using osuTK; using osuTK;
using NotificationsStrings = osu.Game.Localisation.NotificationsStrings; using NotificationsStrings = osu.Game.Localisation.NotificationsStrings;
using WebNotificationsStrings = osu.Game.Resources.Localisation.Web.NotificationsStrings;
namespace osu.Game.Overlays namespace osu.Game.Overlays
{ {
@ -92,7 +93,8 @@ namespace osu.Game.Overlays
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
Children = new[] 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), new NotificationSection(NotificationsStrings.RunningTasks, new[] { typeof(ProgressNotification) }, NotificationsStrings.CancelAll),
} }
} }