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

GUI l10n fixes

* Change all KSnake to KSnakeDuel
* Capitalization and punctuation fixes
parent 5e44a0c7
......@@ -49,7 +49,7 @@
</item>
<item>
<property name="text">
<string>KSnake: Single player</string>
<string>KSnakeDuel: Single player</string>
</property>
</item>
</widget>
......@@ -98,7 +98,7 @@
<item row="0" column="0">
<widget class="QLabel" name="namePlayer1Label">
<property name="text">
<string>Right player / KSnake:</string>
<string>Right player / KSnakeDuel:</string>
</property>
<property name="wordWrap">
<bool>false</bool>
......@@ -127,7 +127,7 @@
<item row="0" column="0">
<widget class="QLabel" name="roundsLabel">
<property name="text">
<string>Rounds to win</string>
<string>Rounds to win:</string>
</property>
<property name="wordWrap">
<bool>false</bool>
......
......@@ -63,25 +63,25 @@ KTron::KTron(QWidget *parent) : KXmlGuiWindow(parent, Qt::WindowFlags()) {
// We must disable the actions, otherwise we don't get the keyPressEvent's
m_player0Up = actionCollection()->addAction( QStringLiteral( "Pl1Up" ));
m_player0Up->setText(i18n("Right Player / KSnake: Up"));
m_player0Up->setText(i18n("Right Player / KSnakeDuel: Up"));
actionCollection()->setDefaultShortcut(m_player0Up,Qt::Key_Up);
connect(m_player0Up, &QAction::triggered, this, &KTron::triggerKey0Up);
addAction(m_player0Up);
m_player0Down = actionCollection()->addAction( QStringLiteral( "Pl1Down" ));
m_player0Down->setText(i18n("Right Player / KSnake: Down"));
m_player0Down->setText(i18n("Right Player / KSnakeDuel: Down"));
actionCollection()->setDefaultShortcut(m_player0Down,Qt::Key_Down);
connect(m_player0Down, &QAction::triggered, this, &KTron::triggerKey0Down);
addAction(m_player0Down);
m_player0Right = actionCollection()->addAction( QStringLiteral( "Pl1Right" ));
m_player0Right->setText(i18n("Right Player / KSnake: Right"));
m_player0Right->setText(i18n("Right Player / KSnakeDuel: Right"));
actionCollection()->setDefaultShortcut(m_player0Right,Qt::Key_Right);
connect(m_player0Right, &QAction::triggered, this, &KTron::triggerKey0Right);
addAction(m_player0Right);
m_player0Left = actionCollection()->addAction( QStringLiteral( "Pl1Left" ));
m_player0Left->setText(i18n("Right Player / KSnake: Left"));
m_player0Left->setText(i18n("Right Player / KSnakeDuel: Left"));
actionCollection()->setDefaultShortcut(m_player0Left,Qt::Key_Left);
connect(m_player0Left, &QAction::triggered, this, &KTron::triggerKey0Left);
addAction(m_player0Left);
......@@ -252,8 +252,8 @@ void KTron::showSettings(){
m_generalConfigDialog->namePlayer2Label->setText(i18n("Opponent:"));
}
else {
m_generalConfigDialog->namePlayer1Label->setText(i18n("Right Player:"));
m_generalConfigDialog->namePlayer2Label->setText(i18n("Left Player:"));
m_generalConfigDialog->namePlayer1Label->setText(i18n("Right player:"));
m_generalConfigDialog->namePlayer2Label->setText(i18n("Left player:"));
}
KConfigDialog *dialog = new KConfigDialog(this, QStringLiteral( "settings" ), Settings::self());
......
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