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

Add translation, remove unused code

Differential Revision:
parent de1ea4c5
......@@ -21,24 +21,7 @@
<item row="0" column="1">
<widget class="QComboBox" name="transport"/>
<item row="1" column="0">
<widget class="QLabel" name="label_2">
<property name="enabled">
<property name="text">
<item row="1" column="1">
<widget class="QComboBox" name="profile">
<property name="enabled">
<item row="2" column="0" colspan="2">
<item row="1" column="0" colspan="2">
<widget class="QGroupBox" name="groupBox">
<property name="title">
......@@ -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
Supports Markdown
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