From 7eda085c41faa3445b4b168ce78ab18dab87d98a Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 7 Dec 2006 00:25:39 +0100 Subject: Imported from util-linux-2.9v tarball. --- sys-utils/dmesg.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'sys-utils/dmesg.c') 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 + * - added Native Language Support + * */ #include #include #include #include +#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) { -- cgit v1.2.3-55-g7522