diff --git a/osu.Game/Localisation/CommonStrings.cs b/osu.Game/Localisation/CommonStrings.cs
index 52e9811cf7..9cd626af0f 100644
--- a/osu.Game/Localisation/CommonStrings.cs
+++ b/osu.Game/Localisation/CommonStrings.cs
@@ -59,6 +59,16 @@ namespace osu.Game.Localisation
///
public static LocalisableString Importing => new TranslatableString(getKey(@"importing"), @"Importing...");
+ ///
+ /// "Deselect All"
+ ///
+ public static LocalisableString DeselectAll => new TranslatableString(getKey(@"deselect_all"), @"Deselect All");
+
+ ///
+ /// "Select All"
+ ///
+ public static LocalisableString SelectAll => new TranslatableString(getKey(@"select_all"), @"Select All");
+
private static string getKey(string key) => $@"{prefix}:{key}";
}
}
diff --git a/osu.Game/Localisation/ModSelectScreenStrings.cs b/osu.Game/Localisation/ModSelectScreenStrings.cs
new file mode 100644
index 0000000000..0c113fd381
--- /dev/null
+++ b/osu.Game/Localisation/ModSelectScreenStrings.cs
@@ -0,0 +1,29 @@
+// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence.
+// See the LICENCE file in the repository root for full licence text.
+
+using osu.Framework.Localisation;
+
+namespace osu.Game.Localisation
+{
+ public static class ModSelectScreenStrings
+ {
+ private const string prefix = @"osu.Game.Resources.Localisation.ModSelectScreen";
+
+ ///
+ /// "Mod Select"
+ ///
+ public static LocalisableString ModSelectTitle => new TranslatableString(getKey(@"mod_select_title"), @"Mod Select");
+
+ ///
+ /// "Mods provide different ways to enjoy gameplay. Some have an effect on the score you can achieve during ranked play. Others are just for fun."
+ ///
+ public static LocalisableString ModSelectDescription => new TranslatableString(getKey(@"mod_select_description"), @"Mods provide different ways to enjoy gameplay. Some have an effect on the score you can achieve during ranked play. Others are just for fun.");
+
+ ///
+ /// "Mod Customisation"
+ ///
+ public static LocalisableString ModCustomisation => new TranslatableString(getKey(@"mod_customisation"), @"Mod Customisation");
+
+ private static string getKey(string key) => $@"{prefix}:{key}";
+ }
+}
\ No newline at end of file
diff --git a/osu.Game/Overlays/Mods/ModSelectScreen.cs b/osu.Game/Overlays/Mods/ModSelectScreen.cs
index e5b4927a6a..4a80a0637e 100644
--- a/osu.Game/Overlays/Mods/ModSelectScreen.cs
+++ b/osu.Game/Overlays/Mods/ModSelectScreen.cs
@@ -23,6 +23,7 @@ using osu.Game.Input.Bindings;
using osu.Game.Rulesets.Mods;
using osuTK;
using osuTK.Input;
+using osu.Game.Localisation;
namespace osu.Game.Overlays.Mods
{
@@ -58,12 +59,12 @@ namespace osu.Game.Overlays.Mods
{
customisationButton = new ShearedToggleButton(200)
{
- Text = "Mod Customisation",
+ Text = ModSelectScreenStrings.ModCustomisation,
Active = { BindTarget = customisationVisible }
},
new ShearedButton(200)
{
- Text = "Deselect All",
+ Text = CommonStrings.DeselectAll,
Action = DeselectAll
}
};
@@ -80,8 +81,8 @@ namespace osu.Game.Overlays.Mods
[BackgroundDependencyLoader]
private void load()
{
- Header.Title = "Mod Select";
- Header.Description = "Mods provide different ways to enjoy gameplay. Some have an effect on the score you can achieve during ranked play. Others are just for fun.";
+ Header.Title = ModSelectScreenStrings.ModSelectTitle;
+ Header.Description = ModSelectScreenStrings.ModSelectDescription;
AddRange(new Drawable[]
{
diff --git a/osu.Game/Screens/OnlinePlay/FreeModSelectScreen.cs b/osu.Game/Screens/OnlinePlay/FreeModSelectScreen.cs
index 6298e1f8c0..5a7fe8a778 100644
--- a/osu.Game/Screens/OnlinePlay/FreeModSelectScreen.cs
+++ b/osu.Game/Screens/OnlinePlay/FreeModSelectScreen.cs
@@ -8,6 +8,7 @@ using osu.Game.Graphics.UserInterface;
using osu.Game.Overlays.Mods;
using osu.Game.Rulesets.Mods;
using osuTK.Input;
+using osu.Game.Localisation;
namespace osu.Game.Screens.OnlinePlay
{
@@ -34,14 +35,14 @@ namespace osu.Game.Screens.OnlinePlay
{
Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,
- Text = "Select All",
+ Text = CommonStrings.SelectAll,
Action = SelectAll
},
new ShearedButton(200)
{
Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,
- Text = "Deselect All",
+ Text = CommonStrings.DeselectAll,
Action = DeselectAll
}
};