From c8b2decf176f36b8098c60853b5c187d91f08091 Mon Sep 17 00:00:00 2001 From: Harald Judt Date: Sat, 26 Jan 2013 07:47:40 +0100 Subject: [PATCH] Summary: Right-align clouds percentages in forecast cell tooltips. --- panel-plugin/weather-summary.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/panel-plugin/weather-summary.c b/panel-plugin/weather-summary.c index 775186c6..564fca69 100644 --- a/panel-plugin/weather-summary.c +++ b/panel-plugin/weather-summary.c @@ -631,20 +631,23 @@ forecast_cell_get_tooltip_text(plugin_data *data, PRECIPITATIONS); g_string_append(text, _("Clouds\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(_("" - "Fog: %s%s%s" + "Fog: %5s%s%s" "\n"), FOG); APPEND_TOOLTIP_ITEM(_("" - "Low clouds: %s%s%s" + "Low clouds: %5s%s%s" "\n"), CLOUDS_LOW); APPEND_TOOLTIP_ITEM(_("" - "Middle clouds: %s%s%s" + "Middle clouds: %5s%s%s" "\n"), CLOUDS_MID); APPEND_TOOLTIP_ITEM(_("" - "High clouds: %s%s%s" + "High clouds: %5s%s%s" "\n"), CLOUDS_HIGH); APPEND_TOOLTIP_ITEM(_("" - "Cloudiness: %s%s%s" + "Cloudiness: %5s%s%s" ""), CLOUDINESS); /* Free GString only and return its character data */ -- GitLab