From 3afc37e68399392bbb4a935f94d96901425a57ac Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Thu, 18 May 2023 19:54:32 -0400 Subject: [PATCH] Localise ButtonKeyAssigner --- src/Ryujinx.Ava/UI/Helpers/ButtonKeyAssigner.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Ryujinx.Ava/UI/Helpers/ButtonKeyAssigner.cs b/src/Ryujinx.Ava/UI/Helpers/ButtonKeyAssigner.cs index 7e8ba7342..c48b83cde 100644 --- a/src/Ryujinx.Ava/UI/Helpers/ButtonKeyAssigner.cs +++ b/src/Ryujinx.Ava/UI/Helpers/ButtonKeyAssigner.cs @@ -2,6 +2,7 @@ using Avalonia.Controls; using Avalonia.Controls.Primitives; using Avalonia.LogicalTree; using Avalonia.Threading; +using Ryujinx.Ava.Common.Locale; using Ryujinx.Input; using Ryujinx.Input.Assigner; using System; @@ -82,7 +83,7 @@ namespace Ryujinx.Ava.UI.Helpers if (_shouldUnbind) { - SetButtonText(ToggledButton, "Unbound"); + SetButtonText(ToggledButton, LocaleManager.Instance[LocaleKeys.KeyUnbound]); } else if (pressedButton != "") { @@ -115,4 +116,4 @@ namespace Ryujinx.Ava.UI.Helpers _shouldUnbind = shouldUnbind; } } -} +} \ No newline at end of file