Commit 3a13d47f authored by Harald Judt's avatar Harald Judt

Show wind speed unit in details tab.

parent 0e9fd926
......@@ -415,8 +415,10 @@ create_summary_tab(xfceweather_data *data)
APPEND_BTEXT(_("\nWind\n"));
wind = get_data(conditions, data->units, WIND_SPEED, FALSE);
rawvalue = get_data(conditions, data->units, WIND_BEAUFORT, FALSE);
value = g_strdup_printf(_("\t%s: %s (%s on the Beaufort scale)\n"),
_("Speed"), wind, rawvalue);
value = g_strdup_printf(_("\t%s: %s %s (%s on the Beaufort scale)\n"),
_("Speed"), wind,
get_unit(data->units, WIND_SPEED),
rawvalue);
g_free(rawvalue);
g_free(wind);
APPEND_TEXT_ITEM_REAL(value);
......
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