diff --git a/apps/launcher/importpage.cpp b/apps/launcher/importpage.cpp index fa91ad1654e..44c5867c0da 100644 --- a/apps/launcher/importpage.cpp +++ b/apps/launcher/importpage.cpp @@ -104,9 +104,9 @@ void Launcher::ImportPage::on_importerButton_clicked() msgBox.setIcon(QMessageBox::Critical); msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setText( - tr("
Could not open or create %1 for writing
\ -Please make sure you have the right permissions \ - and try again.
") + tr("Could not open or create %1 for writing
" + "Please make sure you have the right permissions " + "and try again.
") .arg(file.fileName())); msgBox.exec(); return; diff --git a/apps/launcher/maindialog.cpp b/apps/launcher/maindialog.cpp index bba3bbe5e1f..177d4fe88c4 100644 --- a/apps/launcher/maindialog.cpp +++ b/apps/launcher/maindialog.cpp @@ -121,9 +121,9 @@ Launcher::FirstRunDialogResult Launcher::MainDialog::showFirstRunDialog() if (!create_directories(userConfigDir)) { cfgError(tr("Error opening OpenMW configuration file"), - tr("Welcome to OpenMW!
\ -It is recommended to run the Installation Wizard.
\ -The Wizard will let you select an existing Morrowind installation, \ - or install Morrowind for OpenMW to use.
")); + tr("Welcome to OpenMW!
" + "It is recommended to run the Installation Wizard.
" + "The Wizard will let you select an existing Morrowind installation, " + "or install Morrowind for OpenMW to use.
")); QAbstractButton* wizardButton = 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)) { cfgError(tr("Error opening OpenMW configuration file"), - tr("You are about to install Tribunal
\ -Bloodmoon is already installed on your computer.
\ -However, it is recommended that you install Tribunal before Bloodmoon.
\ -Would you like to re-install Bloodmoon?
")); + tr("You are about to install Tribunal
" + "Bloodmoon is already installed on your computer.
" + "However, it is recommended that you install Tribunal before Bloodmoon.
" + "Would you like to re-install Bloodmoon?
")); QAbstractButton* reinstallButton = msgBox.addButton(tr("Re-install &Bloodmoon"), QMessageBox::ActionRole); diff --git a/apps/wizard/conclusionpage.cpp b/apps/wizard/conclusionpage.cpp index a184c745ee6..4a4a4ef6890 100644 --- a/apps/wizard/conclusionpage.cpp +++ b/apps/wizard/conclusionpage.cpp @@ -37,22 +37,23 @@ void Wizard::ConclusionPage::initializePage() if (field(QLatin1String("installation.retailDisc")).toBool() == true) { textLabel->setText( - tr("The OpenMW Wizard successfully installed Morrowind on your computer.
\ -Click Finish to close the Wizard.
")); + tr("The OpenMW Wizard successfully installed Morrowind on your computer.
" + "Click Finish to close the Wizard.
")); } else { - textLabel->setText(tr( - "The OpenMW Wizard successfully modified your existing Morrowind installation.
\ -Click Finish to close the Wizard.
")); + textLabel->setText( + tr("The OpenMW Wizard successfully modified your existing Morrowind " + "installation.
Click Finish to close the Wizard.
")); } } else { textLabel->setText( - tr("The OpenMW Wizard failed to install Morrowind on your computer.
\ -Please report any bugs you might have encountered to our \
- bug tracker.
Make sure to include the installation log.
The OpenMW Wizard failed to install Morrowind on your computer.
" + "Please report any bugs you might have encountered to our "
+ "bug tracker.
Make sure to include the "
+ "installation log.
\
- Error: The installation was aborted by the user
"
+ "Error: The installation was aborted by the user
\
- Error: The installation was aborted by the user
"
+ "Error: The installation was aborted by the user
\
- Error: %1
\ - %1
") - .arg(details)); + logTextEdit->appendHtml(tr("
Error: %1
%1
").arg(details)); mWizard->addLogText(QLatin1String("Error: ") + text); mWizard->addLogText(details); @@ -254,9 +248,9 @@ void Wizard::InstallationPage::installationError(const QString& text, const QStr msgBox.setIcon(QMessageBox::Critical); msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setText( - tr("The Wizard has encountered an error
\ -The error reported was:
%1
\ -Press "Show Details..." for more information.
") + tr("The Wizard has encountered an error
" + "The error reported was:
%1
" + "Press "Show Details..." for more information.
") .arg(text)); msgBox.setDetailedText(details); diff --git a/apps/wizard/installationtargetpage.cpp b/apps/wizard/installationtargetpage.cpp index c32573184d2..dc94d2d002e 100644 --- a/apps/wizard/installationtargetpage.cpp +++ b/apps/wizard/installationtargetpage.cpp @@ -48,9 +48,9 @@ bool Wizard::InstallationTargetPage::validatePage() msgBox.setIcon(QMessageBox::Warning); msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setText( - tr("Could not create the destination directory
\ -Please make sure you have the right permissions \ - and try again, or specify a different location.
")); + tr("Could not create the destination directory
" + "Please make sure you have the right permissions " + "and try again, or specify a different location.
")); msgBox.exec(); return false; } @@ -65,9 +65,9 @@ bool Wizard::InstallationTargetPage::validatePage() msgBox.setIcon(QMessageBox::Warning); msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setText( - tr("Could not write to the destination directory
\ -Please make sure you have the right permissions \ - and try again, or specify a different location.
")); + tr("Could not write to the destination directory
" + "Please make sure you have the right permissions " + "and try again, or specify a different location.
")); msgBox.exec(); return false; } @@ -79,9 +79,10 @@ bool Wizard::InstallationTargetPage::validatePage() msgBox.setIcon(QMessageBox::Warning); msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setText( - tr("The destination directory is not empty
\ -An existing Morrowind installation is present in the specified location.
\ -Please specify a different location, or go back and select the location as an existing installation.
")); + tr("The destination directory is not empty
" + "An existing Morrowind installation is present in the specified location.
" + "Please specify a different location, or go back and select the location as an existing " + "installation.
")); msgBox.exec(); return false; } diff --git a/apps/wizard/mainwizard.cpp b/apps/wizard/mainwizard.cpp index 9abb61cfd79..e9cce3db5ed 100644 --- a/apps/wizard/mainwizard.cpp +++ b/apps/wizard/mainwizard.cpp @@ -55,9 +55,9 @@ Wizard::MainWizard::MainWizard(QWidget* parent) &MainWizard::importerFinished); mLogError = tr( - "Could not open %1 for writing
\ -Please make sure you have the right permissions \ - and try again.
"); + "Could not open %1 for writing
" + "Please make sure you have the right permissions " + "and try again.
"); std::filesystem::create_directories(mCfgMgr.getUserConfigPath()); std::filesystem::create_directories(mCfgMgr.getUserDataPath()); @@ -139,9 +139,9 @@ void Wizard::MainWizard::addLogText(const QString& text) void Wizard::MainWizard::setupGameSettings() { QString message( - tr("Could not open %1 for reading
\ -Please make sure you have the right permissions \ - and try again.
")); + tr("Could not open %1 for reading
" + "Please make sure you have the right permissions " + "and try again.
")); // Load the user config file first, separately // So we can write it properly, uncontaminated @@ -210,9 +210,9 @@ void Wizard::MainWizard::setupLauncherSettings() path.append(QLatin1String(Config::LauncherSettings::sLauncherConfigFileName)); QString message( - tr("Could not open %1 for reading
\ -Please make sure you have the right permissions \ - and try again.
")); + tr("Could not open %1 for reading
" + "Please make sure you have the right permissions " + "and try again.
")); QFile file(path); @@ -427,9 +427,9 @@ void Wizard::MainWizard::writeSettings() msgBox.setIcon(QMessageBox::Critical); msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setText( - tr("Could not create %1
\ -Please make sure you have the right permissions \ - and try again.
") + tr("Could not create %1
" + "Please make sure you have the right permissions " + "and try again.
") .arg(userPath)); connect(&msgBox, &QDialog::finished, qApp, &QApplication::quit, Qt::QueuedConnection); msgBox.exec(); @@ -448,9 +448,9 @@ void Wizard::MainWizard::writeSettings() msgBox.setIcon(QMessageBox::Critical); msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setText( - tr("Could not open %1 for writing
\ -Please make sure you have the right permissions \ - and try again.
") + tr("Could not open %1 for writing
" + "Please make sure you have the right permissions " + "and try again.
") .arg(file.fileName())); connect(&msgBox, &QDialog::finished, qApp, &QApplication::quit, Qt::QueuedConnection); msgBox.exec(); @@ -475,9 +475,9 @@ void Wizard::MainWizard::writeSettings() msgBox.setIcon(QMessageBox::Critical); msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setText( - tr("Could not open %1 for writing
\ -Please make sure you have the right permissions \ - and try again.
") + tr("Could not open %1 for writing
" + "Please make sure you have the right permissions " + "and try again.
") .arg(file.fileName())); connect(&msgBox, &QDialog::finished, qApp, &QApplication::quit, Qt::QueuedConnection); msgBox.exec(); diff --git a/components/process/processinvoker.cpp b/components/process/processinvoker.cpp index 73e23eb9f9b..9489076acb0 100644 --- a/components/process/processinvoker.cpp +++ b/components/process/processinvoker.cpp @@ -76,9 +76,9 @@ bool Process::ProcessInvoker::startProcess(const QString& name, const QStringLis msgBox.setIcon(QMessageBox::Warning); msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setText( - tr("Could not find %1
\ -The application is not found.
\ -Please make sure OpenMW is installed correctly and try again.
") + tr("Could not find %1
" + "The application is not found.
" + "Please make sure OpenMW is installed correctly and try again.
") .arg(info.fileName())); msgBox.exec(); return false; @@ -91,9 +91,9 @@ bool Process::ProcessInvoker::startProcess(const QString& name, const QStringLis msgBox.setIcon(QMessageBox::Warning); msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setText( - tr("Could not start %1
\ -The application is not executable.
\ -Please make sure you have the right permissions and try again.
") + tr("Could not start %1
" + "The application is not executable.
" + "Please make sure you have the right permissions and try again.
") .arg(info.fileName())); msgBox.exec(); return false; @@ -109,9 +109,9 @@ bool Process::ProcessInvoker::startProcess(const QString& name, const QStringLis msgBox.setIcon(QMessageBox::Critical); msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setText( - tr("Could not start %1
\ -An error occurred while starting %1.
\ -Press \"Show Details...\" for more information.
") + tr("Could not start %1
" + "An error occurred while starting %1.
" + "Press \"Show Details...\" for more information.
") .arg(info.fileName())); msgBox.setDetailedText(mProcess->errorString()); msgBox.exec(); @@ -168,9 +168,9 @@ void Process::ProcessInvoker::processError(QProcess::ProcessError error) msgBox.setIcon(QMessageBox::Critical); msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setText( - tr("Executable %1 returned an error
\ -An error occurred while running %1.
\ -Press \"Show Details...\" for more information.
") + tr("Executable %1 returned an error
" + "An error occurred while running %1.
" + "Press \"Show Details...\" for more information.
") .arg(mName)); msgBox.setDetailedText(mProcess->errorString()); msgBox.exec(); @@ -191,9 +191,9 @@ void Process::ProcessInvoker::processFinished(int exitCode, QProcess::ExitStatus msgBox.setIcon(QMessageBox::Critical); msgBox.setStandardButtons(QMessageBox::Ok); msgBox.setText( - tr("Executable %1 returned an error
\ -An error occurred while running %1.
\ -Press \"Show Details...\" for more information.
") + tr("Executable %1 returned an error
" + "An error occurred while running %1.
" + "Press \"Show Details...\" for more information.
") .arg(mName)); msgBox.setDetailedText(error); msgBox.exec();