summaryrefslogtreecommitdiffstats
path: root/plugins/check_mysql.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_mysql.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_mysql.c')
-rw-r--r--plugins/check_mysql.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index 05d2b01..ce19062 100644
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
@@ -381,10 +381,10 @@ print_help (void)
381 381
382 print_usage (); 382 print_usage ();
383 383
384 printf (_(UT_HELP_VRSN)); 384 printf (UT_HELP_VRSN);
385 printf (_(UT_EXTRA_OPTS)); 385 printf (UT_EXTRA_OPTS);
386 386
387 printf (_(UT_HOST_PORT), 'P', myport); 387 printf (UT_HOST_PORT, 'P', myport);
388 printf (" %s\n", "-s, --socket=STRING"); 388 printf (" %s\n", "-s, --socket=STRING");
389 printf (" %s\n", _("Use the specified socket (has no effect if -H is used)")); 389 printf (" %s\n", _("Use the specified socket (has no effect if -H is used)"));
390 390
@@ -413,13 +413,13 @@ print_help (void)
413#ifdef NP_EXTRA_OPTS 413#ifdef NP_EXTRA_OPTS
414 printf ("\n"); 414 printf ("\n");
415 printf ("%s\n", _("Notes:")); 415 printf ("%s\n", _("Notes:"));
416 printf (_(UT_EXTRA_OPTS_NOTES)); 416 printf (UT_EXTRA_OPTS_NOTES);
417 printf ("\n"); 417 printf ("\n");
418 printf (" %s\n", _("You must specify -p with an empty string to force an empty password,")); 418 printf (" %s\n", _("You must specify -p with an empty string to force an empty password,"));
419 printf (" %s\n", _("overriding any my.cnf settings.")); 419 printf (" %s\n", _("overriding any my.cnf settings."));
420#endif 420#endif
421 421
422 printf (_(UT_SUPPORT)); 422 printf (UT_SUPPORT);
423} 423}
424 424
425 425