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:
7
tload.c
7
tload.c
@@ -96,7 +96,12 @@ int main(int argc, char **argv)
|
||||
{NULL, 0, NULL, 0}
|
||||
};
|
||||
|
||||
while ((opt = getopt_long(argc, argv, "s:d:Vh", longopts, NULL)) != -1)
|
||||
setlocale (LC_ALL, "");
|
||||
bindtextdomain(PACKAGE, LOCALEDIR);
|
||||
textdomain(PACKAGE);
|
||||
|
||||
while ((opt =
|
||||
getopt_long(argc, argv, "s:d:Vh", longopts, NULL)) != -1)
|
||||
switch (opt) {
|
||||
case 's':
|
||||
scale_arg = optarg;
|
||||
|
Reference in New Issue
Block a user