mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 15:53:21 +08:00
Use localisation engine instead of asking current culture directly.
This commit is contained in:
parent
90592b0757
commit
f837117495
@ -402,7 +402,7 @@ namespace osu.Game.Overlays.Profile
|
|||||||
scoreText.Add(createScoreText("Ranked Score"));
|
scoreText.Add(createScoreText("Ranked Score"));
|
||||||
scoreNumberText.Add(createScoreNumberText(user.Statistics.RankedScore.ToString(@"#,0")));
|
scoreNumberText.Add(createScoreNumberText(user.Statistics.RankedScore.ToString(@"#,0")));
|
||||||
scoreText.Add(createScoreText("Accuracy"));
|
scoreText.Add(createScoreText("Accuracy"));
|
||||||
scoreNumberText.Add(createScoreNumberText($"{user.Statistics.Accuracy.ToString("0.##", CultureInfo.CurrentCulture)}%"));
|
scoreNumberText.Add(createScoreNumberText($"{user.Statistics.Accuracy.ToString("0.##")}%"));
|
||||||
scoreText.Add(createScoreText("Play Count"));
|
scoreText.Add(createScoreText("Play Count"));
|
||||||
scoreNumberText.Add(createScoreNumberText(user.Statistics.PlayCount.ToString(@"#,0")));
|
scoreNumberText.Add(createScoreNumberText(user.Statistics.PlayCount.ToString(@"#,0")));
|
||||||
scoreText.Add(createScoreText("Total Score"));
|
scoreText.Add(createScoreText("Total Score"));
|
||||||
|
@ -92,7 +92,7 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
|
|||||||
{
|
{
|
||||||
stats.Add(new OsuSpriteText
|
stats.Add(new OsuSpriteText
|
||||||
{
|
{
|
||||||
Text = $"weighted: {Math.Round(score.PP * weight ?? 0)}pp ({weight.Value.ToString("0%", CultureInfo.CurrentCulture)})",
|
Current = locale.Format($"weighted: {score.PP * weight ?? 0:0}pp ({weight:0%})"),
|
||||||
Anchor = Anchor.TopRight,
|
Anchor = Anchor.TopRight,
|
||||||
Origin = Anchor.TopRight,
|
Origin = Anchor.TopRight,
|
||||||
Colour = colour.GrayA,
|
Colour = colour.GrayA,
|
||||||
|
Loading…
Reference in New Issue
Block a user