Commit 4cda5375 authored by Piotr Wójcik's avatar Piotr Wójcik Committed by Friedrich W. H. Kossebau

Add translation, remove unused code

Differential Revision: https://phabricator.kde.org/D3157
parent de1ea4c5
......@@ -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>
......
......@@ -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()
{
......
......@@ -14,9 +14,6 @@
#include "RoutingRunnerPlugin.h"
namespace Ui {
class RoutinoConfigWidget;
}
namespace Marble
{
......
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