aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> 2007-12-11 05:57:35 +0000
committerGravatar Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> 2007-12-11 05:57:35 +0000
commit56c9db8516069b34a3174ee6511d5e6962007d27 (patch)
tree73ebcece0b7acccad3a4f1ff2c30c43e7c7b9bef /plugins
parent14be3a7df38404c2b35007c7fbd7111eb0495980 (diff)
downloadmonitoring-plugins-56c9db8516069b34a3174ee6511d5e6962007d27.tar.gz
Adding missing function calls needed for i18n (only for plugins already in POTFILES.in)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1861 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_cluster.c4
-rw-r--r--plugins/check_http.c4
-rw-r--r--plugins/check_mrtgtraf.c4
-rw-r--r--plugins/check_ntp.c4
-rw-r--r--plugins/check_ntp_peer.c4
-rw-r--r--plugins/check_ntp_time.c4
6 files changed, 24 insertions, 0 deletions
diff --git a/plugins/check_cluster.c b/plugins/check_cluster.c
index 2c7ee113..6f9c3e68 100644
--- a/plugins/check_cluster.c
+++ b/plugins/check_cluster.c
@@ -71,6 +71,10 @@ int main(int argc, char **argv){
int return_code=STATE_OK;
thresholds *thresholds = NULL;
+ setlocale (LC_ALL, "");
+ bindtextdomain (PACKAGE, LOCALEDIR);
+ textdomain (PACKAGE);
+
if(process_arguments(argc,argv)==ERROR)
usage(_("Could not parse arguments"));
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 728e7c13..bec02e1a 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -140,6 +140,10 @@ main (int argc, char **argv)
{
int result = STATE_UNKNOWN;
+ setlocale (LC_ALL, "");
+ bindtextdomain (PACKAGE, LOCALEDIR);
+ textdomain (PACKAGE);
+
/* Set default URL. Must be malloced for subsequent realloc if --onredirect=follow */
server_url = strdup(HTTP_URL);
server_url_length = strlen(server_url);
diff --git a/plugins/check_mrtgtraf.c b/plugins/check_mrtgtraf.c
index 97f0c92a..c38e595d 100644
--- a/plugins/check_mrtgtraf.c
+++ b/plugins/check_mrtgtraf.c
@@ -79,6 +79,10 @@ main (int argc, char **argv)
char incoming_speed_rating[8];
char outgoing_speed_rating[8];
+ setlocale (LC_ALL, "");
+ bindtextdomain (PACKAGE, LOCALEDIR);
+ textdomain (PACKAGE);
+
if (process_arguments (argc, argv) == ERROR)
usage4 (_("Could not parse arguments"));
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c
index e3ac2c8e..86e3d098 100644
--- a/plugins/check_ntp.c
+++ b/plugins/check_ntp.c
@@ -757,6 +757,10 @@ int main(int argc, char *argv[]){
double offset=0, jitter=0;
char *result_line, *perfdata_line;
+ setlocale (LC_ALL, "");
+ bindtextdomain (PACKAGE, LOCALEDIR);
+ textdomain (PACKAGE);
+
result = offset_result = jitter_result = STATE_OK;
if (process_arguments (argc, argv) == ERROR)
diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c
index 87d02e17..b5551ba8 100644
--- a/plugins/check_ntp_peer.c
+++ b/plugins/check_ntp_peer.c
@@ -544,6 +544,10 @@ int main(int argc, char *argv[]){
double offset=0, jitter=0;
char *result_line, *perfdata_line;
+ setlocale (LC_ALL, "");
+ bindtextdomain (PACKAGE, LOCALEDIR);
+ textdomain (PACKAGE);
+
if (process_arguments (argc, argv) == ERROR)
usage4 (_("Could not parse arguments"));
diff --git a/plugins/check_ntp_time.c b/plugins/check_ntp_time.c
index 60e2b5a0..f414c328 100644
--- a/plugins/check_ntp_time.c
+++ b/plugins/check_ntp_time.c
@@ -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)