Commit 9c7a4829 authored by Antoni Bella Pérez's avatar Antoni Bella Pérez 🚵🏻
Browse files

GUI l10n fixes

* Add @title:window helpers and capitalization fixes to menu items
parent b5325c05
......@@ -4,7 +4,7 @@
"\n"
"Created by Gabriel Miltschitzky [gabriel dot miltschitzky at googlemail dot com], who also provided the recorded solutions.\n"
"\n"
"It is best to play the first Gold Rush levels before attempting Gold Rush II, because you will need many techniques that are easier to learn there. None of the levels in Gold Rush and Gold Rush II are impossible. If in doubt, use menu item 'Move->Show A Solution' to watch solutions provided by the author.");
"It is best to play the first Gold Rush levels before attempting Gold Rush II, because you will need many techniques that are easier to learn there. None of the levels in Gold Rush and Gold Rush II are impossible. If in doubt, use menu item 'Move->Show a Solution' to watch solutions provided by the author.");
// L001
// ZZZZZZZZZZZZZ ZZ ZZZZ Z Z Z Z ZZ Z Z Z ZZZZ ZZZZ Z ZZZZZZ Z ZZZZ Z ZZZH ZZZ ZZZ ZZZZHH ZZZZZZRZZ ZZZZ HH Z E ZZZ Z Z HH ZZZZZZZ EEE Z ZZHH Z EEEEE Z HH Z Z EEEEEEE Z HH Z EEEEEEEEE Z HH Z Z EEEEEEEEEEE Z HH ZN EEEEEEEEEEEEE Z HH EEEEEEEEEEEEEEE ZHH EEEEEEEEEEEEEEEEE HH EEEEEEEEEEEEEEEEEEE H
i18n("A Big Start");
......
i18nc("Note to translators: the hints for the levels of Gold Of The Living Dead, a KGoldrunner game, are sometimes rather complicated, so it may help you to open the game and display the layout of a level as you translate the hint. It may also help to play the solution, by pressing H (for Hint) and then Escape (or click the Show A Solution button). You can move easily from one level to the next by using the Y key and you can prevent a level from playing by using the Pause key (P or Escape).", " ");
i18nc("Note to translators: the hints for the levels of Gold Of The Living Dead, a KGoldrunner game, are sometimes rather complicated, so it may help you to open the game and display the layout of a level as you translate the hint. It may also help to play the solution, by pressing H (for Hint) and then Escape (or click the 'Show a Solution' button). You can move easily from one level to the next by using the Y key and you can prevent a level from playing by using the Pause key (P or Escape).", " ");
// G050 T GotD C
i18n("Gold Of The Living Dead");
i18n("The Zombie Apocalypse is upon us and you are the last human left alive on Earth, but the zombies still have plenty of gold. However, being zombies, they are more interested in you than the treasure...\n"
......
......@@ -242,7 +242,7 @@ void KGoldrunner::setupActions()
a = KStandardGameAction::solve (this, nullptr, nullptr);
actionCollection()->addAction (a->objectName(), a);
connect (a, &QAction::triggered, this, [this] { game->gameActions(SOLVE); });
a->setText (i18n ("&Show A Solution"));
a->setText (i18n ("&Show a Solution"));
a->setToolTip (i18n ("Show how to win this level."));
a->setWhatsThis (i18n ("Play a recording of how to win this level, if "
"there is one available."));
......
......@@ -31,7 +31,7 @@ KGrNHDialog::KGrNHDialog (const QString & levelName, const QString & levelHint,
QWidget * parent)
: QDialog (parent)
{
setWindowTitle (i18n ("Edit Name & Hint"));
setWindowTitle (i18nc("@title:window", "Edit Name or Hint"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel);
QWidget *mainWidget = new QWidget(this);
QVBoxLayout *mainLayout = new QVBoxLayout;
......@@ -100,7 +100,7 @@ KGrECDialog::KGrECDialog (int action, int gameIndex,
myGameList = gamesList;
defaultGame = gameIndex;
setWindowTitle (i18n ("Edit Game Info"));
setWindowTitle (i18nc("@title:window", "Edit Game Info"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel);
connect(buttonBox, &QDialogButtonBox::accepted, this, &KGrECDialog::accept);
......@@ -166,10 +166,10 @@ KGrECDialog::KGrECDialog (int action, int gameIndex,
dad-> setMinimumSize ((FIELDWIDTH*cell/2), (FIELDHEIGHT-1)*cell);
if (action == SL_CR_GAME) {
setWindowTitle (i18n ("Create Game"));
setWindowTitle (i18nc("@title:window", "Create Game"));
}
else {
setWindowTitle (i18n ("Edit Game Info"));
setWindowTitle (i18nc("@title:window", "Edit Game Info"));
}
QString OKText;
......@@ -244,7 +244,7 @@ KGrLGDialog::KGrLGDialog (QFile * savedGames,
QWidget * parent)
: QDialog (parent)
{
setWindowTitle (i18n ("Select Saved Game"));
setWindowTitle (i18nc("@title:window", "Select Saved Game"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true);
......
......@@ -692,7 +692,7 @@ void KGrGame::quickStartDialog()
qs = new QDialog (view);
// Modal dialog, 4 buttons, vertically: the PLAY button has the focus.
qs->setWindowTitle (i18n("Quick Start"));
qs->setWindowTitle (i18nc("@title:window", "Quick Start"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
QPushButton *newGameButton = new QPushButton;
......@@ -833,7 +833,7 @@ void KGrGame::runReplay (const int action,
setPlayback (true); // Set playback again (startDemo() cleared it).
if (! startDemo
(SYSTEM, gameList.at (selectedGame)->prefix, selectedLevel)) {
KGrMessage::information (view, i18n ("Show A Solution"),
KGrMessage::information (view, i18n ("Show a Solution"),
i18n ("Sorry, although all levels of KGoldrunner can be "
"solved, no solution has been recorded yet for the "
"level you selected."), QStringLiteral("Show_noSolutionRecorded"));
......@@ -1300,7 +1300,7 @@ void KGrGame::showHint()
freeze (ProgramPause, true);
// TODO - IDW. Check if a solution exists BEFORE showing the extra button.
switch (KGrMessage::warning (view, caption, levelHint,
i18n ("&OK"), i18n ("&Show A Solution"))) {
i18n ("&OK"), i18n ("&Show a Solution"))) {
case 0:
freeze (ProgramPause, false); // No replay requested.
break;
......@@ -1719,7 +1719,7 @@ void KGrGame::checkHighScore()
mainLayout-> addWidget (hsnUser);
mainLayout-> addWidget (OK);
hsn-> setWindowTitle (i18n ("Save High Score"));
hsn-> setWindowTitle (i18nc("@title:window", "Save High Score"));
// QPoint p = view->mapToGlobal (QPoint (0,0));
// hsn-> move (p.x() + 50, p.y() + 50);
......@@ -1884,7 +1884,7 @@ void KGrGame::showHighScores()
i18n ("Date"));
scores->setRootIsDecorated (false);
hs-> setWindowTitle (i18n ("High Scores"));
hs-> setWindowTitle (i18nc("@title:window", "High Scores"));
// Read and display the users, levels and scores from the high score file.
scores->clear();
......
......@@ -116,7 +116,7 @@ void KGrSLDialog::setupWidgets()
setLayout(layout);
layout->addWidget(dad);
setWindowTitle (i18n ("Select Game"));
setWindowTitle (i18nc("@title:window", "Select Game"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help);
QVBoxLayout *buttonLayout = new QVBoxLayout;
connect(buttonBox, &QDialogButtonBox::accepted, this, &KGrSLDialog::accept);
......@@ -171,13 +171,13 @@ void KGrSLDialog::setupWidgets()
mainLayout->addWidget (separator);
if ((slAction == SL_START) || (slAction == SL_UPD_GAME)) {
dad-> setWindowTitle (i18n ("Select Game"));
dad-> setWindowTitle (i18nc("@title:window", "Select Game"));
QLabel * startMsg = new QLabel
(QStringLiteral("<b>") + i18n ("Level 1 of the selected game is:") + QStringLiteral("</b>"), dad);
mainLayout->addWidget (startMsg, 5);
}
else {
dad-> setWindowTitle (i18n ("Select Game/Level"));
dad-> setWindowTitle (i18nc("@title:window", "Select Game/Level"));
QLabel * selectLev = new QLabel
(QStringLiteral("<b>") + i18n ("Please select a level:") + QStringLiteral("</b>"), dad);
mainLayout->addWidget (selectLev, 5);
......@@ -204,7 +204,7 @@ void KGrSLDialog::setupWidgets()
hboxLayout2->addWidget (numberL);
hboxLayout2->addWidget (display);
levelNH = new QPushButton (i18n ("Edit Level Name && Hint"), dad);
levelNH = new QPushButton (i18n ("Edit Level Name o&r Hint"), dad);
mainLayout->addWidget (levelNH);
slName = new QLabel (dad);
......
Markdown is supported
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