]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
emit more precise bug-reporting instructions
authorJim Meyering <meyering@redhat.com>
Sat, 8 Nov 2008 18:59:52 +0000 (19:59 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 8 Nov 2008 18:59:52 +0000 (19:59 +0100)
Hoping that this will decrease the volume of bug reports
mistakenly directed to the coreutils mailing list.
* src/system.h (emit_bug_reporting_address): Specify the program
name in the "Report bugs to <...>." line in each program's --help
output and man page.  Now, it will say "Report PROGRAM_NAME bugs
to <...>."  Suggestion from Ondřej Vašík.

src/system.h

index e88b1bb3bd22bcce58cbf61b5d43badd8cc17cec..8577d44642fb74e0dd3c3fdd20b4f8cf58a61a85 100644 (file)
@@ -614,11 +614,12 @@ ptr_align (void const *ptr, size_t alignment)
 static inline void
 emit_bug_reporting_address (void)
 {
-  /* TRANSLATORS: The placeholder indicates the bug-reporting address
-     for this package.  Please add _another line_ saying
-     "Report translation bugs to <...>\n" with the address for translation
+  /* TRANSLATORS: The second placeholder indicates the bug-reporting
+     address for this package.  Please add _another line_ saying
+     "Report %s translation bugs to <...>\n" with the address for translation
      bugs (typically your translation team's web or email address).  */
-  printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);
+  printf (_("\nReport %s bugs to <%s>.\n"), last_component (program_name),
+         PACKAGE_BUGREPORT);
 }
 
 #include "inttostr.h"