Code

- bindtextdomain for gettext, a few other smale cleanups here and there
[nagiosplug.git] / plugins / check_dns.c
index 58c0a1bf91e88c382e765e7607d52b6fe797f112..328fc5f40a58e60d60000fa3458d560078275b33 100644 (file)
@@ -82,6 +82,10 @@ main (int argc, char **argv)
        struct timeval tv;
        int multi_address;
 
+       setlocale (LC_ALL, "");
+       bindtextdomain (PACKAGE, LOCALEDIR);
+       textdomain (PACKAGE);
+
        /* Set signal handling and alarm */
        if (signal (SIGALRM, popen_timeout_alarm_handler) == SIG_ERR) {
                printf (_("Cannot catch SIGALRM"));
@@ -398,6 +402,7 @@ print_help (void)
 {
        print_revision (progname, revision);
 
+       printf (_("Copyright (c) 1999 Ethan Galstad <nagios@nagios.org>\n"));
        printf (_(COPYRIGHT), copyright, email);
 
        print_usage ();