summaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-19 01:17:13 +0100
committerinfirit <[email protected]>2014-12-19 01:17:13 +0100
commitfdd68b3d1577af90bd37d990ac09ba8b5ee2f70d (patch)
treed4136b6e420065db667280b4868fb93b32d8a1b7 /src/util.cpp
parent0dc96be11c125a73113985c37b6d91824578c43c (diff)
downloadmate-system-monitor-fdd68b3d1577af90bd37d990ac09ba8b5ee2f70d.tar.bz2
mate-system-monitor-fdd68b3d1577af90bd37d990ac09ba8b5ee2f70d.tar.xz
Remove markup from translated strings
Including the markup in the translated strings makes the translators job unnecessarily harder. Taken from GSM commit: c45ed812a74874ada38feaf4883de807d2a26cfb From: Matthias Clasen <[email protected]> Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=681271
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/util.cpp b/src/util.cpp
index cdb3287..3573f00 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -416,8 +416,11 @@ namespace procman
g_value_unset(&value);
- if (size == 0)
- g_object_set(renderer, "markup", _("<i>N/A</i>"), NULL);
+ if (size == 0) {
+ char *str = g_strdup_printf ("<i>%s</i>", _("N/A"));
+ g_object_set(renderer, "markup", str, NULL);
+ g_free(str);
+ }
else {
char *str = procman::format_size(size);
g_object_set(renderer, "text", str, NULL);