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>
This commit is contained in:
@ -530,7 +530,9 @@ static void fancy_spew(void){
|
||||
/***** no comment */
|
||||
int main(int argc, char *argv[]){
|
||||
#if (__GNU_LIBRARY__ >= 6)
|
||||
setlocale (LC_CTYPE, "");
|
||||
setlocale (LC_ALL, "");
|
||||
bindtextdomain(PACKAGE, LOCALEDIR);
|
||||
textdomain(PACKAGE);
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
|
Reference in New Issue
Block a user