From a8cb33a7eddcb9373f083cd712e1b7c3191f2f68 Mon Sep 17 00:00:00 2001 From: _Neo_ Date: Mon, 23 Mar 2026 18:54:16 +0200 Subject: [PATCH] Adjust some locales and add shortcuts --- assets/Locales/Root.json | 140 +++++++++--------- .../UI/ViewModels/MainWindowViewModel.cs | 18 +++ .../UI/Views/Main/MainMenuBarView.axaml.cs | 18 --- src/Ryujinx/UI/Windows/MainWindow.axaml | 2 + 4 files changed, 90 insertions(+), 88 deletions(-) diff --git a/assets/Locales/Root.json b/assets/Locales/Root.json index f5ebdca1e..f8e6ea170 100644 --- a/assets/Locales/Root.json +++ b/assets/Locales/Root.json @@ -553,51 +553,51 @@ { "ID": "MenuBarOptionsStopEmulation", "Translations": { - "ar_SA": "إيقاف المحاكاة", - "de_DE": "Emulation beenden", - "el_GR": "Διακοπή Εξομοίωσης", - "en_US": "Stop Emulation", - "es_ES": "Detener Emulación", - "fr_FR": "Arrêter l'Émulation", - "he_IL": "עצור אמולציה", - "it_IT": "Arresta l'emulazione", - "ja_JP": "エミュレーションを中止", - "ko_KR": "에뮬레이션 중지", - "no_NO": "Stopp Emulering", - "pl_PL": "Zatrzymaj emulację", - "pt_BR": "Parar a Emulação", + "ar_SA": "إيقاف", + "de_DE": "Beenden", + "el_GR": "Διακοπή", + "en_US": "Stop", + "es_ES": "Detener", + "fr_FR": "Arrêter", + "he_IL": "עצור", + "it_IT": "Arresta", + "ja_JP": "中止", + "ko_KR": "중지", + "no_NO": "Stopp", + "pl_PL": "Zatrzymaj", + "pt_BR": "Parar", "ru_RU": "Остановить", - "sv_SE": "Stoppa emulering", - "th_TH": "หยุดการจำลอง", - "tr_TR": "Emülasyonu Durdur", - "uk_UA": "Зупинити емуляцію", - "zh_CN": "停止模拟", - "zh_TW": "停止模擬" + "sv_SE": "Stoppa", + "th_TH": "หยุด", + "tr_TR": "Durdur", + "uk_UA": "Зупинити", + "zh_CN": "停止", + "zh_TW": "停止" } }, { "ID": "MenuBarOptionsRestartEmulation", "Translations": { - "ar_SA": "", - "de_DE": "", - "el_GR": "", - "en_US": "Restart Emulation", - "es_ES": "", - "fr_FR": "", - "he_IL": "", - "it_IT": "", - "ja_JP": "", - "ko_KR": "", - "no_NO": "", - "pl_PL": "", - "pt_BR": "", - "ru_RU": "", - "sv_SE": "Starta om emulering", - "th_TH": "", - "tr_TR": "", - "uk_UA": "", - "zh_CN": "", - "zh_TW": "" + "ar_SA": "إعادة تشغيل", + "de_DE": "Neu starten", + "el_GR": "Επανεκκίνηση", + "en_US": "Restart", + "es_ES": "Reiniciar", + "fr_FR": "Redémarrer", + "he_IL": "הפעל מחדש", + "it_IT": "Riavvia", + "ja_JP": "再起動", + "ko_KR": "재시작", + "no_NO": "Start på nytt", + "pl_PL": "Uruchom ponownie", + "pt_BR": "Reiniciar", + "ru_RU": "Перезапустить", + "sv_SE": "Starta om", + "th_TH": "เริ่มใหม่", + "tr_TR": "Yeniden başlat", + "uk_UA": "Перезапустити", + "zh_CN": "重新启动", + "zh_TW": "重新啟動" } }, { @@ -903,24 +903,24 @@ { "ID": "MenuBarActionsTools", "Translations": { - "ar_SA": "", - "de_DE": "", - "el_GR": "", + "ar_SA": "أدوات", + "de_DE": "Werkzeuge", + "el_GR": "Εργαλεία", "en_US": "Tools", "es_ES": "Herramientas", "fr_FR": "Outils", - "he_IL": "", + "he_IL": "כלים", "it_IT": "Strumenti", - "ja_JP": "", + "ja_JP": "ツール", "ko_KR": "도구", - "no_NO": "", - "pl_PL": "", + "no_NO": "Verktøy", + "pl_PL": "Narzędzia", "pt_BR": "Ferramentas", "ru_RU": "Инструменты", "sv_SE": "Verktyg", - "th_TH": "", - "tr_TR": "", - "uk_UA": "", + "th_TH": "เครื่องมือ", + "tr_TR": "Araçlar", + "uk_UA": "Інструменти", "zh_CN": "工具", "zh_TW": "工具" } @@ -3353,26 +3353,26 @@ { "ID": "SettingsTabGeneralFocusLossTypePauseEmulation", "Translations": { - "ar_SA": "إيقاف التشغيل مؤقتًا", - "de_DE": "Emulation pausieren", - "el_GR": "Παύση προσομοίωσης", - "en_US": "Pause Emulation", - "es_ES": "Pausar Emulación", - "fr_FR": "Pauser l'Émulation", - "he_IL": "השהיית האמולציה", - "it_IT": "Pausa emulazione", - "ja_JP": "エミュレーション一時停止", - "ko_KR": "에뮬레이션 일시중지", - "no_NO": "Pause Emulatoren", - "pl_PL": "Wstrzymaj emulację", - "pt_BR": "Pausar emulação", - "ru_RU": "Пауза эмуляции", - "sv_SE": "Pausa emuleringen", - "th_TH": "พักการจำลอง", - "tr_TR": "Emülasyonu Duraklat", - "uk_UA": "Пауза емуляції", - "zh_CN": "暂停模拟", - "zh_TW": "暫停模擬" + "ar_SA": "إيقاف مؤقت", + "de_DE": null, + "el_GR": "Παύση", + "en_US": "Pause", + "es_ES": "Pausa", + "fr_FR": null, + "he_IL": "השהיה", + "it_IT": "Pausa", + "ja_JP": "一時停止", + "ko_KR": "일시중지", + "no_NO": null, + "pl_PL": "Pauza", + "pt_BR": "Pausa", + "ru_RU": "Пауза", + "sv_SE": "Paus", + "th_TH": "หยุดชั่วคราว", + "tr_TR": "Duraklat", + "uk_UA": "Пауза", + "zh_CN": "暂停", + "zh_TW": "暫停" } }, { @@ -11808,7 +11808,7 @@ "el_GR": "Απόκρυψη UI", "en_US": "Hide UI", "es_ES": "Ocultar Interfaz", - "fr_FR": "Masquer l'Interface Utilisateur", + "fr_FR": "Masquer l'Interface", "he_IL": "הסתר ממשק משתמש ", "it_IT": "Nascondi l'interfaccia", "ja_JP": "UIを隠す", diff --git a/src/Ryujinx/UI/ViewModels/MainWindowViewModel.cs b/src/Ryujinx/UI/ViewModels/MainWindowViewModel.cs index 3e28107a2..db3e0e73b 100644 --- a/src/Ryujinx/UI/ViewModels/MainWindowViewModel.cs +++ b/src/Ryujinx/UI/ViewModels/MainWindowViewModel.cs @@ -1886,6 +1886,24 @@ namespace Ryujinx.Ava.UI.ViewModels Title = RyujinxApp.FormatTitle(); }); } + + public async Task OpenCheatManagerForCurrentApp() + { + if (IsGameRunning) + { + string name = AppHost.Device.Processes.ActiveApplication.ApplicationControlProperties.Title[(int)AppHost.Device.System.State.DesiredTitleLanguage].NameString.ToString(); + + await StyleableAppWindow.ShowAsync( + new CheatWindow( + Window.VirtualFileSystem, + AppHost.Device.Processes.ActiveApplication.ProgramIdText, + name, + SelectedApplication.Path) + ); + + AppHost.Device.EnableCheats(); + } + } public async Task OpenAmiiboWindow() { diff --git a/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml.cs b/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml.cs index 82ab15a66..bb114c92f 100644 --- a/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml.cs +++ b/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml.cs @@ -164,24 +164,6 @@ namespace Ryujinx.Ava.UI.Views.Main await ViewModel.LoadApplication(appData, ViewModel.IsFullScreen || ViewModel.StartGamesInFullscreen, nacpData); } - public async Task OpenCheatManagerForCurrentApp() - { - if (!ViewModel.IsGameRunning) - return; - - string name = ViewModel.AppHost.Device.Processes.ActiveApplication.ApplicationControlProperties.Title[(int)ViewModel.AppHost.Device.System.State.DesiredTitleLanguage].NameString.ToString(); - - await StyleableAppWindow.ShowAsync( - new CheatWindow( - Window.VirtualFileSystem, - ViewModel.AppHost.Device.Processes.ActiveApplication.ProgramIdText, - name, - ViewModel.SelectedApplication.Path) - ); - - ViewModel.AppHost.Device.EnableCheats(); - } - private void ScanAmiiboMenuItem_AttachedToVisualTree(object sender, VisualTreeAttachmentEventArgs e) { if (sender is MenuItem) diff --git a/src/Ryujinx/UI/Windows/MainWindow.axaml b/src/Ryujinx/UI/Windows/MainWindow.axaml index 39a70ba16..07e0882df 100644 --- a/src/Ryujinx/UI/Windows/MainWindow.axaml +++ b/src/Ryujinx/UI/Windows/MainWindow.axaml @@ -41,9 +41,11 @@ + +