aboutsummaryrefslogtreecommitdiff
path: root/modules/devices/x86/processor.c
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2017-07-09 00:07:06 -0500
committerLeandro Pereira <leandro@hardinfo.org>2017-07-12 19:38:41 -0700
commita88f63b0d89be3da96a00856a77f40d7792bccb3 (patch)
tree24e91c99b4df2164c730eeb64e769b074e5d0b00 /modules/devices/x86/processor.c
parentcad408bf94b8698fa647bd8e961196eb4bde2d74 (diff)
x86,arm,ppc: more processor label strings translatable
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/devices/x86/processor.c')
-rw-r--r--modules/devices/x86/processor.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/modules/devices/x86/processor.c b/modules/devices/x86/processor.c
index a062e947..3e0a8026 100644
--- a/modules/devices/x86/processor.c
+++ b/modules/devices/x86/processor.c
@@ -794,17 +794,17 @@ gchar *processor_get_detailed_info(Processor * processor)
}
ret = g_strdup_printf("[%s]\n"
- "Name=%s\n"
- "Family, model, stepping=%d, %d, %d (%s)\n"
- "Vendor=%s\n"
- "[Configuration]\n"
- "Cache Size=%dkb\n"
+ "%s=%s\n"
+ "%s=%d, %d, %d (%s)\n" /* family, model, stepping (decoded name) */
+ "%s=%s\n" /* vendor */
+ "[%s]\n" /* configuration */
+ "%s=%d %s\n" /* cache size (from cpuinfo) */
"%s=%.2f %s\n" /* frequency */
"%s=%.2f\n" /* bogomips */
"%s=%s\n" /* byte order */
- "%s" /* topology */
- "%s" /* frequency scaling */
- "[Cache]\n"
+ "%s" /* topology */
+ "%s" /* frequency scaling */
+ "[%s]\n" /* cache */
"%s\n"
"[%s]\n" /* pm */
"%s"
@@ -813,13 +813,15 @@ gchar *processor_get_detailed_info(Processor * processor)
"[%s]\n" /* flags */
"%s",
_("Processor"),
- processor->model_name,
+ _("Model Name"), processor->model_name,
+ _("Family, model, stepping"),
processor->family,
processor->model,
processor->stepping,
processor->strmodel,
- vendor_get_name(processor->vendor_id),
- processor->cache_size,
+ _("Vendor"), vendor_get_name(processor->vendor_id),
+ _("Configuration"),
+ _("Cache Size"), processor->cache_size, _("kb"),
_("Frequency"), processor->cpu_mhz, _("MHz"),
_("BogoMips"), processor->bogomips,
_("Byte Order"),
@@ -830,7 +832,7 @@ gchar *processor_get_detailed_info(Processor * processor)
#endif
tmp_topology,
tmp_cpufreq,
- cache_info,
+ _("Cache"), cache_info,
_("Power Management"), tmp_pm,
_("Bug Workarounds"), tmp_bugs,
_("Capabilities"), tmp_flags );