From: Jim Meyering Date: Sat, 8 Nov 2008 18:59:52 +0000 (+0100) Subject: emit more precise bug-reporting instructions X-Git-Tag: v7.1~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41ec3548b058ebd4cea2eab5d74d583facca6e88;p=thirdparty%2Fcoreutils.git emit more precise bug-reporting instructions 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. --- diff --git a/src/system.h b/src/system.h index e88b1bb3bd..8577d44642 100644 --- a/src/system.h +++ b/src/system.h @@ -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"