Code

- bindtextdomain for gettext, a few other smale cleanups here and there
[nagiosplug.git] / plugins / check_procs.c
index 5313b977e0e0760759775aac59b916ad6e318c8d..8a3f7ac2f543522ab399d6f9e286b4ac75d3f988 100644 (file)
@@ -103,6 +103,10 @@ main (int argc, char **argv)
 
        int result = STATE_UNKNOWN;
 
+       setlocale (LC_ALL, "");
+       bindtextdomain (PACKAGE, LOCALEDIR);
+       textdomain (PACKAGE);
+
        asprintf (&metric_name, "PROCS");
        metric = METRIC_PROCS;