Commit fab0a0ee authored by ctrlaltca's avatar ctrlaltca
Browse files

Merge pull request #1110 from tooomm/text-works2

text works
parents 595d70cf 3767d494
...@@ -789,7 +789,7 @@ void TabDeckEditor::checkFirstRunDetected() ...@@ -789,7 +789,7 @@ void TabDeckEditor::checkFirstRunDetected()
{ {
if(db->hasDetectedFirstRun()) if(db->hasDetectedFirstRun())
{ {
QMessageBox::information(this, tr("Welcome"), tr("Hi! Its seems like it's the first time you run this version of Cockatrice.\nAll the sets in the card database have been enabled.\nRead more about changing the set order or disabling specific sets in the the \"Edit Sets\" window.")); QMessageBox::information(this, tr("Welcome"), tr("Hi! It seems like you're running this version of Cockatrice for the first time.\nAll the sets in the card database have been enabled.\nRead more about changing the set order or disabling specific sets and consequent effects in the \"Edit Sets\" window."));
actEditSets(); actEditSets();
} }
} }
\ No newline at end of file
...@@ -323,7 +323,7 @@ void MainWindow::retranslateUi() ...@@ -323,7 +323,7 @@ void MainWindow::retranslateUi()
#endif #endif
aAbout->setText(tr("&About Cockatrice")); aAbout->setText(tr("&About Cockatrice"));
helpMenu->setTitle(tr("&Help")); helpMenu->setTitle(tr("&Help"));
aCheckCardUpdates->setText(tr("Check card updates...")); aCheckCardUpdates->setText(tr("Check for card updates..."));
tabSupervisor->retranslateUi(); tabSupervisor->retranslateUi();
} }
...@@ -530,7 +530,7 @@ void MainWindow::actCheckCardUpdates() ...@@ -530,7 +530,7 @@ void MainWindow::actCheckCardUpdates()
{ {
if(cardUpdateProcess) if(cardUpdateProcess)
{ {
QMessageBox::information(this, tr("Information"), tr("A card update is already ongoing.")); QMessageBox::information(this, tr("Information"), tr("A card database update is already running."));
return; return;
} }
...@@ -564,7 +564,7 @@ void MainWindow::actCheckCardUpdates() ...@@ -564,7 +564,7 @@ void MainWindow::actCheckCardUpdates()
if(updaterCmd.isEmpty()) if(updaterCmd.isEmpty())
{ {
QMessageBox::warning(this, tr("Error"), tr("Unable to run the card updater: ") + dir.absoluteFilePath(binaryName)); QMessageBox::warning(this, tr("Error"), tr("Unable to run the card database updater: ") + dir.absoluteFilePath(binaryName));
return; return;
} }
...@@ -600,7 +600,7 @@ void MainWindow::cardUpdateError(QProcess::ProcessError err) ...@@ -600,7 +600,7 @@ void MainWindow::cardUpdateError(QProcess::ProcessError err)
cardUpdateProcess->deleteLater(); cardUpdateProcess->deleteLater();
cardUpdateProcess = 0; cardUpdateProcess = 0;
QMessageBox::warning(this, tr("Error"), tr("The card updater exited with an error: %1").arg(error)); QMessageBox::warning(this, tr("Error"), tr("The card database updater exited with an error: %1").arg(error));
} }
void MainWindow::cardUpdateFinished(int, QProcess::ExitStatus) void MainWindow::cardUpdateFinished(int, QProcess::ExitStatus)
...@@ -608,7 +608,7 @@ void MainWindow::cardUpdateFinished(int, QProcess::ExitStatus) ...@@ -608,7 +608,7 @@ void MainWindow::cardUpdateFinished(int, QProcess::ExitStatus)
cardUpdateProcess->deleteLater(); cardUpdateProcess->deleteLater();
cardUpdateProcess = 0; cardUpdateProcess = 0;
QMessageBox::information(this, tr("Information"), tr("Card update completed successfully. Will now reload card database.")); QMessageBox::information(this, tr("Information"), tr("Update completed successfully. Cockatrice will now reload the card database."));
// this will force a database reload // this will force a database reload
settingsCache->setCardDatabasePath(settingsCache->getCardDatabasePath()); settingsCache->setCardDatabasePath(settingsCache->getCardDatabasePath());
......
...@@ -25,7 +25,7 @@ WndSets::WndSets(QWidget *parent) ...@@ -25,7 +25,7 @@ WndSets::WndSets(QWidget *parent)
aTop = new QAction(QString(), this); aTop = new QAction(QString(), this);
aTop->setIcon(QIcon(":/resources/arrow_top_green.svg")); aTop->setIcon(QIcon(":/resources/arrow_top_green.svg"));
aTop->setToolTip(tr("Move selected set to top")); aTop->setToolTip(tr("Move selected set to the top"));
aTop->setEnabled(false); aTop->setEnabled(false);
connect(aTop, SIGNAL(triggered()), this, SLOT(actTop())); connect(aTop, SIGNAL(triggered()), this, SLOT(actTop()));
setsEditToolBar->addAction(aTop); setsEditToolBar->addAction(aTop);
...@@ -46,7 +46,7 @@ WndSets::WndSets(QWidget *parent) ...@@ -46,7 +46,7 @@ WndSets::WndSets(QWidget *parent)
aBottom = new QAction(QString(), this); aBottom = new QAction(QString(), this);
aBottom->setIcon(QIcon(":/resources/arrow_bottom_green.svg")); aBottom->setIcon(QIcon(":/resources/arrow_bottom_green.svg"));
aBottom->setToolTip(tr("Move selected set to bottom")); aBottom->setToolTip(tr("Move selected set to the bottom"));
aBottom->setEnabled(false); aBottom->setEnabled(false);
connect(aBottom, SIGNAL(triggered()), this, SLOT(actBottom())); connect(aBottom, SIGNAL(triggered()), this, SLOT(actBottom()));
setsEditToolBar->addAction(aBottom); setsEditToolBar->addAction(aBottom);
...@@ -92,7 +92,7 @@ WndSets::WndSets(QWidget *parent) ...@@ -92,7 +92,7 @@ WndSets::WndSets(QWidget *parent)
QLabel *labNotes = new QLabel; QLabel *labNotes = new QLabel;
labNotes->setText(tr("Enable the sets that you want to have available in the deck editor.\nMove sets around to change their order, or click on a column header to sort sets on that field.\nSets order decides the source that will be used when loading images for a specific card.\nDisabled sets will still be used for loading images.")); labNotes->setText("<b>" + tr("hints:") + "</b>" + "<ul><li>" + tr("Enable the sets that you want to have available in the deck editor") + "</li><li>" + tr("Move sets around to change their order, or click on a column header to sort sets on that field") + "</li><li>" + tr("Sets order decides the source that will be used when loading images for a specific card") + "</li><li>" + tr("Disabled sets will still be used for loading images") + "</li></ul>");
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
connect(buttonBox, SIGNAL(accepted()), this, SLOT(actSave())); connect(buttonBox, SIGNAL(accepted()), this, SLOT(actSave()));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment