Use existing web localisation for most hardcoded strings

This commit is contained in:
Joseph Madamba
2022-01-27 20:53:48 -08:00
parent fb5fcdd083
commit 5e5c8e78a6
70 changed files with 224 additions and 147 deletions

View File

@ -6,6 +6,7 @@ using System.Collections.Generic;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Extensions.IEnumerableExtensions;
using osu.Framework.Extensions.LocalisationExtensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Localisation;
@ -34,9 +35,9 @@ namespace osu.Game.Overlays.Notifications
private readonly string clearButtonText;
private readonly string titleText;
private readonly LocalisableString titleText;
public NotificationSection(string title, string clearButtonText)
public NotificationSection(LocalisableString title, string clearButtonText)
{
this.clearButtonText = clearButtonText.ToUpperInvariant();
titleText = title;
@ -84,7 +85,7 @@ namespace osu.Game.Overlays.Notifications
{
new OsuSpriteText
{
Text = titleText.ToUpperInvariant(),
Text = titleText.ToUpper(),
Font = OsuFont.GetFont(weight: FontWeight.Bold)
},
countDrawable = new OsuSpriteText