aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Ava/UI/Helpers/UserErrorDialog.cs
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2023-01-21 02:06:19 +0100
committerGitHub <noreply@github.com>2023-01-21 02:06:19 +0100
commit8474d52778d6bc45146b59a1fc921e6702f4b96a (patch)
treece34a56ec8a2296bf3e5f891853a31a8d6bab6e0 /Ryujinx.Ava/UI/Helpers/UserErrorDialog.cs
parentdd7a924596ff5925baa8b7f3ec85ceda8cb1cd8a (diff)
Ava UI: Fix `string.Format` issues in Locale (#4305)1.1.580
* Ava UI: Fix `string.Format` issues in Locale * LoacLanguage everytime now * Apply suggestions from code review Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * fix UpdateAndGetDynamicValue Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com>
Diffstat (limited to 'Ryujinx.Ava/UI/Helpers/UserErrorDialog.cs')
-rw-r--r--Ryujinx.Ava/UI/Helpers/UserErrorDialog.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.Ava/UI/Helpers/UserErrorDialog.cs b/Ryujinx.Ava/UI/Helpers/UserErrorDialog.cs
index 06ec8e30..4ed629ff 100644
--- a/Ryujinx.Ava/UI/Helpers/UserErrorDialog.cs
+++ b/Ryujinx.Ava/UI/Helpers/UserErrorDialog.cs
@@ -76,11 +76,11 @@ namespace Ryujinx.Ava.UI.Helpers
string setupButtonLabel = isInSetupGuide ? LocaleManager.Instance[LocaleKeys.OpenSetupGuideMessage] : "";
var result = await ContentDialogHelper.CreateInfoDialog(
- string.Format(LocaleManager.Instance[LocaleKeys.DialogUserErrorDialogMessage], errorCode, GetErrorTitle(error)),
+ LocaleManager.Instance.UpdateAndGetDynamicValue(LocaleKeys.DialogUserErrorDialogMessage, errorCode, GetErrorTitle(error)),
GetErrorDescription(error) + (isInSetupGuide
? LocaleManager.Instance[LocaleKeys.DialogUserErrorDialogInfoMessage]
: ""), setupButtonLabel, LocaleManager.Instance[LocaleKeys.InputDialogOk],
- string.Format(LocaleManager.Instance[LocaleKeys.DialogUserErrorDialogTitle], errorCode));
+ LocaleManager.Instance.UpdateAndGetDynamicValue(LocaleKeys.DialogUserErrorDialogTitle, errorCode));
if (result == UserResult.Ok)
{