@@ -457,7 +457,7 @@ int GuiMain(int argc, char* argv[])
457
457
SetupUIArgs ();
458
458
std::string error;
459
459
if (!node->parseParameters (argc, argv, error)) {
460
- node->initError (strprintf (" Error parsing command line arguments: %s\n " , error));
460
+ node->initError (strprintf (Untranslated ( " Error parsing command line arguments: %s\n " ) , error));
461
461
// Create a message box, because the gui has neither been created nor has subscribed to core signals
462
462
QMessageBox::critical (nullptr , PACKAGE_NAME,
463
463
// message can not be translated because translations have not been initialized
@@ -498,13 +498,13 @@ int GuiMain(int argc, char* argv[])
498
498
// / 6. Determine availability of data directory and parse bitcoin.conf
499
499
// / - Do not call GetDataDir(true) before this step finishes
500
500
if (!CheckDataDirOption ()) {
501
- node->initError (strprintf (" Specified data directory \" %s\" does not exist.\n " , gArgs .GetArg (" -datadir" , " " )));
501
+ node->initError (strprintf (Untranslated ( " Specified data directory \" %s\" does not exist.\n " ) , gArgs .GetArg (" -datadir" , " " )));
502
502
QMessageBox::critical (nullptr , PACKAGE_NAME,
503
503
QObject::tr (" Error: Specified data directory \" %1\" does not exist." ).arg (QString::fromStdString (gArgs .GetArg (" -datadir" , " " ))));
504
504
return EXIT_FAILURE;
505
505
}
506
506
if (!node->readConfigFiles (error)) {
507
- node->initError (strprintf (" Error reading configuration file: %s\n " , error));
507
+ node->initError (strprintf (Untranslated ( " Error reading configuration file: %s\n " ) , error));
508
508
QMessageBox::critical (nullptr , PACKAGE_NAME,
509
509
QObject::tr (" Error: Cannot parse configuration file: %1." ).arg (QString::fromStdString (error)));
510
510
return EXIT_FAILURE;
@@ -520,7 +520,7 @@ int GuiMain(int argc, char* argv[])
520
520
try {
521
521
node->selectParams (gArgs .GetChainName ());
522
522
} catch (std::exception &e) {
523
- node->initError (strprintf (" %s\n " , e.what ()));
523
+ node->initError (Untranslated ( strprintf (" %s\n " , e.what () )));
524
524
QMessageBox::critical (nullptr , PACKAGE_NAME, QObject::tr (" Error: %1" ).arg (e.what ()));
525
525
return EXIT_FAILURE;
526
526
}
0 commit comments