diff --git a/osu.Game/Localisation/NotificationsStrings.cs b/osu.Game/Localisation/NotificationsStrings.cs index 75f1a39a69..35d4310b46 100644 --- a/osu.Game/Localisation/NotificationsStrings.cs +++ b/osu.Game/Localisation/NotificationsStrings.cs @@ -190,6 +190,11 @@ Click to see what's new!", version); /// public static LocalisableString CollectionsImportProgressTotal(int count, int totalCount) => new TranslatableString(getKey(@"collections_import_progress_total"), @"Imported {0} of {1} collections", count, totalCount); + /// + /// "An action was interrupted due to a dialog being displayed." + /// + public static LocalisableString ActionInterruptedByDialog => new TranslatableString(getKey(@"action_interrupted_by_dialog"), @"An action was interrupted due to a dialog being displayed."); + private static string getKey(string key) => $@"{prefix}:{key}"; } } diff --git a/osu.Game/PerformFromMenuRunner.cs b/osu.Game/PerformFromMenuRunner.cs index 21beadf366..006430c427 100644 --- a/osu.Game/PerformFromMenuRunner.cs +++ b/osu.Game/PerformFromMenuRunner.cs @@ -10,6 +10,7 @@ using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Screens; using osu.Framework.Threading; +using osu.Game.Localisation; using osu.Game.Overlays; using osu.Game.Overlays.Dialog; using osu.Game.Overlays.Notifications; @@ -165,7 +166,11 @@ namespace osu.Game // the last dialog encountered has been dismissed but the screen has not changed, abort. Cancel(); - notifications.Post(new SimpleNotification { Text = @"An action was interrupted due to a dialog being displayed." }); + notifications.Post(new SimpleNotification + { + Text = NotificationsStrings.ActionInterruptedByDialog + }); + return true; }