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

Capitalize, punctuation and @title:window helpers

parent 1e80bbe5
Pipeline #88709 failed with stage
in 38 seconds
......@@ -136,13 +136,13 @@ InvasionSlider::InvasionSlider(KGameWindow* game, GameLogic::Country * attack, G
//init. main layout
if (invasionType == Invasion)
{
setWindowTitle(i18n("Invasion"));
setWindowTitle(i18nc("@title:window", "Invasion"));
wSlideLayout->addWidget(new QLabel(i18n("You are invading <font color=\"blue\">%1</font> with <font color=\"red\">%2</font>!", defender->i18name(), attack->i18name())),0,0);
wSlideLayout->addWidget(new QLabel(i18n("<br><i>Choose the number of invading armies.</i>")),1,0);
}
else if (invasionType == Moving)
{
setWindowTitle(i18n("Moving"));
setWindowTitle(i18nc("@title:window", "Moving"));
wSlideLayout->addWidget(new QLabel(i18n("You are moving armies from <font color=\"red\">%1</font> to <font color=\"blue\">%2</font>!", attack->i18name(), defender->i18name())),0,0);
wSlideLayout->addWidget(new QLabel(i18n("<br><i>Choose the number of armies to move.</i>")),1,0);
}
......
......@@ -262,7 +262,7 @@
<bool>false</bool>
</property>
<property name="text">
<string>Load a Saved Game</string>
<string>Load a Saved Game...</string>
</property>
</widget>
</item>
......
......@@ -368,7 +368,7 @@ void KGameWindow::initActions()
actionCollection()->addAction(m_zoomOutAction->objectName(), m_zoomOutAction);
KStandardAction::preferences( this, SLOT(optionsConfigure()), actionCollection() );
/*
// specific ksirk action
QString imageFileName = QStandardPaths::locate(QStandardPaths::AppDataLocation, "jabber.png");
// qCDebug(KSIRK_LOG) << "Trying to load button image file: " << imageFileName;
......@@ -385,7 +385,7 @@ void KGameWindow::initActions()
connect(m_jabberAction,SIGNAL(triggered(bool)),this,SLOT(slotJabberGame()));
qCDebug(KSIRK_LOG) << "Adding action game_jabber";
actionCollection()->addAction("game_jabber", m_jabberAction);
*/
// specific ksirk action
imageFileName = QStandardPaths::locate(QStandardPaths::AppDataLocation, m_automaton->skin() + '/' + CM_NEWNETGAME);
// qCDebug(KSIRK_LOG) << "Trying to load button image file: " << imageFileName;
......@@ -1088,7 +1088,7 @@ bool KGameWindow::actionOpenGame()
{
qCDebug(KSIRK_LOG) << "KGameWindow::actionOpenGame";
QString fileName = QFileDialog::getOpenFileName(this, i18n("KsirK - Load Game"), QString(), "*.xml");
QString fileName = QFileDialog::getOpenFileName(this, i18nc("@title:window", "KsirK - Load Game"), QString(), "*.xml");
if (!fileName.isEmpty())
{
m_fileName = fileName;
......
......@@ -451,7 +451,7 @@ void KGameWindow::slotSaveGame()
}
if (m_fileName.isEmpty())
{
QString fileName = QFileDialog::getSaveFileName (this, i18n("KsirK - Save Game"), QString(), "*.xml");
QString fileName = QFileDialog::getSaveFileName (this, i18nc("@title:window", "KsirK - Save Game"), QString(), "*.xml");
if ( QFile::exists(fileName)
&& (KMessageBox::questionYesNo (this,
i18n("%1 exists.\nDo you really want to overwrite it?",fileName),
......
......@@ -122,7 +122,7 @@
<item>
<widget class="QPushButton" name="pbLoad" >
<property name="text" >
<string>Load</string>
<string>Load...</string>
</property>
</widget>
</item>
......
......@@ -48,7 +48,7 @@
</sizepolicy>
</property>
<property name="text">
<string>Sprites speed (slow, normal, rapid, immediate)</string>
<string>Sprites speed (slow, normal, rapid, immediate):</string>
</property>
<property name="wordWrap">
<bool>false</bool>
......
......@@ -43,7 +43,7 @@
<item>
<widget class="QLabel" name="label" >
<property name="text" >
<string>Width x Height</string>
<string>Width x height:</string>
</property>
</widget>
</item>
......@@ -181,7 +181,7 @@
<widget class="QLabel" name="label_7" >
<property name="text" >
<string>Edit the sprite definitions
in the right dock</string>
in the right dock.</string>
</property>
</widget>
</item>
......
......@@ -107,7 +107,7 @@ The pool flag element will be rendered on a pixmap of height: (Height * Number o
<item row="2" column="0" >
<widget class="QLabel" name="label_3" >
<property name="text" >
<string>Nb Frames:</string>
<string>Nb frames:</string>
</property>
</widget>
</item>
......@@ -124,7 +124,7 @@ The pool flag element will be rendered on a pixmap of height: (Height * Number o
<item row="3" column="0" >
<widget class="QLabel" name="label_4" >
<property name="text" >
<string>Nb Versions:</string>
<string>Nb versions:</string>
</property>
</widget>
</item>
......@@ -204,7 +204,7 @@ Each version shows the sprite visible from one direction: the first one is direc
<item row="2" column="0" >
<widget class="QLabel" name="label_8" >
<property name="text" >
<string>Nb Frames:</string>
<string>Nb frames:</string>
</property>
</widget>
</item>
......@@ -221,7 +221,7 @@ Each version shows the sprite visible from one direction: the first one is direc
<item row="3" column="0" >
<widget class="QLabel" name="label_7" >
<property name="text" >
<string>Nb Versions:</string>
<string>Nb versions:</string>
</property>
</widget>
</item>
......@@ -295,7 +295,7 @@ Each version shows the sprite visible from one direction: the first one is direc
<item row="2" column="0" >
<widget class="QLabel" name="label_11" >
<property name="text" >
<string>Nb Frames:</string>
<string>Nb frames:</string>
</property>
</widget>
</item>
......@@ -312,7 +312,7 @@ Each version shows the sprite visible from one direction: the first one is direc
<item row="3" column="0" >
<widget class="QLabel" name="label_12" >
<property name="text" >
<string>Nb Versions:</string>
<string>Nb versions:</string>
</property>
</widget>
</item>
......@@ -388,7 +388,7 @@ Each version shows the sprite visible from one direction: the first one is direc
<item row="2" column="0" >
<widget class="QLabel" name="label_15" >
<property name="text" >
<string>Nb Frames:</string>
<string>Nb frames:</string>
</property>
</widget>
</item>
......@@ -405,7 +405,7 @@ Each version shows the sprite visible from one direction: the first one is direc
<item row="3" column="0" >
<widget class="QLabel" name="label_16" >
<property name="text" >
<string>Nb Versions:</string>
<string>Nb versions:</string>
</property>
</widget>
</item>
......@@ -483,7 +483,7 @@ Each version shows the sprite visible from one direction: the first one is direc
<item row="2" column="0" >
<widget class="QLabel" name="label_19" >
<property name="text" >
<string>Nb Frames:</string>
<string>Nb frames:</string>
</property>
</widget>
</item>
......@@ -500,7 +500,7 @@ Each version shows the sprite visible from one direction: the first one is direc
<item row="3" column="0" >
<widget class="QLabel" name="label_20" >
<property name="text" >
<string>Nb Versions:</string>
<string>Nb versions:</string>
</property>
</widget>
</item>
......@@ -578,7 +578,7 @@ Each version shows the sprite visible from one direction: the first one is direc
<item row="2" column="0" >
<widget class="QLabel" name="label_23" >
<property name="text" >
<string>Nb Frames:</string>
<string>Nb frames:</string>
</property>
</widget>
</item>
......@@ -595,7 +595,7 @@ Each version shows the sprite visible from one direction: the first one is direc
<item row="3" column="0" >
<widget class="QLabel" name="label_24" >
<property name="text" >
<string>Nb Versions:</string>
<string>Nb versions:</string>
</property>
</widget>
</item>
......
......@@ -363,7 +363,7 @@ void MainWindow::slotOpenSkin(const QString& dir)
QString skinDir = dir;
if (dir.isNull())
{
skinDir = QFileDialog::getExistingDirectory(this, i18n("Choose the root folder of the skin to open"), QString());
skinDir = QFileDialog::getExistingDirectory(this, i18nc("@title:window", "Choose the root folder of the skin to open"), QString());
}
if (skinDir.isEmpty())
{
......
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