mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 14:42:56 +08:00
Localise user graph.
This commit is contained in:
parent
306a34a802
commit
a0c6945f8f
@ -9,6 +9,7 @@ using osu.Framework.Bindables;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Game.Graphics.Sprites;
|
||||
using osu.Game.Resources.Localisation.Web;
|
||||
using osu.Game.Users;
|
||||
|
||||
namespace osu.Game.Overlays.Profile.Header.Components
|
||||
@ -27,7 +28,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Text = "No recent plays",
|
||||
Text = UsersStrings.ShowExtraUnranked,
|
||||
Font = OsuFont.GetFont(size: 12, weight: FontWeight.Regular)
|
||||
});
|
||||
}
|
||||
@ -74,7 +75,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
|
||||
private class RankGraphTooltip : UserGraphTooltip
|
||||
{
|
||||
public RankGraphTooltip()
|
||||
: base("Global Ranking")
|
||||
: base(UsersStrings.ShowRankGlobalSimple)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -11,6 +11,7 @@ using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Cursor;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
using osu.Framework.Input.Events;
|
||||
using osu.Framework.Localisation;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Game.Graphics.Sprites;
|
||||
using osu.Game.Graphics.UserInterface;
|
||||
@ -211,7 +212,7 @@ namespace osu.Game.Overlays.Profile
|
||||
protected readonly OsuSpriteText Counter, BottomText;
|
||||
private readonly Box background;
|
||||
|
||||
protected UserGraphTooltip(string tooltipCounterName)
|
||||
protected UserGraphTooltip(LocalisableString tooltipCounterName)
|
||||
{
|
||||
AutoSizeAxes = Axes.Both;
|
||||
Masking = true;
|
||||
|
Loading…
Reference in New Issue
Block a user