Commit c8b2decf authored by Harald Judt's avatar Harald Judt

Summary: Right-align clouds percentages in forecast cell tooltips.

parent 5325e179
...@@ -631,20 +631,23 @@ forecast_cell_get_tooltip_text(plugin_data *data, ...@@ -631,20 +631,23 @@ forecast_cell_get_tooltip_text(plugin_data *data,
PRECIPITATIONS); PRECIPITATIONS);
g_string_append(text, _("<b>Clouds</b>\n")); g_string_append(text, _("<b>Clouds</b>\n"));
/* TRANSLATORS: Clouds percentages are aligned to the right in the
tooltip, the %5s are needed for that and are used both for
rounded and unrounded values. */
APPEND_TOOLTIP_ITEM(_("<tt><small>" APPEND_TOOLTIP_ITEM(_("<tt><small>"
"Fog: %s%s%s" "Fog: %5s%s%s"
"</small></tt>\n"), FOG); "</small></tt>\n"), FOG);
APPEND_TOOLTIP_ITEM(_("<tt><small>" APPEND_TOOLTIP_ITEM(_("<tt><small>"
"Low clouds: %s%s%s" "Low clouds: %5s%s%s"
"</small></tt>\n"), CLOUDS_LOW); "</small></tt>\n"), CLOUDS_LOW);
APPEND_TOOLTIP_ITEM(_("<tt><small>" APPEND_TOOLTIP_ITEM(_("<tt><small>"
"Middle clouds: %s%s%s" "Middle clouds: %5s%s%s"
"</small></tt>\n"), CLOUDS_MID); "</small></tt>\n"), CLOUDS_MID);
APPEND_TOOLTIP_ITEM(_("<tt><small>" APPEND_TOOLTIP_ITEM(_("<tt><small>"
"High clouds: %s%s%s" "High clouds: %5s%s%s"
"</small></tt>\n"), CLOUDS_HIGH); "</small></tt>\n"), CLOUDS_HIGH);
APPEND_TOOLTIP_ITEM(_("<tt><small>" APPEND_TOOLTIP_ITEM(_("<tt><small>"
"Cloudiness: %s%s%s" "Cloudiness: %5s%s%s"
"</small></tt>"), CLOUDINESS); "</small></tt>"), CLOUDINESS);
/* Free GString only and return its character data */ /* Free GString only and return its character data */
......
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