Code

Adding missing function calls needed for i18n (only for plugins already in POTFILES.in)
[nagiosplug.git] / plugins / check_ntp_time.c
index 60e2b5a0eab03523363f8d5c758519fa3b19c9cc..f414c328891662fc43cd9f27e1a9e5740155f29d 100644 (file)
@@ -534,6 +534,10 @@ int main(int argc, char *argv[]){
        double offset=0;
        char *result_line, *perfdata_line;
 
+       setlocale (LC_ALL, "");
+       bindtextdomain (PACKAGE, LOCALEDIR);
+       textdomain (PACKAGE);
+
        result = offset_result = STATE_OK;
 
        if (process_arguments (argc, argv) == ERROR)