summaryrefslogtreecommitdiffstats
path: root/plugins/check_http.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@aei.ca>2010-04-14 10:11:45 (GMT)
committerThomas Guyot-Sionnest <dermoth@aei.ca>2010-04-14 12:33:06 (GMT)
commit25d1ee331dbe4977a4a1a756c67f32bd51d9b070 (patch)
treeb15cfec59fdbaa8b283f8e7aa2e3d8c4207a7376 /plugins/check_http.c
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/check_http.c')
-rw-r--r--plugins/check_http.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 0a8910c..6c53f7a 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -1315,8 +1315,8 @@ print_help (void)
1315 1315
1316 printf ("\n"); 1316 printf ("\n");
1317 1317
1318 printf (_(UT_HELP_VRSN)); 1318 printf (UT_HELP_VRSN);
1319 printf (_(UT_EXTRA_OPTS)); 1319 printf (UT_EXTRA_OPTS);
1320 1320
1321 printf (" %s\n", "-H, --hostname=ADDRESS"); 1321 printf (" %s\n", "-H, --hostname=ADDRESS");
1322 printf (" %s\n", _("Host name argument for servers using host headers (virtual host)")); 1322 printf (" %s\n", _("Host name argument for servers using host headers (virtual host)"));
@@ -1327,7 +1327,7 @@ print_help (void)
1327 printf (" %s", _("Port number (default: ")); 1327 printf (" %s", _("Port number (default: "));
1328 printf ("%d)\n", HTTP_PORT); 1328 printf ("%d)\n", HTTP_PORT);
1329 1329
1330 printf (_(UT_IPv46)); 1330 printf (UT_IPv46);
1331 1331
1332#ifdef HAVE_SSL 1332#ifdef HAVE_SSL
1333 printf (" %s\n", "-S, --ssl"); 1333 printf (" %s\n", "-S, --ssl");
@@ -1386,11 +1386,11 @@ print_help (void)
1386 printf (" %s\n", "-m, --pagesize=INTEGER<:INTEGER>"); 1386 printf (" %s\n", "-m, --pagesize=INTEGER<:INTEGER>");
1387 printf (" %s\n", _("Minimum page size required (bytes) : Maximum page size required (bytes)")); 1387 printf (" %s\n", _("Minimum page size required (bytes) : Maximum page size required (bytes)"));
1388 1388
1389 printf (_(UT_WARN_CRIT)); 1389 printf (UT_WARN_CRIT);
1390 1390
1391 printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); 1391 printf (UT_TIMEOUT, DEFAULT_SOCKET_TIMEOUT);
1392 1392
1393 printf (_(UT_VERBOSE)); 1393 printf (UT_VERBOSE);
1394 1394
1395 printf ("\n"); 1395 printf ("\n");
1396 printf ("%s\n", _("Notes:")); 1396 printf ("%s\n", _("Notes:"));
@@ -1401,7 +1401,7 @@ print_help (void)
1401 printf (" %s\n", _("checking a virtual server that uses 'host headers' you must supply the FQDN")); 1401 printf (" %s\n", _("checking a virtual server that uses 'host headers' you must supply the FQDN"));
1402 printf (" %s\n", _("(fully qualified domain name) as the [host_name] argument.")); 1402 printf (" %s\n", _("(fully qualified domain name) as the [host_name] argument."));
1403 printf ("\n"); 1403 printf ("\n");
1404 printf (_(UT_EXTRA_OPTS_NOTES)); 1404 printf (UT_EXTRA_OPTS_NOTES);
1405 1405
1406#ifdef HAVE_SSL 1406#ifdef HAVE_SSL
1407 printf ("\n"); 1407 printf ("\n");
@@ -1423,7 +1423,7 @@ print_help (void)
1423 printf (" %s\n", _("the certificate is expired.")); 1423 printf (" %s\n", _("the certificate is expired."));
1424#endif 1424#endif
1425 1425
1426 printf (_(UT_SUPPORT)); 1426 printf (UT_SUPPORT);
1427 1427
1428} 1428}
1429 1429