[Xfce4-commits] <xfce4-weather-plugin:master> Summary: Right-align clouds percentages in forecast cell tooltips.
Harald Judt
noreply at xfce.org
Sat Jan 26 12:20:01 CET 2013
Updating branch refs/heads/master
to c8b2decf176f36b8098c60853b5c187d91f08091 (commit)
from 5325e179a10517713a86fb579eaa8eee56fa3b8b (commit)
commit c8b2decf176f36b8098c60853b5c187d91f08091
Author: Harald Judt <h.judt at gmx.at>
Date: Sat Jan 26 07:47:40 2013 +0100
Summary: Right-align clouds percentages in forecast cell tooltips.
panel-plugin/weather-summary.c | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/panel-plugin/weather-summary.c b/panel-plugin/weather-summary.c
index 775186c..564fca6 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, _("<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>"
- "Fog: %s%s%s"
+ "Fog: %5s%s%s"
"</small></tt>\n"), FOG);
APPEND_TOOLTIP_ITEM(_("<tt><small>"
- "Low clouds: %s%s%s"
+ "Low clouds: %5s%s%s"
"</small></tt>\n"), CLOUDS_LOW);
APPEND_TOOLTIP_ITEM(_("<tt><small>"
- "Middle clouds: %s%s%s"
+ "Middle clouds: %5s%s%s"
"</small></tt>\n"), CLOUDS_MID);
APPEND_TOOLTIP_ITEM(_("<tt><small>"
- "High clouds: %s%s%s"
+ "High clouds: %5s%s%s"
"</small></tt>\n"), CLOUDS_HIGH);
APPEND_TOOLTIP_ITEM(_("<tt><small>"
- "Cloudiness: %s%s%s"
+ "Cloudiness: %5s%s%s"
"</small></tt>"), CLOUDINESS);
/* Free GString only and return its character data */
More information about the Xfce4-commits
mailing list