diff --git a/osu.Game/Overlays/Settings/Sections/Maintenance/DirectorySelectScreen.cs b/osu.Game/Overlays/Settings/Sections/Maintenance/DirectorySelectScreen.cs
index c2366ca209..e7c69e89fe 100644
--- a/osu.Game/Overlays/Settings/Sections/Maintenance/DirectorySelectScreen.cs
+++ b/osu.Game/Overlays/Settings/Sections/Maintenance/DirectorySelectScreen.cs
@@ -10,6 +10,7 @@ using osu.Game.Screens;
using osuTK;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
+using osu.Framework.Localisation;
using osu.Game.Graphics.Sprites;
using osu.Game.Graphics.UserInterface;
using osu.Framework.Screens;
@@ -22,7 +23,10 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance
private DirectorySelector directorySelector;
- protected abstract OsuSpriteText CreateHeader();
+ ///
+ /// Text to display in the header to inform the user of what they are selecting.
+ ///
+ public abstract LocalisableString HeaderText { get; }
///
/// Called upon selection of a directory by the user.
@@ -73,11 +77,13 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance
{
new Drawable[]
{
- CreateHeader().With(header =>
+ new OsuSpriteText
{
- header.Origin = Anchor.Centre;
- header.Anchor = Anchor.Centre;
- })
+ Text = HeaderText,
+ Font = OsuFont.Default.With(size: 40),
+ Origin = Anchor.Centre,
+ Anchor = Anchor.Centre,
+ }
},
new Drawable[]
{
diff --git a/osu.Game/Overlays/Settings/Sections/Maintenance/MigrationSelectScreen.cs b/osu.Game/Overlays/Settings/Sections/Maintenance/MigrationSelectScreen.cs
index 6334bffe94..1a60ab0638 100644
--- a/osu.Game/Overlays/Settings/Sections/Maintenance/MigrationSelectScreen.cs
+++ b/osu.Game/Overlays/Settings/Sections/Maintenance/MigrationSelectScreen.cs
@@ -4,11 +4,10 @@
using System;
using System.IO;
using osu.Framework.Allocation;
+using osu.Framework.Localisation;
using osu.Framework.Logging;
using osu.Framework.Platform;
using osu.Framework.Screens;
-using osu.Game.Graphics;
-using osu.Game.Graphics.Sprites;
namespace osu.Game.Overlays.Settings.Sections.Maintenance
{
@@ -25,11 +24,7 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance
public override bool HideOverlaysOnEnter => true;
- protected override OsuSpriteText CreateHeader() => new OsuSpriteText
- {
- Text = "Please select a new location",
- Font = OsuFont.Default.With(size: 40)
- };
+ public override LocalisableString HeaderText => "Please select a new location";
protected override void OnSelection(DirectoryInfo directory)
{