diff --git a/src/Ryujinx/UI/ViewModels/CycleController.cs b/src/Ryujinx/UI/ViewModels/CycleController.cs index 15a1edd11..a8cad0ab6 100644 --- a/src/Ryujinx/UI/ViewModels/CycleController.cs +++ b/src/Ryujinx/UI/ViewModels/CycleController.cs @@ -1,3 +1,4 @@ +using Ryujinx.Ava.Common.Locale; using Ryujinx.Common.Configuration.Hid; namespace Ryujinx.Ava.UI.ViewModels @@ -29,7 +30,18 @@ namespace Ryujinx.Ava.UI.ViewModels public CycleController(int v, Key x) { - Player = $"Player {v}"; + Player = v switch + { + 1 => LocaleManager.Instance[LocaleKeys.ControllerSettingsPlayer1], + 2 => LocaleManager.Instance[LocaleKeys.ControllerSettingsPlayer2], + 3 => LocaleManager.Instance[LocaleKeys.ControllerSettingsPlayer3], + 4 => LocaleManager.Instance[LocaleKeys.ControllerSettingsPlayer4], + 5 => LocaleManager.Instance[LocaleKeys.ControllerSettingsPlayer5], + 6 => LocaleManager.Instance[LocaleKeys.ControllerSettingsPlayer6], + 7 => LocaleManager.Instance[LocaleKeys.ControllerSettingsPlayer7], + 8 => LocaleManager.Instance[LocaleKeys.ControllerSettingsPlayer8], + _ => LocaleManager.Instance[LocaleKeys.ControllerSettingsPlayer] + " " + v + }; Hotkey = x; } } diff --git a/src/Ryujinx/UI/Views/Settings/SettingsHotkeysView.axaml b/src/Ryujinx/UI/Views/Settings/SettingsHotkeysView.axaml index 879f5606c..b338f3955 100644 --- a/src/Ryujinx/UI/Views/Settings/SettingsHotkeysView.axaml +++ b/src/Ryujinx/UI/Views/Settings/SettingsHotkeysView.axaml @@ -29,6 +29,7 @@