mirror of
https://github.com/ppy/osu.git
synced 2026-05-27 21:40:42 +08:00
Localise some more strings in settings (#36590)
This commit is contained in:
committed by
GitHub
Unverified
parent
e77e08c049
commit
a616fa61c9
@@ -29,6 +29,26 @@ namespace osu.Game.Localisation
|
||||
/// </summary>
|
||||
public static LocalisableString Cancel => new TranslatableString(getKey(@"cancel"), @"No! Abort mission");
|
||||
|
||||
/// <summary>
|
||||
/// "Failed to automatically locate an osu!stable installation."
|
||||
/// </summary>
|
||||
public static LocalisableString StableDirectoryLocationHeaderText => new TranslatableString(getKey(@"stable_directory_location_header_text"), @"Failed to automatically locate an osu!stable installation.");
|
||||
|
||||
/// <summary>
|
||||
/// "An existing install could not be located. If you know where it is, you can help locate it."
|
||||
/// </summary>
|
||||
public static LocalisableString StableDirectoryLocationBodyText => new TranslatableString(getKey(@"stable_directory_location_body_text"), @"An existing install could not be located. If you know where it is, you can help locate it.");
|
||||
|
||||
/// <summary>
|
||||
/// "Sure! I know where it is located!"
|
||||
/// </summary>
|
||||
public static LocalisableString StableDirectoryLocationOkButton => new TranslatableString(getKey(@"stable_directory_location_ok_button"), @"Sure! I know where it is located!");
|
||||
|
||||
/// <summary>
|
||||
/// "Actually I don't have osu!stable installed."
|
||||
/// </summary>
|
||||
public static LocalisableString StableDirectoryLocationCancelButton => new TranslatableString(getKey(@"stable_directory_location_cancel_button"), @"Actually I don't have osu!stable installed.");
|
||||
|
||||
private static string getKey(string key) => $@"{prefix}:{key}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,6 +19,11 @@ namespace osu.Game.Localisation
|
||||
/// </summary>
|
||||
public static LocalisableString CurrentSkin => new TranslatableString(getKey(@"current_skin"), @"Current skin");
|
||||
|
||||
/// <summary>
|
||||
/// "Skin name"
|
||||
/// </summary>
|
||||
public static LocalisableString SkinName => new TranslatableString(getKey(@"skin_name"), @"Skin name");
|
||||
|
||||
/// <summary>
|
||||
/// "Skin layout editor"
|
||||
/// </summary>
|
||||
|
||||
@@ -5,6 +5,7 @@ using System.Threading.Tasks;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
using osu.Framework.Screens;
|
||||
using osu.Game.Localisation;
|
||||
using osu.Game.Overlays.Dialog;
|
||||
using osu.Game.Screens;
|
||||
|
||||
@@ -17,20 +18,20 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance
|
||||
|
||||
public StableDirectoryLocationDialog(TaskCompletionSource<string> taskCompletionSource)
|
||||
{
|
||||
HeaderText = "Failed to automatically locate an osu!stable installation.";
|
||||
BodyText = "An existing install could not be located. If you know where it is, you can help locate it.";
|
||||
HeaderText = DialogStrings.StableDirectoryLocationHeaderText;
|
||||
BodyText = DialogStrings.StableDirectoryLocationBodyText;
|
||||
Icon = FontAwesome.Solid.QuestionCircle;
|
||||
|
||||
Buttons = new PopupDialogButton[]
|
||||
{
|
||||
new PopupDialogOkButton
|
||||
{
|
||||
Text = "Sure! I know where it is located!",
|
||||
Text = DialogStrings.StableDirectoryLocationOkButton,
|
||||
Action = () => Schedule(() => performer.PerformFromScreen(screen => screen.Push(new StableDirectorySelectScreen(taskCompletionSource))))
|
||||
},
|
||||
new PopupDialogCancelButton
|
||||
{
|
||||
Text = "Actually I don't have osu!stable installed.",
|
||||
Text = DialogStrings.StableDirectoryLocationCancelButton,
|
||||
Action = () => taskCompletionSource.TrySetCanceled()
|
||||
}
|
||||
};
|
||||
|
||||
@@ -8,6 +8,7 @@ using osu.Framework.Allocation;
|
||||
using osu.Framework.Localisation;
|
||||
using osu.Framework.Screens;
|
||||
using osu.Game.Database;
|
||||
using osu.Game.Localisation;
|
||||
|
||||
namespace osu.Game.Overlays.Settings.Sections.Maintenance
|
||||
{
|
||||
@@ -22,7 +23,7 @@ namespace osu.Game.Overlays.Settings.Sections.Maintenance
|
||||
|
||||
protected override bool IsValidDirectory(DirectoryInfo? info) => legacyImportManager.IsUsableForStableImport(info, out _);
|
||||
|
||||
public override LocalisableString HeaderText => "Please select your osu!stable install location";
|
||||
public override LocalisableString HeaderText => MaintenanceSettingsStrings.StableDirectorySelectHeader;
|
||||
|
||||
public StableDirectorySelectScreen(TaskCompletionSource<string> taskCompletionSource)
|
||||
{
|
||||
|
||||
@@ -261,7 +261,7 @@ namespace osu.Game.Overlays.Settings.Sections
|
||||
{
|
||||
textBox = new FocusedTextBox
|
||||
{
|
||||
PlaceholderText = @"Skin name",
|
||||
PlaceholderText = SkinSettingsStrings.SkinName,
|
||||
FontSize = OsuFont.DEFAULT_FONT_SIZE,
|
||||
RelativeSizeAxes = Axes.X,
|
||||
SelectAllOnFocus = true,
|
||||
|
||||
Reference in New Issue
Block a user