mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-17 06:11:49 +01:00
- Fixed an accelerator key in the English version
- Added a reference to the web site in the About box - Fixed an encoding problem on an error message - Explained better the error message saying to select a dictionary
This commit is contained in:
parent
46b6c3efe4
commit
4d86e236e0
2 changed files with 9 additions and 4 deletions
|
@ -449,7 +449,7 @@ void MainWindow::createMenu()
|
|||
|
||||
QMenu *menuHelp = new QMenu(m_ui.menubar);
|
||||
m_ui.menubar->addAction(menuHelp->menuAction());
|
||||
menuHelp->setTitle(_q("&Help"));
|
||||
menuHelp->setTitle(_q("Hel&p"));
|
||||
addMenuAction(menuHelp, _q("&About..."), QString(""),
|
||||
_q("About Eliot"), SLOT(onHelpAbout()),
|
||||
false, QIcon(":/images/info_16px.png"));
|
||||
|
@ -460,7 +460,10 @@ void MainWindow::onGameNew()
|
|||
{
|
||||
if (m_dic == NULL)
|
||||
{
|
||||
displayErrorMsg(_q("You have to select a dictionary first!"));
|
||||
displayErrorMsg(_q("You have to select a dictionary (.dawg file) "
|
||||
"before starting a game. This can be done in the "
|
||||
"\"Settings\" menu."
|
||||
"\n\nYou can download dictionary files on Eliot web site."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -832,6 +835,8 @@ void MainWindow::onHelpAbout()
|
|||
"modify it under the terms of the GNU General Public License as " \
|
||||
"published by the Free Software Foundation; either version 2 of " \
|
||||
"the License, or (at your option) any later version.");
|
||||
msg += "\n\n";
|
||||
msg += _q("Web site: http://www.nongnu.org/eliot/en/");
|
||||
// QMessageBox::about() doesn't add the nice information icon, so we create
|
||||
// the box manually (not much work...)
|
||||
QMessageBox aboutBox(QMessageBox::Information, _q("About Eliot"),
|
||||
|
|
|
@ -221,7 +221,7 @@ void TrainingWidget::on_pushButtonRack_clicked()
|
|||
}
|
||||
catch (GameException &e)
|
||||
{
|
||||
emit notifyProblem(e.what());
|
||||
emit notifyProblem(_q(e.what()));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -237,7 +237,7 @@ void TrainingWidget::on_pushButtonComplement_clicked()
|
|||
}
|
||||
catch (GameException &e)
|
||||
{
|
||||
emit notifyProblem(e.what());
|
||||
emit notifyProblem(_q(e.what()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue