From 970b67cdb6f7603c698db181bfee1eeb9ba91a54 Mon Sep 17 00:00:00 2001 From: tooomm Date: Sat, 29 Apr 2017 20:57:52 +0200 Subject: [PATCH 1/9] update message rework --- cockatrice/src/dlg_update.cpp | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/cockatrice/src/dlg_update.cpp b/cockatrice/src/dlg_update.cpp index 57a763ab..61ad7b44 100644 --- a/cockatrice/src/dlg_update.cpp +++ b/cockatrice/src/dlg_update.cpp @@ -53,8 +53,7 @@ DlgUpdate::DlgUpdate(QWidget *parent) : QDialog(parent) { if (!QSslSocket::supportsSsl()) { enableUpdateButton(false); QMessageBox::critical(this, tr("Error"), - tr("Cockatrice was not built with SSL support, so you cannot download updates automatically! " - "Please visit the download page to update manually.")); + tr("Cockatrice was not built with SSL support, therefore you cannot download updates automatically! \nPlease visit the download page to update manually.")); } //Initialize the checker and downloader class @@ -115,8 +114,11 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas if (!needToUpdate) { //If there's no need to update, tell them that. However we still allow them to run the //downloader themselves if there's a compatible build - QMessageBox::information(this, tr("Cockatrice Update"), tr("Your version of Cockatrice is up to date.")); - setLabel(tr("You are already running the latest %1 release - %2").arg(tr(settingsCache->getUpdateReleaseChannel()->getName().toUtf8())).arg(VERSION_STRING)); + QMessageBox::information(this, tr("Cockatrice Update"), + tr("Cockatrice is up to date!") + QString ("

") + + tr("You are already running the latest version available in the chosen release channel.") + QString("
") + + tr("Current version") + QString(": %2
") + + tr("Current release channel") + QString(": %1").arg(settingsCache->getUpdateReleaseChannel()->getName().toUtf8()).arg(VERSION_STRING)); return; } @@ -126,20 +128,22 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas updateUrl = release->getDownloadUrl(); int reply; - reply = QMessageBox::question(this, "Update Available", - tr("A new version is available:
%1
published on %2 ." - "
More informations are available on the release changelog" - "
Do you want to update now?").arg(release->getName(), publishDate, release->getDescriptionUrl()), + reply = QMessageBox::question(this, tr("Update Available"), + tr("A new version of Cockatrice is available!") + QString("

") + + tr("New version") + QString(": %1
") + + tr("Publishing date") + QString(": %2 (") + tr("Changelog") + QString(")

") + + tr("Do you want to update now?").arg(release->getName(), publishDate, release->getDescriptionUrl()), QMessageBox::Yes | QMessageBox::No); if (reply == QMessageBox::Yes) downloadUpdate(); } else { QMessageBox::information(this, tr("Cockatrice Update"), - tr("A new version is available:
%1
published on %2 ." - "
More informations are available on the release changelog" - "
Unfortunately there are no packages available for your operating system. " - "You may have to use a developer build or build from source yourself. Please visit the download page.").arg(release->getName(), publishDate, release->getDescriptionUrl())); + tr("A new version of Cockatrice is available!") + Qstring("

") + + tr("New version") + QString(": %1
") + + tr("Publishing date") + QString(": %2 (") + tr("Changelog") + QString(")

") + + tr("Unfortunately there are no download packages available for your operating system. \nYou may have to build from source yourself.") + QString("

") + + tr("Please check the download page manually and visit the wiki for instructions on compiling.").arg(release->getName(), publishDate, release->getDescriptionUrl())); } } @@ -190,7 +194,8 @@ void DlgUpdate::downloadSuccessful(QUrl filepath) { } else { setLabel(tr("Error")); QMessageBox::critical(this, tr("Update Error"), - tr("Unable to open the installer. You might be able to manually update by closing Cockatrice and running the installer at %1.").arg(filepath.toLocalFile())); + tr("Unable to open the installer.") + QString("

") + + tr("You might be able to manually update by closing Cockatrice and running the installer downloaded to \n%1.").arg(filepath.toLocalFile())); } } From f18679bfff85e26f188fa2675870d299ee94d0d8 Mon Sep 17 00:00:00 2001 From: tooomm Date: Sat, 29 Apr 2017 22:06:53 +0200 Subject: [PATCH 2/9] fix attempt --- cockatrice/src/dlg_update.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/cockatrice/src/dlg_update.cpp b/cockatrice/src/dlg_update.cpp index 61ad7b44..8fd68123 100644 --- a/cockatrice/src/dlg_update.cpp +++ b/cockatrice/src/dlg_update.cpp @@ -115,10 +115,10 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas //If there's no need to update, tell them that. However we still allow them to run the //downloader themselves if there's a compatible build QMessageBox::information(this, tr("Cockatrice Update"), - tr("Cockatrice is up to date!") + QString ("

") - + tr("You are already running the latest version available in the chosen release channel.") + QString("
") - + tr("Current version") + QString(": %2
") - + tr("Current release channel") + QString(": %1").arg(settingsCache->getUpdateReleaseChannel()->getName().toUtf8()).arg(VERSION_STRING)); + tr("Cockatrice is up to date!") + "

" + + tr("You are already running the latest version available in the chosen release channel.") + "
" + + tr("Current version") + ": %2
" + + tr("Current release channel") + ": %1").arg(settingsCache->getUpdateReleaseChannel()->getName().toUtf8()).arg(VERSION_STRING); return; } @@ -129,21 +129,21 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas int reply; reply = QMessageBox::question(this, tr("Update Available"), - tr("A new version of Cockatrice is available!") + QString("

") - + tr("New version") + QString(": %1
") - + tr("Publishing date") + QString(": %2 (") + tr("Changelog") + QString(")

") - + tr("Do you want to update now?").arg(release->getName(), publishDate, release->getDescriptionUrl()), + tr("A new version of Cockatrice is available!") + "

" + + tr("New version") + ": %1
" + + tr("Publishing date") + ": %2 (" + tr("Changelog") + ")

" + + tr("Do you want to update now?")).arg(release->getName(), publishDate, release->getDescriptionUrl(), QMessageBox::Yes | QMessageBox::No); if (reply == QMessageBox::Yes) downloadUpdate(); } else { QMessageBox::information(this, tr("Cockatrice Update"), - tr("A new version of Cockatrice is available!") + Qstring("

") - + tr("New version") + QString(": %1
") - + tr("Publishing date") + QString(": %2 (") + tr("Changelog") + QString(")

") - + tr("Unfortunately there are no download packages available for your operating system. \nYou may have to build from source yourself.") + QString("

") - + tr("Please check the download page manually and visit the wiki for instructions on compiling.").arg(release->getName(), publishDate, release->getDescriptionUrl())); + tr("A new version of Cockatrice is available!") + "

" + + tr("New version") + ": %1
" + + tr("Publishing date") + ": %2 (" + tr("Changelog") + ")

" + + tr("Unfortunately there are no download packages available for your operating system. \nYou may have to build from source yourself.") + "

" + + tr("Please check the download page manually and visit the wiki for instructions on compiling.")).arg(release->getName(), publishDate, release->getDescriptionUrl()); } } @@ -194,7 +194,7 @@ void DlgUpdate::downloadSuccessful(QUrl filepath) { } else { setLabel(tr("Error")); QMessageBox::critical(this, tr("Update Error"), - tr("Unable to open the installer.") + QString("

") + tr("Unable to open the installer.") + "

" + tr("You might be able to manually update by closing Cockatrice and running the installer downloaded to \n%1.").arg(filepath.toLocalFile())); } } From da42d9e049a1dd61183369fad09d701bd59c5001 Mon Sep 17 00:00:00 2001 From: tooomm Date: Sat, 29 Apr 2017 22:32:07 +0200 Subject: [PATCH 3/9] fix --- cockatrice/src/dlg_update.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cockatrice/src/dlg_update.cpp b/cockatrice/src/dlg_update.cpp index 8fd68123..faa87274 100644 --- a/cockatrice/src/dlg_update.cpp +++ b/cockatrice/src/dlg_update.cpp @@ -117,8 +117,8 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas QMessageBox::information(this, tr("Cockatrice Update"), tr("Cockatrice is up to date!") + "

" + tr("You are already running the latest version available in the chosen release channel.") + "
" - + tr("Current version") + ": %2
" - + tr("Current release channel") + ": %1").arg(settingsCache->getUpdateReleaseChannel()->getName().toUtf8()).arg(VERSION_STRING); + + tr("Current version") + QString(": %1
").arg(settingsCache->getUpdateReleaseChannel()->getName().toUtf8()) + + tr("Current release channel") + QString(": %1").arg(VERSION_STRING)); return; } @@ -130,9 +130,9 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas int reply; reply = QMessageBox::question(this, tr("Update Available"), tr("A new version of Cockatrice is available!") + "

" - + tr("New version") + ": %1
" - + tr("Publishing date") + ": %2 (" + tr("Changelog") + ")

" - + tr("Do you want to update now?")).arg(release->getName(), publishDate, release->getDescriptionUrl(), + + tr("New version") + QString(": %1
").arg(release->getName()) + + tr("Publishing date") + QString(": %2 (").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")

" + + tr("Do you want to update now?"), QMessageBox::Yes | QMessageBox::No); if (reply == QMessageBox::Yes) From ca2e3e5eabf7dad01cc76348bf72c33779a20c75 Mon Sep 17 00:00:00 2001 From: tooomm Date: Sat, 29 Apr 2017 22:45:25 +0200 Subject: [PATCH 4/9] trial_error --- cockatrice/src/dlg_update.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cockatrice/src/dlg_update.cpp b/cockatrice/src/dlg_update.cpp index faa87274..8cb36aa5 100644 --- a/cockatrice/src/dlg_update.cpp +++ b/cockatrice/src/dlg_update.cpp @@ -117,8 +117,8 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas QMessageBox::information(this, tr("Cockatrice Update"), tr("Cockatrice is up to date!") + "

" + tr("You are already running the latest version available in the chosen release channel.") + "
" - + tr("Current version") + QString(": %1
").arg(settingsCache->getUpdateReleaseChannel()->getName().toUtf8()) - + tr("Current release channel") + QString(": %1").arg(VERSION_STRING)); + + tr("Current version") + QString(": %1
").arg(VERSION_STRING) + + tr("Current release channel") + QString(": %1").arg(settingsCache->getUpdateReleaseChannel()->getName().toUtf8())); return; } @@ -131,7 +131,7 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas reply = QMessageBox::question(this, tr("Update Available"), tr("A new version of Cockatrice is available!") + "

" + tr("New version") + QString(": %1
").arg(release->getName()) - + tr("Publishing date") + QString(": %2 (").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")

" + + tr("Publishing date") + QString(": %1 (").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")

" + tr("Do you want to update now?"), QMessageBox::Yes | QMessageBox::No); @@ -140,10 +140,10 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas } else { QMessageBox::information(this, tr("Cockatrice Update"), tr("A new version of Cockatrice is available!") + "

" - + tr("New version") + ": %1
" - + tr("Publishing date") + ": %2 (" + tr("Changelog") + ")

" + + tr("New version") + QString(": %1
").arg(release->getName()) + + tr("Publishing date") + QString(": %1 (").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")

" + tr("Unfortunately there are no download packages available for your operating system. \nYou may have to build from source yourself.") + "

" - + tr("Please check the download page manually and visit the wiki for instructions on compiling.")).arg(release->getName(), publishDate, release->getDescriptionUrl()); + + tr("Please check the download page manually and visit the wiki for instructions on compiling.")); } } From 8f7691b47a3f0e1177270504ed615ee4d48f665b Mon Sep 17 00:00:00 2001 From: tooomm Date: Sat, 29 Apr 2017 22:55:49 +0200 Subject: [PATCH 5/9] next round --- cockatrice/src/dlg_update.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cockatrice/src/dlg_update.cpp b/cockatrice/src/dlg_update.cpp index 8cb36aa5..5c6692b9 100644 --- a/cockatrice/src/dlg_update.cpp +++ b/cockatrice/src/dlg_update.cpp @@ -118,7 +118,7 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas tr("Cockatrice is up to date!") + "

" + tr("You are already running the latest version available in the chosen release channel.") + "
" + tr("Current version") + QString(": %1
").arg(VERSION_STRING) - + tr("Current release channel") + QString(": %1").arg(settingsCache->getUpdateReleaseChannel()->getName().toUtf8())); + + tr("Current release channel") + QString(": %1").arg(tr(settingsCache->getUpdateReleaseChannel()->getName().toUtf8()))); return; } From e04010f00b18ac2c7d099d697d3afe29a09b4ffa Mon Sep 17 00:00:00 2001 From: tooomm Date: Sun, 30 Apr 2017 15:06:32 +0200 Subject: [PATCH 6/9] further tweaks and uniform style --- cockatrice/src/dlg_update.cpp | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/cockatrice/src/dlg_update.cpp b/cockatrice/src/dlg_update.cpp index 5c6692b9..1ff82cb2 100644 --- a/cockatrice/src/dlg_update.cpp +++ b/cockatrice/src/dlg_update.cpp @@ -21,7 +21,7 @@ DlgUpdate::DlgUpdate(QWidget *parent) : QDialog(parent) { statusLabel = new QLabel(this); statusLabel->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed); statusLabel->setWordWrap(true); - descriptionLabel = new QLabel(tr("Current release channel:") + " " + tr(settingsCache->getUpdateReleaseChannel()->getName().toUtf8()), this); + descriptionLabel = new QLabel(tr("Current release channel") + QString(": %1").arg(settingsCache->getUpdateReleaseChannel()->getName().toUtf8()), this); progress = new QProgressBar(this); buttonBox = new QDialogButtonBox(this); @@ -87,7 +87,7 @@ void DlgUpdate::downloadUpdate() { void DlgUpdate::cancelDownload() { emit uDownloader->stopDownload(); - setLabel("Download Canceled"); + setLabel("Download canceled"); addStopDownloadAndRemoveOthers(false); downloadProgressMade(0, 1); } @@ -105,7 +105,7 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas //Update the UI to say we've finished progress->setMaximum(100); - setLabel(tr("Finished checking for updates.")); + setLabel(tr("Finished checking for updates")); //If there are no available builds, then they can't auto update. enableUpdateButton(isCompatible); @@ -114,11 +114,11 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas if (!needToUpdate) { //If there's no need to update, tell them that. However we still allow them to run the //downloader themselves if there's a compatible build - QMessageBox::information(this, tr("Cockatrice Update"), + QMessageBox::information(this, tr("No Update Available"), tr("Cockatrice is up to date!") + "

" + tr("You are already running the latest version available in the chosen release channel.") + "
" - + tr("Current version") + QString(": %1
").arg(VERSION_STRING) - + tr("Current release channel") + QString(": %1").arg(tr(settingsCache->getUpdateReleaseChannel()->getName().toUtf8()))); + + "" + tr("Current version") + QString(": %1
").arg(VERSION_STRING) + + "" + tr("Selected release channel") + QString(": %1").arg(tr(settingsCache->getUpdateReleaseChannel()->getName().toUtf8()))); return; } @@ -130,18 +130,18 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas int reply; reply = QMessageBox::question(this, tr("Update Available"), tr("A new version of Cockatrice is available!") + "

" - + tr("New version") + QString(": %1
").arg(release->getName()) - + tr("Publishing date") + QString(": %1 (").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")

" + + "" + tr("New version") + QString(": %1
").arg(release->getName()) + + "" + tr("Publishing date") + QString(": %1 (").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")

" + tr("Do you want to update now?"), QMessageBox::Yes | QMessageBox::No); if (reply == QMessageBox::Yes) downloadUpdate(); } else { - QMessageBox::information(this, tr("Cockatrice Update"), + QMessageBox::information(this, tr("Update Available"), tr("A new version of Cockatrice is available!") + "

" - + tr("New version") + QString(": %1
").arg(release->getName()) - + tr("Publishing date") + QString(": %1 (").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")

" + + "" + tr("New version") + QString(": %1
").arg(release->getName()) + + "" + tr("Publishing date") + QString(": %1 (").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")

" + tr("Unfortunately there are no download packages available for your operating system. \nYou may have to build from source yourself.") + "

" + tr("Please check the download page manually and visit the wiki for instructions on compiling.")); } @@ -194,8 +194,9 @@ void DlgUpdate::downloadSuccessful(QUrl filepath) { } else { setLabel(tr("Error")); QMessageBox::critical(this, tr("Update Error"), - tr("Unable to open the installer.") + "

" - + tr("You might be able to manually update by closing Cockatrice and running the installer downloaded to \n%1.").arg(filepath.toLocalFile())); + tr("Cockatrice is unable to open the installer.") + "

" + + tr("Try to update manually by closing Cockatrice and running the installer.") + "
" + + tr("Download location") + QString(": %1").arg(filepath.toLocalFile())); } } From faeb3f8daf28c988f38c5167948435810bea535a Mon Sep 17 00:00:00 2001 From: tooomm Date: Sun, 30 Apr 2017 15:17:03 +0200 Subject: [PATCH 7/9] fix --- cockatrice/src/dlg_update.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cockatrice/src/dlg_update.cpp b/cockatrice/src/dlg_update.cpp index 1ff82cb2..beb1baf6 100644 --- a/cockatrice/src/dlg_update.cpp +++ b/cockatrice/src/dlg_update.cpp @@ -21,7 +21,7 @@ DlgUpdate::DlgUpdate(QWidget *parent) : QDialog(parent) { statusLabel = new QLabel(this); statusLabel->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed); statusLabel->setWordWrap(true); - descriptionLabel = new QLabel(tr("Current release channel") + QString(": %1").arg(settingsCache->getUpdateReleaseChannel()->getName().toUtf8()), this); + descriptionLabel = new QLabel(tr("Current release channel") + QString(": %1").arg(tr(settingsCache->getUpdateReleaseChannel()->getName().toUtf8())), this); progress = new QProgressBar(this); buttonBox = new QDialogButtonBox(this); From 7f273b547bf48086874b9fa9d403f584fc163cb8 Mon Sep 17 00:00:00 2001 From: tooomm Date: Sat, 13 May 2017 13:24:04 +0200 Subject: [PATCH 8/9] add missing tr() --- cockatrice/src/dlg_update.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/cockatrice/src/dlg_update.cpp b/cockatrice/src/dlg_update.cpp index beb1baf6..b31a5e05 100644 --- a/cockatrice/src/dlg_update.cpp +++ b/cockatrice/src/dlg_update.cpp @@ -131,7 +131,7 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas reply = QMessageBox::question(this, tr("Update Available"), tr("A new version of Cockatrice is available!") + "

" + "" + tr("New version") + QString(": %1
").arg(release->getName()) - + "" + tr("Publishing date") + QString(": %1 (").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")

" + + "" + tr("Published") + QString(": %1 (").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")

" + tr("Do you want to update now?"), QMessageBox::Yes | QMessageBox::No); @@ -141,7 +141,7 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas QMessageBox::information(this, tr("Update Available"), tr("A new version of Cockatrice is available!") + "

" + "" + tr("New version") + QString(": %1
").arg(release->getName()) - + "" + tr("Publishing date") + QString(": %1 (").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")

" + + "" + tr("Published") + QString(": %1 (").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")

" + tr("Unfortunately there are no download packages available for your operating system. \nYou may have to build from source yourself.") + "

" + tr("Please check the download page manually and visit the wiki for instructions on compiling.")); } @@ -173,14 +173,16 @@ void DlgUpdate::setLabel(QString newText) { } void DlgUpdate::updateCheckError(QString errorString) { - setLabel("Error"); - QMessageBox::critical(this, tr("Update Error"), tr("An error occurred while checking for updates: ") + errorString); + setLabel(tr("Error")); + QMessageBox::critical(this, tr("Update Error"), + tr("An error occurred while checking for updates:") + QString(" ") + errorString); } void DlgUpdate::downloadError(QString errorString) { setLabel(tr("Error")); enableUpdateButton(true); - QMessageBox::critical(this, tr("Update Error"), tr("An error occurred while downloading an update: ") + errorString); + QMessageBox::critical(this, tr("Update Error"), + tr("An error occurred while downloading an update:") + QString(" ") + errorString); } void DlgUpdate::downloadSuccessful(QUrl filepath) { From 73e2c3d32f1fdad937348bc0e4abbb9d294d35ca Mon Sep 17 00:00:00 2001 From: tooomm Date: Sat, 13 May 2017 14:49:35 +0200 Subject: [PATCH 9/9] Publish --> Release --- cockatrice/src/dlg_update.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/dlg_update.cpp b/cockatrice/src/dlg_update.cpp index b31a5e05..8a7212e3 100644 --- a/cockatrice/src/dlg_update.cpp +++ b/cockatrice/src/dlg_update.cpp @@ -131,7 +131,7 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas reply = QMessageBox::question(this, tr("Update Available"), tr("A new version of Cockatrice is available!") + "

" + "" + tr("New version") + QString(": %1
").arg(release->getName()) - + "" + tr("Published") + QString(": %1 (").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")

" + + "" + tr("Released") + QString(": %1 (").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")

" + tr("Do you want to update now?"), QMessageBox::Yes | QMessageBox::No); @@ -141,7 +141,7 @@ void DlgUpdate::finishedUpdateCheck(bool needToUpdate, bool isCompatible, Releas QMessageBox::information(this, tr("Update Available"), tr("A new version of Cockatrice is available!") + "

" + "" + tr("New version") + QString(": %1
").arg(release->getName()) - + "" + tr("Published") + QString(": %1 (").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")

" + + "" + tr("Released") + QString(": %1 (").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")

" + tr("Unfortunately there are no download packages available for your operating system. \nYou may have to build from source yourself.") + "

" + tr("Please check the download page manually and visit the wiki for instructions on compiling.")); }