add missing tr()
This commit is contained in:
parent
faeb3f8daf
commit
7f273b547b
1 changed files with 7 additions and 5 deletions
|
@ -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!") + "<br><br>"
|
||||
+ "<b>" + tr("New version") + QString(":</b> %1<br>").arg(release->getName())
|
||||
+ "<b>" + tr("Publishing date") + QString(":</b> %1 <a href=\"%2\">(").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")</a><br><br>"
|
||||
+ "<b>" + tr("Published") + QString(":</b> %1 <a href=\"%2\">(").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")</a><br><br>"
|
||||
+ 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!") + "<br><br>"
|
||||
+ "<b>" + tr("New version") + QString(":</b> %1<br>").arg(release->getName())
|
||||
+ "<b>" + tr("Publishing date") + QString(":</b> %1 <a href=\"%2\">(").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")</a><br><br>"
|
||||
+ "<b>" + tr("Published") + QString(":</b> %1 <a href=\"%2\">(").arg(publishDate, release->getDescriptionUrl()) + tr("Changelog") + ")</a><br><br>"
|
||||
+ tr("Unfortunately there are no download packages available for your operating system. \nYou may have to build from source yourself.") + "<br><br>"
|
||||
+ 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) {
|
||||
|
|
Loading…
Reference in a new issue