1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-07 04:13:38 +08:00

Localise some strings on SecondFactorAuthForm (#36961)

This commit is contained in:
Denis Titovets
2026-03-14 16:47:58 +03:00
committed by GitHub
Unverified
parent 2380fcd36d
commit fd66d7c4e4
2 changed files with 15 additions and 4 deletions
@@ -49,6 +49,16 @@ namespace osu.Game.Localisation
/// </summary>
public static LocalisableString Register => new TranslatableString(getKey(@"register"), @"Register");
/// <summary>
/// "An email has been sent to you with a verification code. Enter the code."
/// </summary>
public static LocalisableString CodeSent => new TranslatableString(getKey(@"code_sent"), @"An email has been sent to you with a verification code. Enter the code.");
/// <summary>
/// "Enter code"
/// </summary>
public static LocalisableString EnterCode => new TranslatableString(getKey(@"enter_code"), @"Enter code");
private static string getKey(string key) => $@"{prefix}:{key}";
}
}
@@ -11,6 +11,7 @@ using osu.Framework.Logging;
using osu.Game.Graphics;
using osu.Game.Graphics.Containers;
using osu.Game.Graphics.UserInterface;
using osu.Game.Localisation;
using osu.Game.Online.API;
using osu.Game.Online.API.Requests;
using osu.Game.Online.API.Requests.Responses;
@@ -104,12 +105,12 @@ namespace osu.Game.Overlays.Login
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Text = "An email has been sent to you with a verification code. Enter the code.",
Text = LoginPanelStrings.CodeSent,
},
codeTextBox = new OsuTextBox
{
InputProperties = new TextInputProperties(TextInputType.Code),
PlaceholderText = "Enter code",
PlaceholderText = LoginPanelStrings.EnterCode,
RelativeSizeAxes = Axes.X,
TabbableContentContainer = this,
},
@@ -169,12 +170,12 @@ namespace osu.Game.Overlays.Login
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Text = "Please enter the code from your authenticator app.",
Text = UserVerificationStrings.BoxTotpHeading,
},
codeTextBox = new OsuNumberBox
{
InputProperties = new TextInputProperties(TextInputType.NumericalPassword),
PlaceholderText = "Enter code",
PlaceholderText = LoginPanelStrings.EnterCode,
RelativeSizeAxes = Axes.X,
TabbableContentContainer = this,
},