[weather] Use capitalized strings for display of pressure tendency

parent f5a01e08
......@@ -16,6 +16,3 @@ wind direction|SW
wind direction|WSW
wind direction|VR
wind speed|Calm
pressure tendency|rising
pressure tendency|falling
pressure tendency|steady
......@@ -92,7 +92,11 @@ Item {
Util.valueToDisplayString(displayPressureUnit, pressure, reportPressureUnit, 2) : "";
var pressureTendency = (data && data["Pressure Tendency"]) || null;
model["pressureTendency"] = pressureTendency ? i18nc("pressure tendency", pressureTendency) : "";
model["pressureTendency"] =
pressureTendency === "rising" ? i18nc("pressure tendency", "Rising") :
pressureTendency === "falling" ? i18nc("pressure tendency", "Falling") :
pressureTendency === "steady" ? i18nc("pressure tendency", "Steady") :
/* else */ "";
var visibility = getNumberOrString("Visibility");
model["visibility"] = visibility !== null ?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment