mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 12:45:09 +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>
|
/// </summary>
|
||||||
public static LocalisableString Back => new TranslatableString(getKey(@"back"), @"Back");
|
public static LocalisableString Back => new TranslatableString(getKey(@"back"), @"Back");
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// "Next"
|
||||||
|
/// </summary>
|
||||||
|
public static LocalisableString Next => new TranslatableString(getKey(@"next"), @"Next");
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// "Finish"
|
/// "Finish"
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -48,11 +48,6 @@ osu! is a very configurable game, and diving straight into the settings can some
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static LocalisableString UIScaleDescription => new TranslatableString(getKey(@"ui_scale_description"), @"The size of the osu! user interface can be adjusted to your liking.");
|
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}";
|
private static string getKey(string key) => $@"{prefix}:{key}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -310,7 +310,7 @@ namespace osu.Game.Overlays
|
|||||||
if (currentStepIndex == 0)
|
if (currentStepIndex == 0)
|
||||||
NextButton.Text = FirstRunSetupOverlayStrings.GetStarted;
|
NextButton.Text = FirstRunSetupOverlayStrings.GetStarted;
|
||||||
else if (currentStepIndex < steps.Length - 1)
|
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
|
else
|
||||||
NextButton.Text = CommonStrings.Finish;
|
NextButton.Text = CommonStrings.Finish;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user