summaryrefslogtreecommitdiff
path: root/skill.c
diff options
context:
space:
mode:
authorSami Kerola <kerolasa@iki.fi>2011-12-07 13:27:21 +0100
committerSami Kerola <kerolasa@iki.fi>2011-12-20 17:30:53 +0100
commitc862a4caa51dcaba34ebb7bcf0b74ad0ad9c3c74 (patch)
treee807802669368300ec8bc925c06b7dd7105f2260 /skill.c
parentb40353c91e0a895a442ba43f04909036a3b13ce7 (diff)
downloadprocps-ng-c862a4caa51dcaba34ebb7bcf0b74ad0ad9c3c74.tar.gz
nls: add functions which take translations to be used
Add the following three functions to most of the commands. setlocale (LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); Reference: http://www.freelists.org/post/procps/backporting,1 Reported-by: Jim Warner <james.warner@comcast.net> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'skill.c')
-rw-r--r--skill.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/skill.c b/skill.c
index 2d79827..22e9617 100644
--- a/skill.c
+++ b/skill.c
@@ -363,6 +363,10 @@ static void __attribute__ ((__noreturn__))
{NULL, 0, NULL, 0}
};
+ setlocale (LC_ALL, "");
+ bindtextdomain(PACKAGE, LOCALEDIR);
+ textdomain(PACKAGE);
+
if (argc < 2)
kill_usage(stderr);