mirror of https://github.com/ppy/osu
Localise caps lock warning
This commit is contained in:
parent
bb3668c769
commit
ad32d99daa
|
@ -16,6 +16,7 @@
|
|||
using osu.Framework.Input.Events;
|
||||
using osu.Framework.Localisation;
|
||||
using osu.Framework.Platform;
|
||||
using osu.Game.Localisation;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
|
@ -112,7 +113,7 @@ protected override void LoadComplete()
|
|||
|
||||
private partial class CapsWarning : SpriteIcon, IHasTooltip
|
||||
{
|
||||
public LocalisableString TooltipText => "caps lock is active";
|
||||
public LocalisableString TooltipText => CommonStrings.CapsLockIsActive;
|
||||
|
||||
public CapsWarning()
|
||||
{
|
||||
|
|
|
@ -154,6 +154,11 @@ public static class CommonStrings
|
|||
/// </summary>
|
||||
public static LocalisableString Exit => new TranslatableString(getKey(@"exit"), @"Exit");
|
||||
|
||||
/// <summary>
|
||||
/// "caps lock is active"
|
||||
/// </summary>
|
||||
public static LocalisableString CapsLockIsActive => new TranslatableString(getKey(@"caps_lock_is_active"), @"caps lock is active");
|
||||
|
||||
private static string getKey(string key) => $@"{prefix}:{key}";
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue