diff options
author | Simon Quigley <tsimonq2@ubuntu.com> | 2017-08-16 04:32:39 -0500 |
---|---|---|
committer | Simon Quigley <tsimonq2@ubuntu.com> | 2017-08-16 04:32:39 -0500 |
commit | 9a9db98089717990cd5e0eef529f6bb0819ebe46 (patch) | |
tree | a9afaabce984d5fe552fa8bf1a9405db9bdd2699 /hardinfo/hardinfo.c | |
parent | 69a2124e9a081518297951256eb5c8d72d93361f (diff) |
New upstream version 0.5.1+git20170815
Diffstat (limited to 'hardinfo/hardinfo.c')
-rw-r--r-- | hardinfo/hardinfo.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/hardinfo/hardinfo.c b/hardinfo/hardinfo.c index 3d7a9c6f..4401a551 100644 --- a/hardinfo/hardinfo.c +++ b/hardinfo/hardinfo.c @@ -33,7 +33,8 @@ int main(int argc, char **argv) { GSList *modules; - bindtextdomain("hardinfo", "/usr/share/locale"); + setlocale(LC_ALL, ""); + bindtextdomain("hardinfo", LOCALEDIR); textdomain("hardinfo"); DEBUG("HardInfo version " VERSION ". Debug version."); @@ -43,19 +44,19 @@ int main(int argc, char **argv) /* show version information and quit */ if (params.show_version) { - g_print("HardInfo version " VERSION "\n"); - g_print - (_("Copyright (C) 2003-2009 Leandro A. F. Pereira. See COPYING for details.\n\n")); + g_print("HardInfo version " VERSION "\n"); + g_print + (_(/*/ %d will be latest year of copyright*/ "Copyright (C) 2003-%d Leandro A. F. Pereira. See COPYING for details.\n\n"), HARDINFO_COPYRIGHT_LATEST_YEAR ); g_print(_("Compile-time options:\n" " Release version: %s (%s)\n" " BinReloc enabled: %s\n" " Data prefix: %s\n" " Library prefix: %s\n" - " Compiled on: %s %s (%s)\n"), + " Compiled for: %s\n"), RELEASE ? _("Yes") : "No (" VERSION ")", ARCH, ENABLE_BINRELOC ? _("Yes") : _("No"), - PREFIX, LIBPREFIX, PLATFORM, KERNEL, HOSTNAME); + PREFIX, LIBPREFIX, PLATFORM); DEBUG(" Debugging is enabled."); @@ -73,7 +74,7 @@ int main(int argc, char **argv) /* list all module names */ if (params.list_modules) { g_print(_("Modules:\n" - "%-20s%-15s%-12s\n"), _("File Name"), _("Name"), _("Version")); + "%-20s %-15s %-12s\n"), _("File Name"), _("Name"), _("Version")); for (modules = modules_load_all(); modules; modules = modules->next) { @@ -81,7 +82,7 @@ int main(int argc, char **argv) ModuleAbout *ma = module_get_about(module); gchar *name = g_path_get_basename(g_module_name(module->dll)); - g_print("%-20s%-15s%-12s\n", name, module->name, ma->version); + g_print("%-20s %-15s %-12s\n", name, module->name, ma->version); g_free(name); } @@ -111,13 +112,13 @@ int main(int argc, char **argv) /* initialize vendor database */ vendor_init(); - + /* initialize moreinfo */ moreinfo_init(); if (params.run_benchmark) { gchar *result; - + result = module_call_method_param("benchmark::runBenchmark", params.run_benchmark); if (!result) { g_error(_("Unknown benchmark ``%s'' or libbenchmark.so not loaded"), params.run_benchmark); |