[games/ksnakeduel] /: Put the KSNake mode again, documenting it better
Antoni Bella Pérez
null at kde.org
Wed Aug 18 10:30:07 BST 2021
Git commit 644bfd87cd8e2932c7e9f1cdf084d65796bdd955 by Antoni Bella Pérez.
Committed on 18/08/2021 at 09:23.
Pushed by yurchor into branch 'master'.
Put the KSNake mode again, documenting it better
* This solve my previous mistake
M +3 -3 doc/index.docbook
M +2 -2 src/general.ui
M +4 -4 src/ktron.cpp
https://invent.kde.org/games/ksnakeduel/commit/644bfd87cd8e2932c7e9f1cdf084d65796bdd955
diff --git a/doc/index.docbook b/doc/index.docbook
index 21beadb..36bb1dc 100644
--- a/doc/index.docbook
+++ b/doc/index.docbook
@@ -185,7 +185,7 @@ menu item.
</chapter>
<chapter id="playing-snake">
-<title>Playing &ksnakeduel;</title>
+<title>Playing KSnake mode</title>
<sect1 id="playing-snake-rules">
<title>Rules</title>
@@ -218,7 +218,7 @@ the status bar.
</para>
<para>
-When you are moving through the map there will appear obstacles. Hitting them
+When you are moving through the map there will also appear obstacles. Hitting them
will also result in a crash. However, every time an obstacle appears and you
survive you'll be rewarded 2 points
</para>
@@ -494,7 +494,7 @@ which lets you tweak &ksnakeduel;'s behavior.</para>
</varlistentry>
<varlistentry>
- <term><guimenuitem>&ksnakeduel;: Single player</guimenuitem></term>
+ <term><guimenuitem>KSnake mode: Single player</guimenuitem></term>
<listitem><para>A single player &ksnakeduel; game.</para></listitem>
</varlistentry>
</variablelist>
diff --git a/src/general.ui b/src/general.ui
index 4ee29ac..3e194e2 100644
--- a/src/general.ui
+++ b/src/general.ui
@@ -49,7 +49,7 @@
</item>
<item>
<property name="text">
- <string>KSnakeDuel: Single player</string>
+ <string>KSnake mode: 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 / KSnakeDuel:</string>
+ <string>Right player / KSnake mode:</string>
</property>
<property name="wordWrap">
<bool>false</bool>
diff --git a/src/ktron.cpp b/src/ktron.cpp
index 2c6399f..ef21352 100644
--- a/src/ktron.cpp
+++ b/src/ktron.cpp
@@ -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 / KSnakeDuel: Up"));
+ m_player0Up->setText(i18n("Right Player / KSnake mode: 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 / KSnakeDuel: Down"));
+ m_player0Down->setText(i18n("Right Player / KSnake mode: 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 / KSnakeDuel: Right"));
+ m_player0Right->setText(i18n("Right Player / KSnake mode: 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 / KSnakeDuel: Left"));
+ m_player0Left->setText(i18n("Right Player / KSnake mode: Left"));
actionCollection()->setDefaultShortcut(m_player0Left,Qt::Key_Left);
connect(m_player0Left, &QAction::triggered, this, &KTron::triggerKey0Left);
addAction(m_player0Left);
More information about the kde-doc-english
mailing list