summaryrefslogtreecommitdiffstats
path: root/plugins-root
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@aei.ca>2010-04-14 06:11:45 -0400
committerThomas Guyot-Sionnest <dermoth@aei.ca>2010-04-14 08:33:06 -0400
commit25d1ee331dbe4977a4a1a756c67f32bd51d9b070 (patch)
treeb15cfec59fdbaa8b283f8e7aa2e3d8c4207a7376 /plugins-root
parentb649333321701eccfd99df0d39c6b8d8c92d6a8b (diff)
downloadmonitoring-plugins-25d1ee331dbe4977a4a1a756c67f32bd51d9b070.tar.gz
Fix translations when extra-opts aren't enabled
Bug #2832884 reported problem with translations outputting pot file headers. This is caused by "" matching the header of the translation files. This patch moves gettext macros inside utils macros and update some french translations.
Diffstat (limited to 'plugins-root')
-rw-r--r--plugins-root/check_dhcp.c10
-rw-r--r--plugins-root/check_icmp.c8
2 files changed, 9 insertions, 9 deletions
diff --git a/plugins-root/check_dhcp.c b/plugins-root/check_dhcp.c
index bdd348f2..51ac96ea 100644
--- a/plugins-root/check_dhcp.c
+++ b/plugins-root/check_dhcp.c
@@ -1392,10 +1392,10 @@ void print_help(void){
1392 1392
1393 print_usage(); 1393 print_usage();
1394 1394
1395 printf (_(UT_HELP_VRSN)); 1395 printf (UT_HELP_VRSN);
1396 printf (_(UT_EXTRA_OPTS)); 1396 printf (UT_EXTRA_OPTS);
1397 1397
1398 printf (_(UT_VERBOSE)); 1398 printf (UT_VERBOSE);
1399 1399
1400 printf (" %s\n", "-s, --serverip=IPADDRESS"); 1400 printf (" %s\n", "-s, --serverip=IPADDRESS");
1401 printf (" %s\n", _("IP address of DHCP server that we must hear from")); 1401 printf (" %s\n", _("IP address of DHCP server that we must hear from"));
@@ -1413,10 +1413,10 @@ void print_help(void){
1413#ifdef NP_EXTRA_OPTS 1413#ifdef NP_EXTRA_OPTS
1414 printf ("\n"); 1414 printf ("\n");
1415 printf ("%s\n", _("Notes:")); 1415 printf ("%s\n", _("Notes:"));
1416 printf (_(UT_EXTRA_OPTS_NOTES)); 1416 printf (UT_EXTRA_OPTS_NOTES);
1417#endif 1417#endif
1418 1418
1419 printf (_(UT_SUPPORT)); 1419 printf (UT_SUPPORT);
1420 return; 1420 return;
1421 } 1421 }
1422 1422
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c
index 2a1b8133..590bb1a6 100644
--- a/plugins-root/check_icmp.c
+++ b/plugins-root/check_icmp.c
@@ -1281,8 +1281,8 @@ print_help(void)
1281 1281
1282 print_usage (); 1282 print_usage ();
1283 1283
1284 printf (_(UT_HELP_VRSN)); 1284 printf (UT_HELP_VRSN);
1285 printf (_(UT_EXTRA_OPTS)); 1285 printf (UT_EXTRA_OPTS);
1286 1286
1287 printf (" %s\n", "-H"); 1287 printf (" %s\n", "-H");
1288 printf (" %s\n", _("specify a target")); 1288 printf (" %s\n", _("specify a target"));
@@ -1337,10 +1337,10 @@ print_help(void)
1337*/ 1337*/
1338#ifdef NP_EXTRA_OPTS 1338#ifdef NP_EXTRA_OPTS
1339 printf ("\n"); 1339 printf ("\n");
1340 printf (_(UT_EXTRA_OPTS_NOTES)); 1340 printf (UT_EXTRA_OPTS_NOTES);
1341#endif 1341#endif
1342 1342
1343 printf (_(UT_SUPPORT)); 1343 printf (UT_SUPPORT);
1344} 1344}
1345 1345
1346 1346