Make error message for temporary and archive translatable (#16331)

This commit is contained in:
FlexBy420 2024-11-20 15:54:31 +01:00 committed by GitHub
parent cc86e01df9
commit 0111fd0d0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1099,10 +1099,10 @@ int main(int argc, char** argv)
{
if (Emu.IsPathInsideDir(emu_dir, path.toStdString()))
{
report_fatal_error(fmt::format(
report_fatal_error(QObject::tr(
"RPCS3 should never be run from a temporary location!\n"
"Please install RPCS3 in a persistent location.\n"
"Current location:\n%s", emu_dir));
"Current location:\n%0").arg(QString::fromStdString(emu_dir)).toStdString());
return 1;
}
}
@ -1112,10 +1112,10 @@ int main(int argc, char** argv)
{
if (emu_dir.find(expr) != umax)
{
report_fatal_error(fmt::format(
report_fatal_error(QObject::tr(
"RPCS3 should never be run from an archive!\n"
"Please install RPCS3 in a persistent location.\n"
"Current location:\n%s", emu_dir));
"Current location:\n%0").arg(QString::fromStdString(emu_dir)).toStdString());
return 1;
}
}