1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-25 07:50:02 +08:00

Use localised strings for SSV2

This commit is contained in:
diquoks
2025-06-20 18:40:21 +03:00
Unverified
parent 21eb4a6260
commit fd27d43814
4 changed files with 16 additions and 11 deletions
@@ -22,6 +22,7 @@ using osu.Game.Configuration;
using osu.Game.Graphics;
using osu.Game.Graphics.Containers;
using osu.Game.Graphics.Sprites;
using osu.Game.Localisation;
using osu.Game.Online.Leaderboards;
using osu.Game.Overlays;
using osu.Game.Resources.Localisation.Web;
@@ -126,7 +127,7 @@ namespace osu.Game.Screens.SelectV2
var generalStatistics = new[]
{
new PerformanceStatisticRow(BeatmapsetsStrings.ShowScoreboardHeaderspp.ToUpper(), colourProvider.Content2, score),
new StatisticRow("Score Multiplier", colourProvider.Content2, ModUtils.FormatScoreMultiplier(multiplier)),
new StatisticRow(ModSelectOverlayStrings.ScoreMultiplier, colourProvider.Content2, ModUtils.FormatScoreMultiplier(multiplier)),
new StatisticRow(BeatmapsetsStrings.ShowScoreboardHeadersCombo, colourProvider.Content2, value.MaxCombo.ToLocalisableString(@"0\x")),
new StatisticRow(BeatmapsetsStrings.ShowScoreboardHeadersAccuracy, colourProvider.Content2, value.Accuracy.FormatAccuracy()),
};
@@ -5,15 +5,18 @@ using System.Collections.Generic;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Extensions.LocalisationExtensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
using osu.Game.Graphics.Containers;
using osu.Game.Localisation;
using osu.Game.Online;
using osu.Game.Online.API;
using osu.Game.Online.API.Requests;
using osu.Game.Online.API.Requests.Responses;
using osu.Game.Online.Chat;
using osu.Game.Resources.Localisation.Web;
using osuTK;
namespace osu.Game.Screens.SelectV2
@@ -124,8 +127,8 @@ namespace osu.Game.Screens.SelectV2
Spacing = new Vector2(0f, 10f),
Children = new[]
{
creator = new MetadataDisplay("Creator"),
genre = new MetadataDisplay("Genre"),
creator = new MetadataDisplay(EditorSetupStrings.Creator),
genre = new MetadataDisplay(BeatmapsetsStrings.ShowInfoGenre),
},
},
new FillFlowContainer
@@ -136,8 +139,8 @@ namespace osu.Game.Screens.SelectV2
Spacing = new Vector2(0f, 10f),
Children = new[]
{
source = new MetadataDisplay("Source"),
language = new MetadataDisplay("Language"),
source = new MetadataDisplay(BeatmapsetsStrings.ShowInfoSource),
language = new MetadataDisplay(BeatmapsetsStrings.ShowInfoLanguage),
},
},
new FillFlowContainer
@@ -148,18 +151,18 @@ namespace osu.Game.Screens.SelectV2
Spacing = new Vector2(0f, 10f),
Children = new[]
{
submitted = new MetadataDisplay("Submitted"),
ranked = new MetadataDisplay("Ranked"),
submitted = new MetadataDisplay(BeatmapsetsStrings.ShowDetailsDateSubmitted("").ToSentence()),
ranked = new MetadataDisplay(BeatmapsetsStrings.ShowDetailsDateRanked("").ToSentence()),
},
},
},
},
},
userTags = new MetadataDisplay("User Tags")
userTags = new MetadataDisplay(BeatmapsetsStrings.ShowInfoUserTags)
{
Alpha = 0,
},
mapperTags = new MetadataDisplay("Mapper Tags"),
mapperTags = new MetadataDisplay(BeatmapsetsStrings.ShowInfoMapperTags),
},
},
},
@@ -136,7 +136,7 @@ namespace osu.Game.Screens.SelectV2
{
Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,
Text = " mapped by ",
Text = BeatmapsStrings.DiscussionsShowTitle("", ""),
Font = OsuFont.Style.Body,
},
mapperLink = new MapperLinkContainer
@@ -16,6 +16,7 @@ using osu.Game.Graphics;
using osu.Game.Graphics.UserInterface;
using osu.Game.Localisation;
using osu.Game.Overlays;
using osu.Game.Resources.Localisation.Web;
using osu.Game.Utils;
using osuTK.Graphics;
@@ -34,7 +35,7 @@ namespace osu.Game.Screens.SelectV2
.Prepend((0.0f, OsuColour.STAR_DIFFICULTY_SPECTRUM.ElementAt(1).Item2)).ToArray();
public DifficultyRangeSlider()
: base("Star Rating")
: base(BeatmapsetsStrings.ShowStatsStars)
{
NubWidth = ShearedNub.HEIGHT * 1.16f;
DefaultStringUpperBound = "∞";