Code

- bindtextdomain for gettext, a few other smale cleanups here and there
[nagiosplug.git] / plugins / check_mysql.c
index a7afa52f12101809fc738463e936c258e03e211f..d62bfc8777c068b43e2f23278a3ae386ce91547e 100644 (file)
@@ -43,6 +43,10 @@ main (int argc, char **argv)
        MYSQL mysql;
        char *result = NULL;
 
+       setlocale (LC_ALL, "");
+       bindtextdomain (PACKAGE, LOCALEDIR);
+       textdomain (PACKAGE);
+
        if (process_arguments (argc, argv) != OK)
                usage (_("Invalid command arguments supplied\n"));