aboutsummaryrefslogtreecommitdiff
path: root/modules/devices
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2017-07-12 03:42:03 -0500
committerLeandro Pereira <leandro@hardinfo.org>2017-07-12 19:38:41 -0700
commit269b52ec4e6dc933adfe5016ce68ba2c58bde4ea (patch)
treef255fbbb2812beb7699cbf06e5dc9349dd2186d5 /modules/devices
parent568a3775872df58afbbf2c6acaffe3ef2cdec961 (diff)
Add column for localized field descriptions to Devices->Memory
To get around the earlier problems with localized labels in the memory view, add a column "Description" that uses the localized labels. Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/devices')
-rw-r--r--modules/devices/devmemory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/devices/devmemory.c b/modules/devices/devmemory.c
index a3211895..080e2bbe 100644
--- a/modules/devices/devmemory.c
+++ b/modules/devices/devmemory.c
@@ -65,12 +65,12 @@ void scan_memory_do(void)
if (tmp)
tmp_label = _(tmp);
else
- tmp_label = newkeys[0];
+ tmp_label = ""; /* or newkeys[0] */
/* although it doesn't matter... */
moreinfo_add_with_prefix("DEV", newkeys[0], g_strdup(newkeys[1]));
- tmp = g_strconcat(meminfo, newkeys[0], "=", newkeys[1], "\n", NULL);
+ tmp = g_strconcat(meminfo, newkeys[0], "=", newkeys[1], "|", tmp_label, "\n", NULL);
g_free(meminfo);
meminfo = tmp;