mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Add basic localisation strings for new mod select
This commit is contained in:
@ -59,6 +59,16 @@ namespace osu.Game.Localisation
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static LocalisableString Importing => new TranslatableString(getKey(@"importing"), @"Importing...");
|
public static LocalisableString Importing => new TranslatableString(getKey(@"importing"), @"Importing...");
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// "Deselect All"
|
||||||
|
/// </summary>
|
||||||
|
public static LocalisableString DeselectAll => new TranslatableString(getKey(@"deselect_all"), @"Deselect All");
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// "Select All"
|
||||||
|
/// </summary>
|
||||||
|
public static LocalisableString SelectAll => new TranslatableString(getKey(@"select_all"), @"Select All");
|
||||||
|
|
||||||
private static string getKey(string key) => $@"{prefix}:{key}";
|
private static string getKey(string key) => $@"{prefix}:{key}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
29
osu.Game/Localisation/ModSelectScreenStrings.cs
Normal file
29
osu.Game/Localisation/ModSelectScreenStrings.cs
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. 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";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// "Mod Select"
|
||||||
|
/// </summary>
|
||||||
|
public static LocalisableString ModSelectTitle => new TranslatableString(getKey(@"mod_select_title"), @"Mod Select");
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// "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."
|
||||||
|
/// </summary>
|
||||||
|
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.");
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// "Mod Customisation"
|
||||||
|
/// </summary>
|
||||||
|
public static LocalisableString ModCustomisation => new TranslatableString(getKey(@"mod_customisation"), @"Mod Customisation");
|
||||||
|
|
||||||
|
private static string getKey(string key) => $@"{prefix}:{key}";
|
||||||
|
}
|
||||||
|
}
|
@ -23,6 +23,7 @@ using osu.Game.Input.Bindings;
|
|||||||
using osu.Game.Rulesets.Mods;
|
using osu.Game.Rulesets.Mods;
|
||||||
using osuTK;
|
using osuTK;
|
||||||
using osuTK.Input;
|
using osuTK.Input;
|
||||||
|
using osu.Game.Localisation;
|
||||||
|
|
||||||
namespace osu.Game.Overlays.Mods
|
namespace osu.Game.Overlays.Mods
|
||||||
{
|
{
|
||||||
@ -58,12 +59,12 @@ namespace osu.Game.Overlays.Mods
|
|||||||
{
|
{
|
||||||
customisationButton = new ShearedToggleButton(200)
|
customisationButton = new ShearedToggleButton(200)
|
||||||
{
|
{
|
||||||
Text = "Mod Customisation",
|
Text = ModSelectScreenStrings.ModCustomisation,
|
||||||
Active = { BindTarget = customisationVisible }
|
Active = { BindTarget = customisationVisible }
|
||||||
},
|
},
|
||||||
new ShearedButton(200)
|
new ShearedButton(200)
|
||||||
{
|
{
|
||||||
Text = "Deselect All",
|
Text = CommonStrings.DeselectAll,
|
||||||
Action = DeselectAll
|
Action = DeselectAll
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -80,8 +81,8 @@ namespace osu.Game.Overlays.Mods
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
Header.Title = "Mod Select";
|
Header.Title = ModSelectScreenStrings.ModSelectTitle;
|
||||||
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.Description = ModSelectScreenStrings.ModSelectDescription;
|
||||||
|
|
||||||
AddRange(new Drawable[]
|
AddRange(new Drawable[]
|
||||||
{
|
{
|
||||||
|
@ -8,6 +8,7 @@ using osu.Game.Graphics.UserInterface;
|
|||||||
using osu.Game.Overlays.Mods;
|
using osu.Game.Overlays.Mods;
|
||||||
using osu.Game.Rulesets.Mods;
|
using osu.Game.Rulesets.Mods;
|
||||||
using osuTK.Input;
|
using osuTK.Input;
|
||||||
|
using osu.Game.Localisation;
|
||||||
|
|
||||||
namespace osu.Game.Screens.OnlinePlay
|
namespace osu.Game.Screens.OnlinePlay
|
||||||
{
|
{
|
||||||
@ -34,14 +35,14 @@ namespace osu.Game.Screens.OnlinePlay
|
|||||||
{
|
{
|
||||||
Anchor = Anchor.BottomLeft,
|
Anchor = Anchor.BottomLeft,
|
||||||
Origin = Anchor.BottomLeft,
|
Origin = Anchor.BottomLeft,
|
||||||
Text = "Select All",
|
Text = CommonStrings.SelectAll,
|
||||||
Action = SelectAll
|
Action = SelectAll
|
||||||
},
|
},
|
||||||
new ShearedButton(200)
|
new ShearedButton(200)
|
||||||
{
|
{
|
||||||
Anchor = Anchor.BottomLeft,
|
Anchor = Anchor.BottomLeft,
|
||||||
Origin = Anchor.BottomLeft,
|
Origin = Anchor.BottomLeft,
|
||||||
Text = "Deselect All",
|
Text = CommonStrings.DeselectAll,
|
||||||
Action = DeselectAll
|
Action = DeselectAll
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user