diff options
Diffstat (limited to 'sys-utils/dmesg.c')
-rw-r--r-- | sys-utils/dmesg.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c index bfb488f96..a1026af63 100644 --- a/sys-utils/dmesg.c +++ b/sys-utils/dmesg.c @@ -6,12 +6,16 @@ * Modifications by Rick Sladkey (jrs@world.std.com) * Larger buffersize 3 June 1998 by Nicolai Langfeldt, based on a patch * by Peeter Joot. This was also suggested by John Hudson. + * 1999-02-22 Arkadiusz Mi¶kiewicz <misiek@misiek.eu.org> + * - added Native Language Support + * */ #include <linux/unistd.h> #include <stdio.h> #include <getopt.h> #include <stdlib.h> +#include "nls.h" #if __GNU_LIBRARY__ < 5 @@ -31,7 +35,7 @@ static char *progname; void usage() { - fprintf( stderr, "Usage: %s [-c] [-n level] [-s bufsize]\n", progname ); + fprintf( stderr, _("Usage: %s [-c] [-n level] [-s bufsize]\n"), progname ); } int main( int argc, char *argv[] ) @@ -45,6 +49,10 @@ int main( int argc, char *argv[] ) int lastc; int cmd = 3; + setlocale(LC_ALL, ""); + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); + progname = argv[0]; while ((c = getopt( argc, argv, "cn:s:" )) != EOF) { switch (c) { |