summaryrefslogtreecommitdiffstats
path: root/plugins/check_swap.c
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/check_swap.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_swap.c')
-rw-r--r--plugins/check_swap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_swap.c b/plugins/check_swap.c
index be20ca32..a1356cfa 100644
--- a/plugins/check_swap.c
+++ b/plugins/check_swap.c
@@ -528,8 +528,8 @@ print_help (void)
528 528
529 print_usage (); 529 print_usage ();
530 530
531 printf (_(UT_HELP_VRSN)); 531 printf (UT_HELP_VRSN);
532 printf (_(UT_EXTRA_OPTS)); 532 printf (UT_EXTRA_OPTS);
533 533
534 printf (" %s\n", "-w, --warning=INTEGER"); 534 printf (" %s\n", "-w, --warning=INTEGER");
535 printf (" %s\n", _("Exit with WARNING status if less than INTEGER bytes of swap space are free")); 535 printf (" %s\n", _("Exit with WARNING status if less than INTEGER bytes of swap space are free"));
@@ -541,18 +541,18 @@ print_help (void)
541 printf (" %s\n", _("Exit with CRITCAL status if less than PERCENT of swap space is free")); 541 printf (" %s\n", _("Exit with CRITCAL status if less than PERCENT of swap space is free"));
542 printf (" %s\n", "-a, --allswaps"); 542 printf (" %s\n", "-a, --allswaps");
543 printf (" %s\n", _("Conduct comparisons for all swap partitions, one by one")); 543 printf (" %s\n", _("Conduct comparisons for all swap partitions, one by one"));
544 printf (_(UT_VERBOSE)); 544 printf (UT_VERBOSE);
545 545
546 printf ("\n"); 546 printf ("\n");
547 printf ("%s\n", _("Notes:")); 547 printf ("%s\n", _("Notes:"));
548 printf (" %s\n", _("On AIX, if -a is specified, uses lsps -a, otherwise uses lsps -s.")); 548 printf (" %s\n", _("On AIX, if -a is specified, uses lsps -a, otherwise uses lsps -s."));
549#ifdef NP_EXTRA_OPTS 549#ifdef NP_EXTRA_OPTS
550 printf ("\n"); 550 printf ("\n");
551 printf (_(UT_EXTRA_OPTS_NOTES)); 551 printf (UT_EXTRA_OPTS_NOTES);
552#endif 552#endif
553 553
554 554
555 printf (_(UT_SUPPORT)); 555 printf (UT_SUPPORT);
556} 556}
557 557
558 558