mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
Move "Next" localisation to common strings
This commit is contained in:
parent
5e48b37569
commit
37ae39f5fe
@ -14,6 +14,11 @@ namespace osu.Game.Localisation
|
||||
/// </summary>
|
||||
public static LocalisableString Back => new TranslatableString(getKey(@"back"), @"Back");
|
||||
|
||||
/// <summary>
|
||||
/// "Next"
|
||||
/// </summary>
|
||||
public static LocalisableString Next => new TranslatableString(getKey(@"next"), @"Next");
|
||||
|
||||
/// <summary>
|
||||
/// "Finish"
|
||||
/// </summary>
|
||||
|
@ -48,11 +48,6 @@ osu! is a very configurable game, and diving straight into the settings can some
|
||||
/// </summary>
|
||||
public static LocalisableString UIScaleDescription => new TranslatableString(getKey(@"ui_scale_description"), @"The size of the osu! user interface can be adjusted to your liking.");
|
||||
|
||||
/// <summary>
|
||||
/// "Next ({0})"
|
||||
/// </summary>
|
||||
public static LocalisableString Next(LocalisableString nextStepDescription) => new TranslatableString(getKey(@"next"), @"Next ({0})", nextStepDescription);
|
||||
|
||||
private static string getKey(string key) => $@"{prefix}:{key}";
|
||||
}
|
||||
}
|
||||
|
@ -310,7 +310,7 @@ namespace osu.Game.Overlays
|
||||
if (currentStepIndex == 0)
|
||||
NextButton.Text = FirstRunSetupOverlayStrings.GetStarted;
|
||||
else if (currentStepIndex < steps.Length - 1)
|
||||
NextButton.Text = FirstRunSetupOverlayStrings.Next(steps[currentStepIndex.Value + 1].Description);
|
||||
NextButton.Text = new TranslatableString(@"_", @"{0} ({1})", CommonStrings.Next, steps[currentStepIndex.Value + 1].Description);
|
||||
else
|
||||
NextButton.Text = CommonStrings.Finish;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user