From eff1cdde3298ca4201934b003351d50be4f18da5 Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Date: Tue, 4 Dec 2012 16:51:04 -0300 Subject: [PATCH] Enable translation on LeftRight metric --- src/LeftRightBalance.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/LeftRightBalance.cpp b/src/LeftRightBalance.cpp index 37d5936dd..540853e06 100644 --- a/src/LeftRightBalance.cpp +++ b/src/LeftRightBalance.cpp @@ -19,17 +19,20 @@ #include "RideMetric.h" #include "Zones.h" #include - -#define tr(s) QObject::tr(s) +#include class LeftRightBalance : public RideMetric { - double count, total; + Q_DECLARE_TR_FUNCTIONS(LeftRightBalance) + double count, total; public: LeftRightBalance() { setSymbol("left_right_balance"); + setInternalName("Left/Right Balance"); + } + void initialize() { setName(tr("Left/Right Balance")); setMetricUnits(tr("%")); setImperialUnits(tr("%"));