@@ -154,10 +154,11 @@ static bool InitSettings()
154
154
155
155
std::vector<std::string> errors;
156
156
if (!gArgs .ReadSettingsFile (&errors)) {
157
- bilingual_str error = _ (" Settings file could not be read" );
158
- InitError (Untranslated (strprintf (" %s:\n %s\n " , error.original , MakeUnorderedList (errors))));
157
+ std::string error = QT_TRANSLATE_NOOP (" bitcoin-core" , " Settings file could not be read" );
158
+ std::string error_translated = QCoreApplication::translate (" bitcoin-core" , error.c_str ()).toStdString ();
159
+ InitError (Untranslated (strprintf (" %s:\n %s\n " , error, MakeUnorderedList (errors))));
159
160
160
- QMessageBox messagebox (QMessageBox::Critical, PACKAGE_NAME, QString::fromStdString (strprintf (" %s." , error. translated )), QMessageBox::Reset | QMessageBox::Abort);
161
+ QMessageBox messagebox (QMessageBox::Critical, PACKAGE_NAME, QString::fromStdString (strprintf (" %s." , error_translated )), QMessageBox::Reset | QMessageBox::Abort);
161
162
/* : Explanatory text shown on startup when the settings file cannot be read.
162
163
Prompts user to make a choice between resetting or aborting. */
163
164
messagebox.setInformativeText (QObject::tr (" Do you want to reset settings to default values, or to abort without making changes?" ));
@@ -176,10 +177,11 @@ static bool InitSettings()
176
177
177
178
errors.clear ();
178
179
if (!gArgs .WriteSettingsFile (&errors)) {
179
- bilingual_str error = _ (" Settings file could not be written" );
180
- InitError (Untranslated (strprintf (" %s:\n %s\n " , error.original , MakeUnorderedList (errors))));
180
+ std::string error = QT_TRANSLATE_NOOP (" bitcoin-core" , " Settings file could not be written" );
181
+ std::string error_translated = QCoreApplication::translate (" bitcoin-core" , error.c_str ()).toStdString ();
182
+ InitError (Untranslated (strprintf (" %s:\n %s\n " , error, MakeUnorderedList (errors))));
181
183
182
- QMessageBox messagebox (QMessageBox::Critical, PACKAGE_NAME, QString::fromStdString (strprintf (" %s." , error. translated )), QMessageBox::Ok);
184
+ QMessageBox messagebox (QMessageBox::Critical, PACKAGE_NAME, QString::fromStdString (strprintf (" %s." , error_translated )), QMessageBox::Ok);
183
185
/* : Explanatory text shown on startup when the settings file could not be written.
184
186
Prompts user to check that we have the ability to write to the file.
185
187
Explains that the user has the option of running without a settings file.*/
0 commit comments