Do not include formatting spaces to localizable strings

macos_ci_fix
Andrei Kortunov 1 year ago
parent b280f1b1d0
commit c5b16d1ba2

@ -104,9 +104,9 @@ void Launcher::ImportPage::on_importerButton_clicked()
msgBox.setIcon(QMessageBox::Critical); msgBox.setIcon(QMessageBox::Critical);
msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setStandardButtons(QMessageBox::Ok);
msgBox.setText( msgBox.setText(
tr("<html><head/><body><p><b>Could not open or create %1 for writing </b></p> \ tr("<html><head/><body><p><b>Could not open or create %1 for writing </b></p>"
<p>Please make sure you have the right permissions \ "<p>Please make sure you have the right permissions "
and try again.</p></body></html>") "and try again.</p></body></html>")
.arg(file.fileName())); .arg(file.fileName()));
msgBox.exec(); msgBox.exec();
return; return;

@ -121,9 +121,9 @@ Launcher::FirstRunDialogResult Launcher::MainDialog::showFirstRunDialog()
if (!create_directories(userConfigDir)) if (!create_directories(userConfigDir))
{ {
cfgError(tr("Error opening OpenMW configuration file"), cfgError(tr("Error opening OpenMW configuration file"),
tr("<br><b>Could not create directory %0</b><br><br> \ tr("<br><b>Could not create directory %0</b><br><br>"
Please make sure you have the right permissions \ "Please make sure you have the right permissions "
and try again.<br>") "and try again.<br>")
.arg(Files::pathToQString(canonical(userConfigDir)))); .arg(Files::pathToQString(canonical(userConfigDir))));
return FirstRunDialogResultFailure; return FirstRunDialogResultFailure;
} }
@ -136,10 +136,10 @@ Launcher::FirstRunDialogResult Launcher::MainDialog::showFirstRunDialog()
msgBox.setIcon(QMessageBox::Question); msgBox.setIcon(QMessageBox::Question);
msgBox.setStandardButtons(QMessageBox::NoButton); msgBox.setStandardButtons(QMessageBox::NoButton);
msgBox.setText( msgBox.setText(
tr("<html><head/><body><p><b>Welcome to OpenMW!</b></p> \ tr("<html><head/><body><p><b>Welcome to OpenMW!</b></p>"
<p>It is recommended to run the Installation Wizard.</p> \ "<p>It is recommended to run the Installation Wizard.</p>"
<p>The Wizard will let you select an existing Morrowind installation, \ "<p>The Wizard will let you select an existing Morrowind installation, "
or install Morrowind for OpenMW to use.</p></body></html>")); "or install Morrowind for OpenMW to use.</p></body></html>"));
QAbstractButton* wizardButton QAbstractButton* wizardButton
= msgBox.addButton(tr("Run &Installation Wizard"), QMessageBox::AcceptRole); // ActionRole doesn't work?! = msgBox.addButton(tr("Run &Installation Wizard"), QMessageBox::AcceptRole); // ActionRole doesn't work?!
@ -297,9 +297,9 @@ bool Launcher::MainDialog::setupLauncherSettings()
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
{ {
cfgError(tr("Error opening OpenMW configuration file"), cfgError(tr("Error opening OpenMW configuration file"),
tr("<br><b>Could not open %0 for reading:</b><br><br>%1<br><br> \ tr("<br><b>Could not open %0 for reading:</b><br><br>%1<br><br>"
Please make sure you have the right permissions \ "Please make sure you have the right permissions "
and try again.<br>") "and try again.<br>")
.arg(file.fileName()) .arg(file.fileName())
.arg(file.errorString())); .arg(file.errorString()));
return false; return false;
@ -327,9 +327,9 @@ bool Launcher::MainDialog::setupGameSettings()
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
{ {
cfgError(tr("Error opening OpenMW configuration file"), cfgError(tr("Error opening OpenMW configuration file"),
tr("<br><b>Could not open %0 for reading</b><br><br> \ tr("<br><b>Could not open %0 for reading</b><br><br>"
Please make sure you have the right permissions \ "Please make sure you have the right permissions "
and try again.<br>") "and try again.<br>")
.arg(file.fileName())); .arg(file.fileName()));
return {}; return {};
} }
@ -388,8 +388,8 @@ bool Launcher::MainDialog::setupGameData()
msgBox.setIcon(QMessageBox::Warning); msgBox.setIcon(QMessageBox::Warning);
msgBox.setStandardButtons(QMessageBox::NoButton); msgBox.setStandardButtons(QMessageBox::NoButton);
msgBox.setText( msgBox.setText(
tr("<br><b>Could not find the Data Files location</b><br><br> \ tr("<br><b>Could not find the Data Files location</b><br><br>"
The directory containing the data files was not found.")); "The directory containing the data files was not found."));
QAbstractButton* wizardButton = msgBox.addButton(tr("Run &Installation Wizard..."), QMessageBox::ActionRole); QAbstractButton* wizardButton = msgBox.addButton(tr("Run &Installation Wizard..."), QMessageBox::ActionRole);
QAbstractButton* skipButton = msgBox.addButton(tr("Skip"), QMessageBox::RejectRole); QAbstractButton* skipButton = msgBox.addButton(tr("Skip"), QMessageBox::RejectRole);
@ -419,8 +419,8 @@ bool Launcher::MainDialog::setupGraphicsSettings()
catch (std::exception& e) catch (std::exception& e)
{ {
cfgError(tr("Error reading OpenMW configuration files"), cfgError(tr("Error reading OpenMW configuration files"),
tr("<br>The problem may be due to an incomplete installation of OpenMW.<br> \ tr("<br>The problem may be due to an incomplete installation of OpenMW.<br>"
Reinstalling OpenMW may resolve the problem.<br>") "Reinstalling OpenMW may resolve the problem.<br>")
+ e.what()); + e.what());
return false; return false;
} }
@ -460,9 +460,9 @@ bool Launcher::MainDialog::writeSettings()
if (!create_directories(userPath)) if (!create_directories(userPath))
{ {
cfgError(tr("Error creating OpenMW configuration directory"), cfgError(tr("Error creating OpenMW configuration directory"),
tr("<br><b>Could not create %0</b><br><br> \ tr("<br><b>Could not create %0</b><br><br>"
Please make sure you have the right permissions \ "Please make sure you have the right permissions "
and try again.<br>") "and try again.<br>")
.arg(Files::pathToQString(userPath))); .arg(Files::pathToQString(userPath)));
return false; return false;
} }
@ -479,9 +479,9 @@ bool Launcher::MainDialog::writeSettings()
{ {
// File cannot be opened or created // File cannot be opened or created
cfgError(tr("Error writing OpenMW configuration file"), cfgError(tr("Error writing OpenMW configuration file"),
tr("<br><b>Could not open or create %0 for writing</b><br><br> \ tr("<br><b>Could not open or create %0 for writing</b><br><br>"
Please make sure you have the right permissions \ "Please make sure you have the right permissions "
and try again.<br>") "and try again.<br>")
.arg(file.fileName())); .arg(file.fileName()));
return false; return false;
} }
@ -510,9 +510,9 @@ bool Launcher::MainDialog::writeSettings()
{ {
// File cannot be opened or created // File cannot be opened or created
cfgError(tr("Error writing Launcher configuration file"), cfgError(tr("Error writing Launcher configuration file"),
tr("<br><b>Could not open or create %0 for writing</b><br><br> \ tr("<br><b>Could not open or create %0 for writing</b><br><br>"
Please make sure you have the right permissions \ "Please make sure you have the right permissions "
and try again.<br>") "and try again.<br>")
.arg(file.fileName())); .arg(file.fileName()));
return false; return false;
} }
@ -562,8 +562,8 @@ void Launcher::MainDialog::play()
msgBox.setIcon(QMessageBox::Warning); msgBox.setIcon(QMessageBox::Warning);
msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setStandardButtons(QMessageBox::Ok);
msgBox.setText( msgBox.setText(
tr("<br><b>You do not have a game file selected.</b><br><br> \ tr("<br><b>You do not have a game file selected.</b><br><br>"
OpenMW will not start without a game file selected.<br>")); "OpenMW will not start without a game file selected.<br>"));
msgBox.exec(); msgBox.exec();
return; return;
} }

@ -138,10 +138,10 @@ bool Wizard::ComponentSelectionPage::validatePage()
msgBox.setIcon(QMessageBox::Information); msgBox.setIcon(QMessageBox::Information);
msgBox.setStandardButtons(QMessageBox::Cancel); msgBox.setStandardButtons(QMessageBox::Cancel);
msgBox.setText( msgBox.setText(
tr("<html><head/><body><p><b>You are about to install Tribunal</b></p> \ tr("<html><head/><body><p><b>You are about to install Tribunal</b></p>"
<p>Bloodmoon is already installed on your computer.</p> \ "<p>Bloodmoon is already installed on your computer.</p>"
<p>However, it is recommended that you install Tribunal before Bloodmoon.</p> \ "<p>However, it is recommended that you install Tribunal before Bloodmoon.</p>"
<p>Would you like to re-install Bloodmoon?</p></body></html>")); "<p>Would you like to re-install Bloodmoon?</p></body></html>"));
QAbstractButton* reinstallButton QAbstractButton* reinstallButton
= msgBox.addButton(tr("Re-install &Bloodmoon"), QMessageBox::ActionRole); = msgBox.addButton(tr("Re-install &Bloodmoon"), QMessageBox::ActionRole);

@ -37,22 +37,23 @@ void Wizard::ConclusionPage::initializePage()
if (field(QLatin1String("installation.retailDisc")).toBool() == true) if (field(QLatin1String("installation.retailDisc")).toBool() == true)
{ {
textLabel->setText( textLabel->setText(
tr("<html><head/><body><p>The OpenMW Wizard successfully installed Morrowind on your computer.</p> \ tr("<html><head/><body><p>The OpenMW Wizard successfully installed Morrowind on your computer.</p>"
<p>Click Finish to close the Wizard.</p></body></html>")); "<p>Click Finish to close the Wizard.</p></body></html>"));
} }
else else
{ {
textLabel->setText(tr( textLabel->setText(
"<html><head/><body><p>The OpenMW Wizard successfully modified your existing Morrowind installation.</p> \ tr("<html><head/><body><p>The OpenMW Wizard successfully modified your existing Morrowind "
<p>Click Finish to close the Wizard.</p></body></html>")); "installation.</p><p>Click Finish to close the Wizard.</p></body></html>"));
} }
} }
else else
{ {
textLabel->setText( textLabel->setText(
tr("<html><head/><body><p>The OpenMW Wizard failed to install Morrowind on your computer.</p> \ tr("<html><head/><body><p>The OpenMW Wizard failed to install Morrowind on your computer.</p>"
<p>Please report any bugs you might have encountered to our \ "<p>Please report any bugs you might have encountered to our "
<a href=\"https://gitlab.com/OpenMW/openmw/issues\">bug tracker</a>.<br/>Make sure to include the installation log.</p><br/></body></html>")); "<a href=\"https://gitlab.com/OpenMW/openmw/issues\">bug tracker</a>.<br/>Make sure to include the "
"installation log.</p><br/></body></html>"));
} }
} }

@ -58,9 +58,9 @@ bool Wizard::ExistingInstallationPage::validatePage()
msgBox.setIcon(QMessageBox::Warning); msgBox.setIcon(QMessageBox::Warning);
msgBox.setStandardButtons(QMessageBox::Cancel); msgBox.setStandardButtons(QMessageBox::Cancel);
msgBox.setText( msgBox.setText(
QObject::tr("<br><b>Could not find Morrowind.ini</b><br><br> \ QObject::tr("<br><b>Could not find Morrowind.ini</b><br><br>"
The Wizard needs to update settings in this file.<br><br> \ "The Wizard needs to update settings in this file.<br><br>"
Press \"Browse...\" to specify the location manually.<br>")); "Press \"Browse...\" to specify the location manually.<br>"));
QAbstractButton* browseButton2 = msgBox.addButton(QObject::tr("B&rowse..."), QMessageBox::ActionRole); QAbstractButton* browseButton2 = msgBox.addButton(QObject::tr("B&rowse..."), QMessageBox::ActionRole);
@ -107,8 +107,8 @@ void Wizard::ExistingInstallationPage::on_browseButton_clicked()
msgBox.setIcon(QMessageBox::Warning); msgBox.setIcon(QMessageBox::Warning);
msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setStandardButtons(QMessageBox::Ok);
msgBox.setText( msgBox.setText(
QObject::tr("<b>Morrowind.bsa</b> is missing!<br>\ QObject::tr("<b>Morrowind.bsa</b> is missing!<br>"
Make sure your Morrowind installation is complete.")); "Make sure your Morrowind installation is complete."));
msgBox.exec(); msgBox.exec();
return; return;
} }
@ -187,8 +187,8 @@ bool Wizard::ExistingInstallationPage::versionIsOK(QString directory_name)
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No); msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
msgBox.setDefaultButton(QMessageBox::No); msgBox.setDefaultButton(QMessageBox::No);
msgBox.setText( msgBox.setText(
QObject::tr("<br><b>There may be a more recent version of Morrowind available.</b><br><br>\ QObject::tr("<br><b>There may be a more recent version of Morrowind available.</b><br><br>"
Do you wish to continue anyway?<br>")); "Do you wish to continue anyway?<br>"));
int ret = msgBox.exec(); int ret = msgBox.exec();
if (ret == QMessageBox::Yes) if (ret == QMessageBox::Yes)
{ {

@ -175,8 +175,8 @@ void Wizard::InstallationPage::showFileDialog(Wizard::Component component)
if (path.isEmpty()) if (path.isEmpty())
{ {
logTextEdit->appendHtml( logTextEdit->appendHtml(
tr("<p><br/><span style=\"color:red;\"> \ tr("<p><br/><span style=\"color:red;\">"
<b>Error: The installation was aborted by the user</b></span></p>")); "<b>Error: The installation was aborted by the user</b></span></p>"));
mWizard->addLogText(QLatin1String("Error: The installation was aborted by the user")); mWizard->addLogText(QLatin1String("Error: The installation was aborted by the user"));
mWizard->mError = true; mWizard->mError = true;
@ -205,8 +205,8 @@ void Wizard::InstallationPage::showOldVersionDialog()
if (ret == QMessageBox::No) if (ret == QMessageBox::No)
{ {
logTextEdit->appendHtml( logTextEdit->appendHtml(
tr("<p><br/><span style=\"color:red;\"> \ tr("<p><br/><span style=\"color:red;\">"
<b>Error: The installation was aborted by the user</b></span></p>")); "<b>Error: The installation was aborted by the user</b></span></p>"));
mWizard->addLogText(QLatin1String("Error: The installation was aborted by the user")); mWizard->addLogText(QLatin1String("Error: The installation was aborted by the user"));
mWizard->mError = true; mWizard->mError = true;
@ -236,14 +236,8 @@ void Wizard::InstallationPage::installationError(const QString& text, const QStr
{ {
installProgressLabel->setText(tr("Installation failed!")); installProgressLabel->setText(tr("Installation failed!"));
logTextEdit->appendHtml( logTextEdit->appendHtml(tr("<p><br/><span style=\"color:red;\"><b>Error: %1</b></p>").arg(text));
tr("<p><br/><span style=\"color:red;\"> \ logTextEdit->appendHtml(tr("<p><span style=\"color:red;\"><b>%1</b></p>").arg(details));
<b>Error: %1</b></p>")
.arg(text));
logTextEdit->appendHtml(
tr("<p><span style=\"color:red;\"> \
<b>%1</b></p>")
.arg(details));
mWizard->addLogText(QLatin1String("Error: ") + text); mWizard->addLogText(QLatin1String("Error: ") + text);
mWizard->addLogText(details); mWizard->addLogText(details);
@ -254,9 +248,9 @@ void Wizard::InstallationPage::installationError(const QString& text, const QStr
msgBox.setIcon(QMessageBox::Critical); msgBox.setIcon(QMessageBox::Critical);
msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setStandardButtons(QMessageBox::Ok);
msgBox.setText( msgBox.setText(
tr("<html><head/><body><p><b>The Wizard has encountered an error</b></p> \ tr("<html><head/><body><p><b>The Wizard has encountered an error</b></p>"
<p>The error reported was:</p><p>%1</p> \ "<p>The error reported was:</p><p>%1</p>"
<p>Press &quot;Show Details...&quot; for more information.</p></body></html>") "<p>Press &quot;Show Details...&quot; for more information.</p></body></html>")
.arg(text)); .arg(text));
msgBox.setDetailedText(details); msgBox.setDetailedText(details);

@ -48,9 +48,9 @@ bool Wizard::InstallationTargetPage::validatePage()
msgBox.setIcon(QMessageBox::Warning); msgBox.setIcon(QMessageBox::Warning);
msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setStandardButtons(QMessageBox::Ok);
msgBox.setText( msgBox.setText(
tr("<html><head/><body><p><b>Could not create the destination directory</b></p> \ tr("<html><head/><body><p><b>Could not create the destination directory</b></p>"
<p>Please make sure you have the right permissions \ "<p>Please make sure you have the right permissions "
and try again, or specify a different location.</p></body></html>")); "and try again, or specify a different location.</p></body></html>"));
msgBox.exec(); msgBox.exec();
return false; return false;
} }
@ -65,9 +65,9 @@ bool Wizard::InstallationTargetPage::validatePage()
msgBox.setIcon(QMessageBox::Warning); msgBox.setIcon(QMessageBox::Warning);
msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setStandardButtons(QMessageBox::Ok);
msgBox.setText( msgBox.setText(
tr("<html><head/><body><p><b>Could not write to the destination directory</b></p> \ tr("<html><head/><body><p><b>Could not write to the destination directory</b></p>"
<p>Please make sure you have the right permissions \ "<p>Please make sure you have the right permissions "
and try again, or specify a different location.</p></body></html>")); "and try again, or specify a different location.</p></body></html>"));
msgBox.exec(); msgBox.exec();
return false; return false;
} }
@ -79,9 +79,10 @@ bool Wizard::InstallationTargetPage::validatePage()
msgBox.setIcon(QMessageBox::Warning); msgBox.setIcon(QMessageBox::Warning);
msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setStandardButtons(QMessageBox::Ok);
msgBox.setText( msgBox.setText(
tr("<html><head/><body><p><b>The destination directory is not empty</b></p> \ tr("<html><head/><body><p><b>The destination directory is not empty</b></p>"
<p>An existing Morrowind installation is present in the specified location.</p> \ "<p>An existing Morrowind installation is present in the specified location.</p>"
<p>Please specify a different location, or go back and select the location as an existing installation.</p></body></html>")); "<p>Please specify a different location, or go back and select the location as an existing "
"installation.</p></body></html>"));
msgBox.exec(); msgBox.exec();
return false; return false;
} }

@ -55,9 +55,9 @@ Wizard::MainWizard::MainWizard(QWidget* parent)
&MainWizard::importerFinished); &MainWizard::importerFinished);
mLogError = tr( mLogError = tr(
"<html><head/><body><p><b>Could not open %1 for writing</b></p> \ "<html><head/><body><p><b>Could not open %1 for writing</b></p>"
<p>Please make sure you have the right permissions \ "<p>Please make sure you have the right permissions "
and try again.</p></body></html>"); "and try again.</p></body></html>");
std::filesystem::create_directories(mCfgMgr.getUserConfigPath()); std::filesystem::create_directories(mCfgMgr.getUserConfigPath());
std::filesystem::create_directories(mCfgMgr.getUserDataPath()); std::filesystem::create_directories(mCfgMgr.getUserDataPath());
@ -139,9 +139,9 @@ void Wizard::MainWizard::addLogText(const QString& text)
void Wizard::MainWizard::setupGameSettings() void Wizard::MainWizard::setupGameSettings()
{ {
QString message( QString message(
tr("<html><head/><body><p><b>Could not open %1 for reading</b></p> \ tr("<html><head/><body><p><b>Could not open %1 for reading</b></p>"
<p>Please make sure you have the right permissions \ "<p>Please make sure you have the right permissions "
and try again.</p></body></html>")); "and try again.</p></body></html>"));
// Load the user config file first, separately // Load the user config file first, separately
// So we can write it properly, uncontaminated // So we can write it properly, uncontaminated
@ -210,9 +210,9 @@ void Wizard::MainWizard::setupLauncherSettings()
path.append(QLatin1String(Config::LauncherSettings::sLauncherConfigFileName)); path.append(QLatin1String(Config::LauncherSettings::sLauncherConfigFileName));
QString message( QString message(
tr("<html><head/><body><p><b>Could not open %1 for reading</b></p> \ tr("<html><head/><body><p><b>Could not open %1 for reading</b></p>"
<p>Please make sure you have the right permissions \ "<p>Please make sure you have the right permissions "
and try again.</p></body></html>")); "and try again.</p></body></html>"));
QFile file(path); QFile file(path);
@ -427,9 +427,9 @@ void Wizard::MainWizard::writeSettings()
msgBox.setIcon(QMessageBox::Critical); msgBox.setIcon(QMessageBox::Critical);
msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setStandardButtons(QMessageBox::Ok);
msgBox.setText( msgBox.setText(
tr("<html><head/><body><p><b>Could not create %1</b></p> \ tr("<html><head/><body><p><b>Could not create %1</b></p>"
<p>Please make sure you have the right permissions \ "<p>Please make sure you have the right permissions "
and try again.</p></body></html>") "and try again.</p></body></html>")
.arg(userPath)); .arg(userPath));
connect(&msgBox, &QDialog::finished, qApp, &QApplication::quit, Qt::QueuedConnection); connect(&msgBox, &QDialog::finished, qApp, &QApplication::quit, Qt::QueuedConnection);
msgBox.exec(); msgBox.exec();
@ -448,9 +448,9 @@ void Wizard::MainWizard::writeSettings()
msgBox.setIcon(QMessageBox::Critical); msgBox.setIcon(QMessageBox::Critical);
msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setStandardButtons(QMessageBox::Ok);
msgBox.setText( msgBox.setText(
tr("<html><head/><body><p><b>Could not open %1 for writing</b></p> \ tr("<html><head/><body><p><b>Could not open %1 for writing</b></p>"
<p>Please make sure you have the right permissions \ "<p>Please make sure you have the right permissions "
and try again.</p></body></html>") "and try again.</p></body></html>")
.arg(file.fileName())); .arg(file.fileName()));
connect(&msgBox, &QDialog::finished, qApp, &QApplication::quit, Qt::QueuedConnection); connect(&msgBox, &QDialog::finished, qApp, &QApplication::quit, Qt::QueuedConnection);
msgBox.exec(); msgBox.exec();
@ -475,9 +475,9 @@ void Wizard::MainWizard::writeSettings()
msgBox.setIcon(QMessageBox::Critical); msgBox.setIcon(QMessageBox::Critical);
msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setStandardButtons(QMessageBox::Ok);
msgBox.setText( msgBox.setText(
tr("<html><head/><body><p><b>Could not open %1 for writing</b></p> \ tr("<html><head/><body><p><b>Could not open %1 for writing</b></p>"
<p>Please make sure you have the right permissions \ "<p>Please make sure you have the right permissions "
and try again.</p></body></html>") "and try again.</p></body></html>")
.arg(file.fileName())); .arg(file.fileName()));
connect(&msgBox, &QDialog::finished, qApp, &QApplication::quit, Qt::QueuedConnection); connect(&msgBox, &QDialog::finished, qApp, &QApplication::quit, Qt::QueuedConnection);
msgBox.exec(); msgBox.exec();

@ -76,9 +76,9 @@ bool Process::ProcessInvoker::startProcess(const QString& name, const QStringLis
msgBox.setIcon(QMessageBox::Warning); msgBox.setIcon(QMessageBox::Warning);
msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setStandardButtons(QMessageBox::Ok);
msgBox.setText( msgBox.setText(
tr("<html><head/><body><p><b>Could not find %1</b></p> \ tr("<html><head/><body><p><b>Could not find %1</b></p>"
<p>The application is not found.</p> \ "<p>The application is not found.</p>"
<p>Please make sure OpenMW is installed correctly and try again.</p></body></html>") "<p>Please make sure OpenMW is installed correctly and try again.</p></body></html>")
.arg(info.fileName())); .arg(info.fileName()));
msgBox.exec(); msgBox.exec();
return false; return false;
@ -91,9 +91,9 @@ bool Process::ProcessInvoker::startProcess(const QString& name, const QStringLis
msgBox.setIcon(QMessageBox::Warning); msgBox.setIcon(QMessageBox::Warning);
msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setStandardButtons(QMessageBox::Ok);
msgBox.setText( msgBox.setText(
tr("<html><head/><body><p><b>Could not start %1</b></p> \ tr("<html><head/><body><p><b>Could not start %1</b></p>"
<p>The application is not executable.</p> \ "<p>The application is not executable.</p>"
<p>Please make sure you have the right permissions and try again.</p></body></html>") "<p>Please make sure you have the right permissions and try again.</p></body></html>")
.arg(info.fileName())); .arg(info.fileName()));
msgBox.exec(); msgBox.exec();
return false; return false;
@ -109,9 +109,9 @@ bool Process::ProcessInvoker::startProcess(const QString& name, const QStringLis
msgBox.setIcon(QMessageBox::Critical); msgBox.setIcon(QMessageBox::Critical);
msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setStandardButtons(QMessageBox::Ok);
msgBox.setText( msgBox.setText(
tr("<html><head/><body><p><b>Could not start %1</b></p> \ tr("<html><head/><body><p><b>Could not start %1</b></p>"
<p>An error occurred while starting %1.</p> \ "<p>An error occurred while starting %1.</p>"
<p>Press \"Show Details...\" for more information.</p></body></html>") "<p>Press \"Show Details...\" for more information.</p></body></html>")
.arg(info.fileName())); .arg(info.fileName()));
msgBox.setDetailedText(mProcess->errorString()); msgBox.setDetailedText(mProcess->errorString());
msgBox.exec(); msgBox.exec();
@ -168,9 +168,9 @@ void Process::ProcessInvoker::processError(QProcess::ProcessError error)
msgBox.setIcon(QMessageBox::Critical); msgBox.setIcon(QMessageBox::Critical);
msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setStandardButtons(QMessageBox::Ok);
msgBox.setText( msgBox.setText(
tr("<html><head/><body><p><b>Executable %1 returned an error</b></p> \ tr("<html><head/><body><p><b>Executable %1 returned an error</b></p>"
<p>An error occurred while running %1.</p> \ "<p>An error occurred while running %1.</p>"
<p>Press \"Show Details...\" for more information.</p></body></html>") "<p>Press \"Show Details...\" for more information.</p></body></html>")
.arg(mName)); .arg(mName));
msgBox.setDetailedText(mProcess->errorString()); msgBox.setDetailedText(mProcess->errorString());
msgBox.exec(); msgBox.exec();
@ -191,9 +191,9 @@ void Process::ProcessInvoker::processFinished(int exitCode, QProcess::ExitStatus
msgBox.setIcon(QMessageBox::Critical); msgBox.setIcon(QMessageBox::Critical);
msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setStandardButtons(QMessageBox::Ok);
msgBox.setText( msgBox.setText(
tr("<html><head/><body><p><b>Executable %1 returned an error</b></p> \ tr("<html><head/><body><p><b>Executable %1 returned an error</b></p>"
<p>An error occurred while running %1.</p> \ "<p>An error occurred while running %1.</p>"
<p>Press \"Show Details...\" for more information.</p></body></html>") "<p>Press \"Show Details...\" for more information.</p></body></html>")
.arg(mName)); .arg(mName));
msgBox.setDetailedText(error); msgBox.setDetailedText(error);
msgBox.exec(); msgBox.exec();

Loading…
Cancel
Save