Measure: Translate measurement types

This commit is contained in:
Chris Hennes
2025-11-17 14:39:49 -06:00
committed by Yorik van Havre
parent 2388b2841b
commit 7304a7350f
3 changed files with 12 additions and 10 deletions

View File

@@ -131,10 +131,10 @@ TaskMeasure::TaskMeasure()
// Create mode dropdown and add all registered measuretypes
modeSwitch = new QComboBox();
modeSwitch->addItem(QStringLiteral("Auto"));
modeSwitch->addItem(tr("Auto"));
for (App::MeasureType* mType : App::MeasureManager::getMeasureTypes()) {
modeSwitch->addItem(QString::fromLatin1(mType->label.c_str()));
modeSwitch->addItem(tr(mType->label.c_str()));
}
// Connect dropdown's change signal to our onModeChange slot