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

GUI l10n fixes

* Add @title:window helpers, capitalization and punctuation fixes
parent 00784cb9
......@@ -30,7 +30,7 @@ FleetDlg::FleetDlg( QWidget *parent,
{
setObjectName( QStringLiteral( "FleetDlg" ) );
setModal( true );
setWindowTitle( i18n("Fleet Overview") );
setWindowTitle(i18nc("@title:window", "Fleet Overview"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok);
QWidget *mainWidget = new QWidget(this);
QVBoxLayout *mainLayout = new QVBoxLayout;
......
......@@ -189,7 +189,7 @@
<item row="6" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>Kill Percentage:</string>
<string>Kill percentage:</string>
</property>
<property name="buddy">
<cstring>neutralPlanetsSB</cstring>
......@@ -206,7 +206,7 @@
<item row="5" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Owner</string>
<string>Owner:</string>
</property>
</widget>
</item>
......@@ -231,21 +231,21 @@
<item>
<widget class="QCheckBox" name="BlindMapCB">
<property name="text">
<string>Blind Map</string>
<string>Blind map</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="CumulativeProductionCB">
<property name="text">
<string>Cumulative Production</string>
<string>Cumulative production</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="ProductionAfterConquereCB">
<property name="text">
<string>Production After Capture</string>
<string>Production after capture</string>
</property>
<property name="checked">
<bool>true</bool>
......@@ -270,21 +270,21 @@
<item row="0" column="0" colspan="2">
<widget class="QCheckBox" name="NeutralsShowShipsCB">
<property name="text">
<string>Show Ships</string>
<string>Show ships</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QCheckBox" name="NeutralsShowStatsCB">
<property name="text">
<string>Show Stats</string>
<string>Show stats</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_7">
<property name="text">
<string>Production</string>
<string>Production:</string>
</property>
</widget>
</item>
......
......@@ -312,7 +312,7 @@ NewGameDlg::NewGameDlg( QWidget *parent, Game *game)
m_game(game)
{
m_neutral = m_game->neutral();
setWindowTitle(i18n("Start New Game"));
setWindowTitle(i18nc("@title:window", "Start New Game"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel);
QWidget *mainWidget = new QWidget(this);
QVBoxLayout *mainLayout = new QVBoxLayout;
......
......@@ -521,7 +521,7 @@ GameView::shutdownGame()
int choice = KMessageBox::warningContinueCancel
( this,
i18n("Do you wish to retire this game?"),
i18n("End Game"),
i18nc("@title:window", "End Game"),
KStandardGuiItem::ok() );
if( choice == KMessageBox::Cancel )
......@@ -549,7 +549,7 @@ GameView::gameOver()
m_messagesDock->hide();
m_standingsDock->hide();
ScoreDlg *scoreDlg = new ScoreDlg(this, i18n("Final Standings"), m_game->players());
ScoreDlg *scoreDlg = new ScoreDlg(this, i18nc("@title:window", "Final Standings"), m_game->players());
scoreDlg->exec();
scoreDlg->deleteLater();
......
......@@ -30,7 +30,7 @@
// KonquestMainWindow
MainWindow::MainWindow()
{
setWindowTitle( i18n("Galactic Conquest") );
setWindowTitle(i18nc("@title:window", "Galactic Conquest"));
setupActions();
setupGameView();
......@@ -71,13 +71,13 @@ MainWindow::setupActions()
//different state - QAction not :-(
m_measureAction = actionCollection()->addAction( QStringLiteral( "game_measure" ) );
m_measureAction->setIcon( QIcon::fromTheme( QStringLiteral( "go-jump" )) );
m_measureAction->setText( i18n("&Measure Distance") );
m_measureAction->setText( i18n("&Measure Distance...") );
m_measureAction->setEnabled(false);
// Show fleet overview
m_fleetAction = actionCollection()->addAction( QStringLiteral( "game_fleets" ) );
m_fleetAction->setIcon( QIcon::fromTheme( QStringLiteral( "fork" )) );
m_fleetAction->setText( i18n("&Fleet Overview") );
m_fleetAction->setText( i18n("&Fleet Overview...") );
m_fleetAction->setEnabled(false);
// Toolbar
......
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