mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Use existing web localisation for most hardcoded strings
This commit is contained in:
@ -14,6 +14,7 @@ using osu.Game.Beatmaps.Drawables;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Game.Graphics.Sprites;
|
||||
using osu.Game.Graphics.UserInterface;
|
||||
using osu.Game.Resources.Localisation.Web;
|
||||
using osu.Game.Rulesets.Mods;
|
||||
using osu.Game.Screens.Play.HUD;
|
||||
using osuTK;
|
||||
@ -158,7 +159,7 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
new Drawable[]
|
||||
{
|
||||
new MetadataLineLabel("Source"),
|
||||
new MetadataLineLabel(BeatmapsetsStrings.ShowInfoSource),
|
||||
new MetadataLineInfo(metadata.Source)
|
||||
},
|
||||
new Drawable[]
|
||||
@ -213,7 +214,7 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
private class MetadataLineLabel : OsuSpriteText
|
||||
{
|
||||
public MetadataLineLabel(string text)
|
||||
public MetadataLineLabel(LocalisableString text)
|
||||
{
|
||||
Anchor = Anchor.TopRight;
|
||||
Origin = Anchor.TopRight;
|
||||
@ -225,10 +226,10 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
private class MetadataLineInfo : OsuSpriteText
|
||||
{
|
||||
public MetadataLineInfo(string text)
|
||||
public MetadataLineInfo(LocalisableString text)
|
||||
{
|
||||
Margin = new MarginPadding { Left = 5 };
|
||||
Text = string.IsNullOrEmpty(text) ? @"-" : text;
|
||||
Text = string.IsNullOrEmpty(text.ToString()) ? @"-" : text;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user