Localize all (I think...) previously hardcoded english strings in the setup wizard

This commit is contained in:
GreemDev
2025-12-07 02:03:10 -06:00
parent 4be6cb2fa1
commit 2970dcd3c7
7 changed files with 368 additions and 62 deletions

View File

@@ -27,8 +27,8 @@ namespace Ryujinx.UI.SetupWizard.Pages
{
if (GameDirs.Count is 0)
{
NotificationManager.Error("At least one folder for games must be selected; otherwise the UI will be empty.");
return Result.Failure(RetryError.Shared);
NotificationManager.Error(LocaleManager.Instance[LocaleKeys.SetupWizardGameDirsPageNoFoldersSelectedError]);
return Result.Fail;
}
ConfigurationState.Instance.UI.GameDirs.Value = GameDirs.ToList();
@@ -49,14 +49,14 @@ namespace Ryujinx.UI.SetupWizard.Pages
grid.Children.Add(new TextBlock
{
Text = "Not sure how to get your games, updates, and/or DLC onto your PC?",
Text = LocaleManager.Instance[LocaleKeys.SetupWizardGameDirsPageHelpText],
HorizontalAlignment = HorizontalAlignment.Center,
GridRow = 0
});
grid.Children.Add(new HyperlinkButton
{
Content = "Click here to view a guide.",
Content = LocaleManager.Instance[LocaleKeys.SetupWizardHelpLinkButton],
HorizontalAlignment = HorizontalAlignment.Center,
NavigateUri = new Uri(SharedConstants.DumpContentWikiUrl),
GridRow = 1
@@ -65,9 +65,4 @@ namespace Ryujinx.UI.SetupWizard.Pages
return grid;
}
}
public struct RetryError : IErrorState
{
public static readonly RetryError Shared = new();
}
}