From 0111fd0d0e0698a80c8fc29b8b52640dd76ae4b2 Mon Sep 17 00:00:00 2001 From: FlexBy420 <68403300+FlexBy420@users.noreply.github.com> Date: Wed, 20 Nov 2024 15:54:31 +0100 Subject: [PATCH] Make error message for temporary and archive translatable (#16331) --- rpcs3/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rpcs3/main.cpp b/rpcs3/main.cpp index 1c2e73ecf9..d6770127b2 100644 --- a/rpcs3/main.cpp +++ b/rpcs3/main.cpp @@ -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; } }