Code

- bindtextdomain for gettext, a few other smale cleanups here and there
[nagiosplug.git] / plugins / check_nwstat.c
index 92a1f117617c3cd7f0ae0c7e3d63eef30ba4f6c8..4ceb58fcc8770372be3264ec1147f78c29cdea5e 100644 (file)
@@ -117,6 +117,10 @@ main(int argc, char **argv) {
        unsigned long sap_entries=0;
        char uptime[MAX_INPUT_BUFFER];
 
+       setlocale (LC_ALL, "");
+       bindtextdomain (PACKAGE, LOCALEDIR);
+       textdomain (PACKAGE);
+
        if (process_arguments(argc,argv)==ERROR)
                usage(_("Could not parse arguments\n"));