From d29f25c391ec554656be2d9e440a1d7f8aa7e8a4 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 31 Oct 2020 17:00:03 +0000 Subject: [PATCH] Launcher: missed translations MichaelD spotted --- src/GUI/UnitsModel.cxx | 2 +- src/GUI/qml/FlightPlan.qml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/GUI/UnitsModel.cxx b/src/GUI/UnitsModel.cxx index 6e433e528..0861c14b3 100644 --- a/src/GUI/UnitsModel.cxx +++ b/src/GUI/UnitsModel.cxx @@ -86,7 +86,7 @@ std::vector static_unitData = { { QT_TRANSLATE_NOOP("UnitsModel", "Km"), QT_TRANSLATE_NOOP("UnitsModel", "Kilometers"), "00000", false, 0, 999999, 1.0, false /* no wrap */, 1 /* decimal places */}, { QT_TRANSLATE_NOOP("UnitsModel", "MHz"), QT_TRANSLATE_NOOP("UnitsModel", "MHz"), "00000", false, 105, 140, 0.025, false /* no wrap */, 3 /* decimal places */}, - { QT_TRANSLATE_NOOP("UnitsModel", "KHz"), QT_TRANSLATE_NOOP("UnitsModel", "KHz"), "00000", false, 200, 400, 1.0, false /* no wrap */, 0 /* decimal places */} + { QT_TRANSLATE_NOOP("UnitsModel", "kHz"), QT_TRANSLATE_NOOP("UnitsModel", "kHz"), "00000", false, 200, 400, 1.0, false /* no wrap */, 0 /* decimal places */} }; diff --git a/src/GUI/qml/FlightPlan.qml b/src/GUI/qml/FlightPlan.qml index df1fe115c..13d287318 100644 --- a/src/GUI/qml/FlightPlan.qml +++ b/src/GUI/qml/FlightPlan.qml @@ -138,7 +138,7 @@ Item { PopupChoice { id: flightRules label: qsTr("Flight rules:") - model: ["VFR", "IFR"] // initially IFR (Y), initially VFR (Z) + model: [qsTr("VFR"), qsTr("IFR")] // initially IFR (Y), initially VFR (Z) Component.onCompleted: { select(_launcher.flightPlan.flightRules); @@ -379,6 +379,8 @@ Item { TimeEdit { id: enrouteEstimate + isDuration: true + label: qsTr("Estimated enroute time:") Component.onCompleted: {