[Nagiosplug-checkins] SF.net SVN: nagiosplug: [1861] nagiosplug/trunk/plugins

dermoth at users.sourceforge.net dermoth at users.sourceforge.net
Tue Dec 11 06:57:36 CET 2007


Revision: 1861
          http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=1861&view=rev
Author:   dermoth
Date:     2007-12-10 21:57:35 -0800 (Mon, 10 Dec 2007)

Log Message:
-----------
Adding missing function calls needed for i18n (only for plugins already in POTFILES.in)

Modified Paths:
--------------
    nagiosplug/trunk/plugins/check_cluster.c
    nagiosplug/trunk/plugins/check_http.c
    nagiosplug/trunk/plugins/check_mrtgtraf.c
    nagiosplug/trunk/plugins/check_ntp.c
    nagiosplug/trunk/plugins/check_ntp_peer.c
    nagiosplug/trunk/plugins/check_ntp_time.c
    nagiosplug/trunk/plugins-root/check_icmp.c

Modified: nagiosplug/trunk/plugins/check_cluster.c
===================================================================
--- nagiosplug/trunk/plugins/check_cluster.c	2007-12-10 08:10:57 UTC (rev 1860)
+++ nagiosplug/trunk/plugins/check_cluster.c	2007-12-11 05:57:35 UTC (rev 1861)
@@ -71,6 +71,10 @@
 	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"));
 

Modified: nagiosplug/trunk/plugins/check_http.c
===================================================================
--- nagiosplug/trunk/plugins/check_http.c	2007-12-10 08:10:57 UTC (rev 1860)
+++ nagiosplug/trunk/plugins/check_http.c	2007-12-11 05:57:35 UTC (rev 1861)
@@ -140,6 +140,10 @@
 {
   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);

Modified: nagiosplug/trunk/plugins/check_mrtgtraf.c
===================================================================
--- nagiosplug/trunk/plugins/check_mrtgtraf.c	2007-12-10 08:10:57 UTC (rev 1860)
+++ nagiosplug/trunk/plugins/check_mrtgtraf.c	2007-12-11 05:57:35 UTC (rev 1861)
@@ -79,6 +79,10 @@
 	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"));
 

Modified: nagiosplug/trunk/plugins/check_ntp.c
===================================================================
--- nagiosplug/trunk/plugins/check_ntp.c	2007-12-10 08:10:57 UTC (rev 1860)
+++ nagiosplug/trunk/plugins/check_ntp.c	2007-12-11 05:57:35 UTC (rev 1861)
@@ -757,6 +757,10 @@
 	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)

Modified: nagiosplug/trunk/plugins/check_ntp_peer.c
===================================================================
--- nagiosplug/trunk/plugins/check_ntp_peer.c	2007-12-10 08:10:57 UTC (rev 1860)
+++ nagiosplug/trunk/plugins/check_ntp_peer.c	2007-12-11 05:57:35 UTC (rev 1861)
@@ -544,6 +544,10 @@
 	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"));
 

Modified: nagiosplug/trunk/plugins/check_ntp_time.c
===================================================================
--- nagiosplug/trunk/plugins/check_ntp_time.c	2007-12-10 08:10:57 UTC (rev 1860)
+++ nagiosplug/trunk/plugins/check_ntp_time.c	2007-12-11 05:57:35 UTC (rev 1861)
@@ -534,6 +534,10 @@
 	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)

Modified: nagiosplug/trunk/plugins-root/check_icmp.c
===================================================================
--- nagiosplug/trunk/plugins-root/check_icmp.c	2007-12-10 08:10:57 UTC (rev 1860)
+++ nagiosplug/trunk/plugins-root/check_icmp.c	2007-12-11 05:57:35 UTC (rev 1861)
@@ -371,6 +371,10 @@
 	int icmp_sockerrno, udp_sockerrno, tcp_sockerrno;
 	int result;
 	struct rta_host *host;
+
+	setlocale (LC_ALL, "");
+	bindtextdomain (PACKAGE, LOCALEDIR);
+	textdomain (PACKAGE);
 	
 	/* print a helpful error message if geteuid != 0 */
 	np_warn_if_not_root();


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Commits mailing list