diff options
author | Burt P <pburt0@gmail.com> | 2017-07-31 21:56:17 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2017-07-31 20:03:17 -0700 |
commit | 4e05ca524fd75bccbb87d790f10118c650320cda (patch) | |
tree | f20f8bbe92da512c7bef0a27d9c196603116aab8 /hardinfo/hardinfo.c | |
parent | 2a941e0913db40c8abc10ae2c088477d250b126c (diff) |
Call setlocale() to clear the default "C" locale for CLI
Fixes strings not being translated in the CLI.
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'hardinfo/hardinfo.c')
-rw-r--r-- | hardinfo/hardinfo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hardinfo/hardinfo.c b/hardinfo/hardinfo.c index 72abfde6..8c19150c 100644 --- a/hardinfo/hardinfo.c +++ b/hardinfo/hardinfo.c @@ -33,6 +33,7 @@ int main(int argc, char **argv) { GSList *modules; + setlocale(LC_ALL, ""); bindtextdomain("hardinfo", LOCALEDIR); textdomain("hardinfo"); |