Skip to content
Permalink
Browse files

Enable translation of "Peak X" interval names from Find Intervals

  • Loading branch information...
amtriathlon committed Aug 13, 2019
1 parent fc20b9c commit 4b8f9cc8f07b632787b6cd35009efb6c536d6558
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/Gui/AddIntervalDialog.cpp
@@ -532,16 +532,16 @@ AddIntervalDialog::createClicked()
}

if (methodPeakPower->isChecked()) {
findPeaks(context, byTime, ride, Specification(), RideFile::watts, RideFile::original, (byTime?windowSizeSecs:windowSizeMeters), maxIntervals, results, "Peak Power","");
findPeaks(context, byTime, ride, Specification(), RideFile::watts, RideFile::original, (byTime?windowSizeSecs:windowSizeMeters), maxIntervals, results, tr("Peak Power"),"");
}
else if (methodPeakSpeed->isChecked()) {
findPeaks(context, byTime, ride, Specification(), RideFile::kph, RideFile::original, (byTime?windowSizeSecs:windowSizeMeters), maxIntervals, results, "Peak Speed","");
findPeaks(context, byTime, ride, Specification(), RideFile::kph, RideFile::original, (byTime?windowSizeSecs:windowSizeMeters), maxIntervals, results, tr("Peak Speed"),"");
}
else if (methodPeakPace->isChecked()) {
findPeaks(context, byTime, ride, Specification(), RideFile::kph, RideFile::pace, (byTime?windowSizeSecs:windowSizeMeters), maxIntervals, results, "Peak Pace", "");
findPeaks(context, byTime, ride, Specification(), RideFile::kph, RideFile::pace, (byTime?windowSizeSecs:windowSizeMeters), maxIntervals, results, tr("Peak Pace"), "");
}
else if (methodHeartRate->isChecked()) {
findPeaks(context, byTime, ride, Specification(), RideFile::hr, RideFile::original, (byTime?windowSizeSecs:windowSizeMeters), maxIntervals, results, "Peak HR", "");
findPeaks(context, byTime, ride, Specification(), RideFile::hr, RideFile::original, (byTime?windowSizeSecs:windowSizeMeters), maxIntervals, results, tr("Peak HR"), "");
}
}

0 comments on commit 4b8f9cc

Please sign in to comment.
You can’t perform that action at this time.