1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-10 22:57:19 +08:00

Add localisation for skin management buttons in settings

This commit is contained in:
schiavoanto 2025-03-05 23:31:35 +01:00
parent 3f211e33b8
commit 574f2363ff
2 changed files with 13 additions and 3 deletions

View File

@ -39,11 +39,21 @@ namespace osu.Game.Localisation
/// </summary> /// </summary>
public static LocalisableString Default => new TranslatableString(getKey(@"default"), @"Default"); public static LocalisableString Default => new TranslatableString(getKey(@"default"), @"Default");
/// <summary>
/// "Rename"
/// </summary>
public static LocalisableString Rename => new TranslatableString(getKey(@"rename"), @"Rename");
/// <summary> /// <summary>
/// "Export" /// "Export"
/// </summary> /// </summary>
public static LocalisableString Export => new TranslatableString(getKey(@"export"), @"Export"); public static LocalisableString Export => new TranslatableString(getKey(@"export"), @"Export");
/// <summary>
/// "Delete"
/// </summary>
public static LocalisableString Delete => new TranslatableString(getKey(@"delete"), @"Delete");
/// <summary> /// <summary>
/// "Width" /// "Width"
/// </summary> /// </summary>

View File

@ -165,7 +165,7 @@ namespace osu.Game.Overlays.Settings.Sections
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load()
{ {
Text = "Rename"; Text = CommonStrings.Rename;
Action = this.ShowPopover; Action = this.ShowPopover;
} }
@ -193,7 +193,7 @@ namespace osu.Game.Overlays.Settings.Sections
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load()
{ {
Text = "Export"; Text = CommonStrings.Export;
Action = export; Action = export;
} }
@ -231,7 +231,7 @@ namespace osu.Game.Overlays.Settings.Sections
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load()
{ {
Text = "Delete"; Text = CommonStrings.Delete;
Action = delete; Action = delete;
} }