summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Wójcik <chocimier@tlen.pl>2016-11-01 16:51:36 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-11-05 16:49:31 (GMT)
commit4cda537568057361eb55e164419f6973348bd1d3 (patch)
tree17d1b0f07dc748d8b9c487199a4c1474dd81a7c6
parentde1ea4c57fad4bbe06e895cff9c74e2ea6cb97f4 (diff)
Add translation, remove unused code
Differential Revision: https://phabricator.kde.org/D3157
-rw-r--r--src/plugins/runner/routino/RoutinoConfigWidget.ui19
-rw-r--r--src/plugins/runner/routino/RoutinoPlugin.cpp15
-rw-r--r--src/plugins/runner/routino/RoutinoPlugin.h3
3 files changed, 11 insertions, 26 deletions
diff --git a/src/plugins/runner/routino/RoutinoConfigWidget.ui b/src/plugins/runner/routino/RoutinoConfigWidget.ui
index 7693786..a8ca754 100644
--- a/src/plugins/runner/routino/RoutinoConfigWidget.ui
+++ b/src/plugins/runner/routino/RoutinoConfigWidget.ui
@@ -21,24 +21,7 @@
<item row="0" column="1">
<widget class="QComboBox" name="transport"/>
</item>
- <item row="1" column="0">
- <widget class="QLabel" name="label_2">
- <property name="enabled">
- <bool>false</bool>
- </property>
- <property name="text">
- <string>Profile:</string>
- </property>
- </widget>
- </item>
- <item row="1" column="1">
- <widget class="QComboBox" name="profile">
- <property name="enabled">
- <bool>false</bool>
- </property>
- </widget>
- </item>
- <item row="2" column="0" colspan="2">
+ <item row="1" column="0" colspan="2">
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Method</string>
diff --git a/src/plugins/runner/routino/RoutinoPlugin.cpp b/src/plugins/runner/routino/RoutinoPlugin.cpp
index 529069c..5380f91 100644
--- a/src/plugins/runner/routino/RoutinoPlugin.cpp
+++ b/src/plugins/runner/routino/RoutinoPlugin.cpp
@@ -75,11 +75,16 @@ public:
ui_configWidget->setupUi( this );
QStringList transports;
//TODO: read from profiles.xml
- //TODO: translate
- transports << "foot" << "horse" << "wheelchair" << "bicycle" << "moped" << "motorbike" << "motorcar" << "goods" << "hgv" << "psv";
- foreach ( const QString &transport, transports) {
- ui_configWidget->transport->addItem(transport, transport);
- }
+ ui_configWidget->transport->addItem(tr("Foot"), "foot");
+ ui_configWidget->transport->addItem(tr("Horse"), "horse");
+ ui_configWidget->transport->addItem(tr("Wheelchair"), "wheelchair");
+ ui_configWidget->transport->addItem(tr("Bicycle"), "bicycle");
+ ui_configWidget->transport->addItem(tr("Moped"), "moped");
+ ui_configWidget->transport->addItem(tr("Motorbike"), "motorbike");
+ ui_configWidget->transport->addItem(tr("Motorcar"), "motorcar");
+ ui_configWidget->transport->addItem(tr("Small lorry"), "goods");
+ ui_configWidget->transport->addItem(tr("Large lorry"), "hgv");
+ ui_configWidget->transport->addItem(tr("Public Service Vehicle"), "psv");
}
virtual ~RoutinoConfigWidget()
{
diff --git a/src/plugins/runner/routino/RoutinoPlugin.h b/src/plugins/runner/routino/RoutinoPlugin.h
index 7f81321..3d0c342 100644
--- a/src/plugins/runner/routino/RoutinoPlugin.h
+++ b/src/plugins/runner/routino/RoutinoPlugin.h
@@ -14,9 +14,6 @@
#include "RoutingRunnerPlugin.h"
-namespace Ui {
- class RoutinoConfigWidget;
-}
namespace Marble
{