System: Make some boot error messages translatable
This commit is contained in:
parent
7641bbf5f2
commit
db4f521d92
|
@ -101,7 +101,7 @@ bool HostInterface::BootSystem(const SystemBootParameters& parameters)
|
||||||
|
|
||||||
if (!AcquireHostDisplay())
|
if (!AcquireHostDisplay())
|
||||||
{
|
{
|
||||||
ReportFormattedError("Failed to acquire host display");
|
ReportFormattedError(g_host_interface->TranslateString("System", "Failed to acquire host display."));
|
||||||
OnSystemDestroyed();
|
OnSystemDestroyed();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -115,7 +115,8 @@ bool HostInterface::BootSystem(const SystemBootParameters& parameters)
|
||||||
|
|
||||||
if (!System::Boot(parameters))
|
if (!System::Boot(parameters))
|
||||||
{
|
{
|
||||||
ReportFormattedError("System failed to boot. The log may contain more information.");
|
ReportFormattedError(
|
||||||
|
g_host_interface->TranslateString("System", "System failed to boot. The log may contain more information."));
|
||||||
OnSystemDestroyed();
|
OnSystemDestroyed();
|
||||||
m_audio_stream.reset();
|
m_audio_stream.reset();
|
||||||
ReleaseHostDisplay();
|
ReleaseHostDisplay();
|
||||||
|
|
|
@ -716,7 +716,8 @@ bool Boot(const SystemBootParameters& params)
|
||||||
std::optional<BIOS::Image> bios_image = g_host_interface->GetBIOSImage(s_region);
|
std::optional<BIOS::Image> bios_image = g_host_interface->GetBIOSImage(s_region);
|
||||||
if (!bios_image)
|
if (!bios_image)
|
||||||
{
|
{
|
||||||
g_host_interface->ReportFormattedError("Failed to load %s BIOS", Settings::GetConsoleRegionName(s_region));
|
g_host_interface->ReportFormattedError(g_host_interface->TranslateString("System", "Failed to load %s BIOS."),
|
||||||
|
Settings::GetConsoleRegionName(s_region));
|
||||||
Shutdown();
|
Shutdown();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue