From d4b222efac41245c321158b89cc8dc4e1e33e307 Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Date: Wed, 15 Jul 2015 09:20:32 -0300 Subject: [PATCH] Minor Translation Related Fixes "Metric Pace" translatable Format for time columns in Navigator --- src/Pages.cpp | 2 +- src/RideCacheModel.cpp | 2 +- src/translations/gc_es.ts | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Pages.cpp b/src/Pages.cpp index 067ec54ba..7e7fdca46 100644 --- a/src/Pages.cpp +++ b/src/Pages.cpp @@ -4743,7 +4743,7 @@ CVPage::CVPage(PaceZonePage* zonePage) : zonePage(zonePage) cvEdit->setDisplayFormat("mm:ss"); per = new QLabel(this); - metric = new QCheckBox("Metric Pace"); + metric = new QCheckBox(tr("Metric Pace")); metric->setChecked(appsettings->value(this, zonePage->zones->paceSetting(), true).toBool()); per->setText(zonePage->zones->paceUnits(metric->isChecked())); if (!metric->isChecked()) metricChanged(); // default is metric diff --git a/src/RideCacheModel.cpp b/src/RideCacheModel.cpp index f517f6825..0d0cf231e 100644 --- a/src/RideCacheModel.cpp +++ b/src/RideCacheModel.cpp @@ -91,7 +91,7 @@ RideCacheModel::data(const QModelIndex &index, int role) const // bit of a kludge, but will return stuff with no decimal places // as a number, but not if unit is seconds or high precision which means // metrics with high precision don't sort this is crap XXX - if (m->units(true) != "km" && (m->units(true) == "seconds" || m->precision() > 0)) { + if (m->units(true) != "km" && (m->isTime() || m->precision() > 0)) { m->setValue(rideCache->rides().at(index.row())->metrics_[m->index()]); return m->toString(context->athlete->useMetricUnits); // string } else { diff --git a/src/translations/gc_es.ts b/src/translations/gc_es.ts index a64f32f04..ee5129c83 100644 --- a/src/translations/gc_es.ts +++ b/src/translations/gc_es.ts @@ -4296,6 +4296,11 @@ ddd, dd MMM yyyy Critical Velocity Velocidad Crítica + + + Metric Pace + Ritmo en unidades métricas +