mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Enable translation on LeftRight metric
This commit is contained in:
@@ -19,17 +19,20 @@
|
||||
#include "RideMetric.h"
|
||||
#include "Zones.h"
|
||||
#include <math.h>
|
||||
|
||||
#define tr(s) QObject::tr(s)
|
||||
#include <QApplication>
|
||||
|
||||
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("%"));
|
||||
|
||||
Reference in New Issue
Block a user