summaryrefslogtreecommitdiff
path: root/src/load-graph.cpp
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-18 16:29:12 +0100
committerinfirit <[email protected]>2014-12-18 16:29:12 +0100
commit61a40499507138fd1620475487c1b6772be3e37a (patch)
tree7fcc768a9ba4d90d24362aaeebd4a9d273570ee1 /src/load-graph.cpp
parent3d122e030b4b139ec563de4e0d16a2bceb0a9bf9 (diff)
downloadmate-system-monitor-61a40499507138fd1620475487c1b6772be3e37a.tar.bz2
mate-system-monitor-61a40499507138fd1620475487c1b6772be3e37a.tar.xz
Various small string fixes.
Mostly capitalisation fixes, but there are some spelling fixes, and three strings which have had markup removed. One string has been changed from using an ASCII ellipsis to a Unicode one. Taken from GSM commit: f727cae54fc8410ecb3c2c4c4f901b754f418a7a From: Philip Withnall <[email protected]> Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=616794
Diffstat (limited to 'src/load-graph.cpp')
-rw-r--r--src/load-graph.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/load-graph.cpp b/src/load-graph.cpp
index 186a36a..15c132e 100644
--- a/src/load-graph.cpp
+++ b/src/load-graph.cpp
@@ -140,7 +140,7 @@ static void draw_background(LoadGraph *graph) {
pango_cairo_show_layout (cr, layout);
} else {
// operation orders matters so it's 0 if i == num_bars
- caption = g_strdup_printf("%d %%", 100 - i * (100 / num_bars));
+ caption = g_strdup_printf("%d%%", 100 - i * (100 / num_bars));
pango_layout_set_text (layout, caption, -1);
pango_layout_get_extents (layout, NULL, &extents);
cairo_move_to (cr, graph->indent - 1.0 * extents.width / PANGO_SCALE + 20, y - 1.0 * extents.height / PANGO_SCALE / 2);
@@ -353,7 +353,7 @@ namespace
text = g_strdup(_("not available"));
} else {
// xgettext: 540MiB (53 %) of 1.0 GiB
- text = g_strdup_printf(_("%s (%.1f %%) of %s"), used_text, 100.0 * percent, total_text);
+ text = g_strdup_printf(_("%s (%.1f%%) of %s"), used_text, 100.0 * percent, total_text);
}
gtk_label_set_text(label, text);
g_free(used_text);