aboutsummaryrefslogtreecommitdiff
path: root/modules/devices
diff options
context:
space:
mode:
Diffstat (limited to 'modules/devices')
-rw-r--r--modules/devices/dmi.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/devices/dmi.c b/modules/devices/dmi.c
index 31b0c43d..0f8af169 100644
--- a/modules/devices/dmi.c
+++ b/modules/devices/dmi.c
@@ -153,8 +153,11 @@ void __scan_dmi()
dmi_ok = dmi_get_info();
if (!dmi_ok) {
- dmi_info = g_strdup("[No DMI information]\n"
- "There was an error retrieving the information.=\n"
- "Please try running HardInfo as root.=\n");
+ dmi_info = g_strdup_printf("[%s]\n%s=\n",
+ _("DMI Unavailable"),
+ (getuid() == 0)
+ ? _("DMI is not avaliable. Perhaps this platform does not provide DMI.")
+ : _("DMI is not available; Perhaps try running HardInfo as root.") );
+
}
}