From: Jim Meyering Date: Sun, 9 Nov 2008 16:15:57 +0000 (+0100) Subject: make --help print "Report PROGRAM translation bugs to <...>." X-Git-Tag: v7.1~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43448b049341d9b88293f38eb941759820f42e84;p=thirdparty%2Fcoreutils.git make --help print "Report PROGRAM translation bugs to <...>." for all but the C/POSIX locale. * src/system.h: Include "hard-locale.h". (emit_bug_reporting_address): Tell where to report translation bugs. don't include "hard-locale.h", now that system.h does * src/comm.c: Likewise. * src/join.c: Likewise. * src/ls.c: Likewise. * src/pinky.c: Likewise. * src/pr.c: Likewise. * src/sort.c: Likewise. * src/uniq.c: Likewise. * src/who.c: Likewise. --- diff --git a/src/comm.c b/src/comm.c index 9e70253f92..4ec7e4a07c 100644 --- a/src/comm.c +++ b/src/comm.c @@ -23,7 +23,6 @@ #include "system.h" #include "linebuffer.h" #include "error.h" -#include "hard-locale.h" #include "quote.h" #include "stdio--.h" #include "xmemcoll.h" diff --git a/src/join.c b/src/join.c index 041e2eb536..992a357b17 100644 --- a/src/join.c +++ b/src/join.c @@ -24,7 +24,6 @@ #include "system.h" #include "error.h" -#include "hard-locale.h" #include "linebuffer.h" #include "memcasecmp.h" #include "quote.h" diff --git a/src/ls.c b/src/ls.c index 460e161d13..7619cebc1a 100644 --- a/src/ls.c +++ b/src/ls.c @@ -89,7 +89,6 @@ #include "dev-ino.h" #include "error.h" #include "filenamecat.h" -#include "hard-locale.h" #include "hash.h" #include "human.h" #include "filemode.h" diff --git a/src/pinky.c b/src/pinky.c index d6bc65482a..136abc5c2d 100644 --- a/src/pinky.c +++ b/src/pinky.c @@ -26,7 +26,6 @@ #include "canon-host.h" #include "error.h" -#include "hard-locale.h" #include "readutmp.h" /* The official name of this program (e.g., no `g' prefix). */ diff --git a/src/pr.c b/src/pr.c index 044bb5609a..d2b6714e0f 100644 --- a/src/pr.c +++ b/src/pr.c @@ -314,7 +314,6 @@ #include #include "system.h" #include "error.h" -#include "hard-locale.h" #include "mbswidth.h" #include "quote.h" #include "stat-time.h" diff --git a/src/sort.c b/src/sort.c index fe58908b92..df51d8b330 100644 --- a/src/sort.c +++ b/src/sort.c @@ -30,7 +30,6 @@ #include "argmatch.h" #include "error.h" #include "filevercmp.h" -#include "hard-locale.h" #include "hash.h" #include "md5.h" #include "physmem.h" diff --git a/src/system.h b/src/system.h index ee0d25cd90..d51caedf11 100644 --- a/src/system.h +++ b/src/system.h @@ -611,15 +611,20 @@ ptr_align (void const *ptr, size_t alignment) ? false : (((Accum) = (Accum) * 10 + (Digit_val)), true)) \ ) +#include "hard-locale.h" static inline void emit_bug_reporting_address (void) { - /* 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 %s bugs to <%s>.\n"), last_component (program_name), PACKAGE_BUGREPORT); + /* TRANSLATORS: Replace LANG_CODE in this URL with your language code + to form one of + the URLs at http://translationproject.org/team/. Otherwise, replace + the entire URL with your translation team's email address. */ + if (hard_locale (LC_MESSAGES)) + printf (_("Report %s translation bugs to " + "\n"), + last_component (program_name)); } #include "inttostr.h" diff --git a/src/uniq.c b/src/uniq.c index f2aeb77d9b..a3e0fb7b5e 100644 --- a/src/uniq.c +++ b/src/uniq.c @@ -26,7 +26,6 @@ #include "argmatch.h" #include "linebuffer.h" #include "error.h" -#include "hard-locale.h" #include "posixver.h" #include "quote.h" #include "xmemcoll.h" diff --git a/src/who.c b/src/who.c index 5b17ef15ba..3bc680bc0a 100644 --- a/src/who.c +++ b/src/who.c @@ -34,7 +34,6 @@ #include "canon-host.h" #include "readutmp.h" #include "error.h" -#include "hard-locale.h" #include "quote.h" /* The official name of this program (e.g., no `g' prefix). */