1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-24 09:37:19 +08:00

Add localisation support

This commit is contained in:
Salman Alshamrani 2024-11-28 02:37:31 -05:00
parent 4a1401a33d
commit b1d0939142
2 changed files with 19 additions and 8 deletions

View File

@ -188,11 +188,6 @@ namespace osu.Game.Localisation
/// </summary>
public static LocalisableString AudioTrack => new TranslatableString(getKey(@"audio_track"), @"Audio Track");
/// <summary>
/// "Update all difficulties"
/// </summary>
public static LocalisableString ResourcesUpdateAllDifficulties => new TranslatableString(getKey(@"resources_update_all_difficulties"), @"Update all difficulties");
/// <summary>
/// "Click to select a track"
/// </summary>
@ -203,6 +198,21 @@ namespace osu.Game.Localisation
/// </summary>
public static LocalisableString ClickToSelectBackground => new TranslatableString(getKey(@"click_to_select_background"), @"Click to select a background image");
/// <summary>
/// "Apply this change to all difficulties?"
/// </summary>
public static LocalisableString ApplicationScopeSelectionTitle => new TranslatableString(getKey(@"application_scope_selection_title"), @"Apply this change to all difficulties?");
/// <summary>
/// "Apply to all difficulties"
/// </summary>
public static LocalisableString ApplyToAllDifficulties => new TranslatableString(getKey(@"apply_to_all_difficulties"), @"Apply to all difficulties");
/// <summary>
/// "Only apply to this difficulty"
/// </summary>
public static LocalisableString ApplyToThisDifficulty => new TranslatableString(getKey(@"apply_to_this_difficulty"), @"Only apply to this difficulty");
/// <summary>
/// "Ruleset ({0})"
/// </summary>

View File

@ -14,6 +14,7 @@ using osu.Game.Graphics.Sprites;
using osu.Game.Graphics.UserInterfaceV2;
using osu.Game.Overlays;
using osuTK;
using osu.Game.Localisation;
namespace osu.Game.Screens.Edit.Setup
{
@ -100,7 +101,7 @@ namespace osu.Game.Screens.Edit.Setup
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Text = "Apply this change to all difficulties?",
Text = EditorSetupStrings.ApplicationScopeSelectionTitle,
Margin = new MarginPadding { Bottom = 20f },
},
new RoundedButton
@ -108,7 +109,7 @@ namespace osu.Game.Screens.Edit.Setup
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Width = 300f,
Text = "Apply to all difficulties",
Text = EditorSetupStrings.ApplyToAllDifficulties,
Action = () =>
{
ApplyToAllDifficulties.Value = true;
@ -121,7 +122,7 @@ namespace osu.Game.Screens.Edit.Setup
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Width = 300f,
Text = "Only apply to this difficulty",
Text = EditorSetupStrings.ApplyToThisDifficulty,
Action = () =>
{
ApplyToAllDifficulties.Value = false;