Commit 83977b7d authored by Antoni Bella Pérez's avatar Antoni Bella Pérez 🚵🏻
Browse files

GUI l10n fixes

* Add a @title:window helper and fix punctuation into a menu item
* Fix the page names into New Game dialog
parent 91ecf4f5
......@@ -1751,7 +1751,7 @@ void KolfGame::showInfoDlg(bool addDontShowAgain)
i18n("Course name: %1", holeInfo.name()) + QStringLiteral("\n")
+ i18n("Created by %1", holeInfo.author()) + QStringLiteral("\n")
+ i18np("%1 hole", "%1 holes", highestHole),
i18n("Course Information"),
i18nc("@title:window", "Course Information"),
addDontShowAgain? holeInfo.name() + QStringLiteral(" ") + holeInfo.author() : QString());
}
......
......@@ -196,7 +196,7 @@ void KolfWindow::setupActions()
soundAction->setChecked(configGroup.readEntry("sound", true));
aboutAction = actionCollection()->addAction(QStringLiteral("aboutcourse"));
aboutAction->setText(i18n("&About Course"));
aboutAction->setText(i18n("&About Course..."));
connect(aboutAction, &QAction::triggered, this, &KolfWindow::emptySlot);
tutorialAction = actionCollection()->addAction(QStringLiteral("tutorial"));
tutorialAction->setText(i18n("&Tutorial"));
......
......@@ -35,7 +35,7 @@
NewGameDialog::NewGameDialog(bool enableCourses)
: KPageDialog()
{
setWindowTitle(i18n("New Game"));
setWindowTitle(i18nc("@title:window", "New Game"));
buttonBox()->setStandardButtons(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
setMinimumSize(640,310);
connect(buttonBox(), &QDialogButtonBox::accepted, this, &NewGameDialog::slotOk);
......@@ -90,8 +90,8 @@ NewGameDialog::NewGameDialog(bool enableCourses)
if (enableCourses)
{
coursePage = new QFrame();
pageItem = new KPageWidgetItem( coursePage, i18n("Choose Course to Play") );
pageItem->setHeader(i18n("Course"));
pageItem = new KPageWidgetItem( coursePage, i18n("Course") );
pageItem->setHeader(i18n("Choose Course to Play"));
addPage(pageItem);
QVBoxLayout *coursePageLayout = new QVBoxLayout(coursePage);
......@@ -181,8 +181,8 @@ NewGameDialog::NewGameDialog(bool enableCourses)
// options page
optionsPage = new QFrame();
pageItem = new KPageWidgetItem( optionsPage, i18n("Game Options") );
pageItem->setHeader(i18n("Options"));
pageItem = new KPageWidgetItem( optionsPage, i18n("Options") );
pageItem->setHeader(i18n("Game Options"));
addPage(pageItem);
QVBoxLayout *vlayout = new QVBoxLayout(optionsPage);
......
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