summaryrefslogtreecommitdiffstats
path: root/plugins/check_mysql_query.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_query.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_query.c')
-rw-r--r--plugins/check_mysql_query.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/check_mysql_query.c b/plugins/check_mysql_query.c
index 47dd861..40adf09 100644
--- a/plugins/check_mysql_query.c
+++ b/plugins/check_mysql_query.c
@@ -289,12 +289,12 @@ print_help (void)
289 289
290 print_usage (); 290 print_usage ();
291 291
292 printf (_(UT_HELP_VRSN)); 292 printf (UT_HELP_VRSN);
293 printf (_(UT_EXTRA_OPTS)); 293 printf (UT_EXTRA_OPTS);
294 printf (" -q, --query=STRING\n"); 294 printf (" -q, --query=STRING\n");
295 printf (" %s\n", _("SQL query to run. Only first column in first row will be read")); 295 printf (" %s\n", _("SQL query to run. Only first column in first row will be read"));
296 printf (_(UT_WARN_CRIT_RANGE)); 296 printf (UT_WARN_CRIT_RANGE);
297 printf (_(UT_HOST_PORT), 'P', myport); 297 printf (UT_HOST_PORT, 'P', myport);
298 printf (" %s\n", "-s, --socket=STRING"); 298 printf (" %s\n", "-s, --socket=STRING");
299 printf (" %s\n", _("Use the specified socket (has no effect if -H is used)")); 299 printf (" %s\n", _("Use the specified socket (has no effect if -H is used)"));
300 printf (" -d, --database=STRING\n"); 300 printf (" -d, --database=STRING\n");
@@ -313,13 +313,13 @@ print_help (void)
313#ifdef NP_EXTRA_OPTS 313#ifdef NP_EXTRA_OPTS
314 printf ("\n"); 314 printf ("\n");
315 printf ("%s\n", _("Notes:")); 315 printf ("%s\n", _("Notes:"));
316 printf (_(UT_EXTRA_OPTS_NOTES)); 316 printf (UT_EXTRA_OPTS_NOTES);
317 printf ("\n"); 317 printf ("\n");
318 printf (" %s\n", _("You must specify -p with an empty string to force an empty password,")); 318 printf (" %s\n", _("You must specify -p with an empty string to force an empty password,"));
319 printf (" %s\n", _("overriding any my.cnf settings.")); 319 printf (" %s\n", _("overriding any my.cnf settings."));
320#endif 320#endif
321 321
322 printf (_(UT_SUPPORT)); 322 printf (UT_SUPPORT);
323} 323}
324 324
325 325