Use ToQuantity for words with number prefixes

This commit is contained in:
Joehu
2019-02-27 21:55:45 -08:00
parent 05aa80b184
commit 2241e1af9d
4 changed files with 10 additions and 12 deletions

View File

@ -18,6 +18,7 @@ using System.Linq;
using osu.Framework.Input.Bindings;
using osu.Framework.Input.Events;
using osu.Game.Input.Bindings;
using Humanizer;
namespace osu.Game.Screens.Play
{
@ -263,14 +264,14 @@ namespace osu.Game.Screens.Play
},
new OsuSpriteText
{
Text = $"{retries:n0}",
Text = "time".ToQuantity(retries),
Font = OsuFont.GetFont(weight: FontWeight.Bold, size: 18),
Shadow = true,
ShadowColour = new Color4(0, 0, 0, 0.25f),
},
new OsuSpriteText
{
Text = $" time{(retries == 1 ? "" : "s")} in this session",
Text = " in this session",
Shadow = true,
ShadowColour = new Color4(0, 0, 0, 0.25f),
Font = OsuFont.GetFont(size: 18),