From 43448b049341d9b88293f38eb941759820f42e84 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 9 Nov 2008 17:15:57 +0100 Subject: 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. --- src/comm.c | 1 - src/join.c | 1 - src/ls.c | 1 - src/pinky.c | 1 - src/pr.c | 1 - src/sort.c | 1 - src/system.h | 13 +++++++++---- src/uniq.c | 1 - src/who.c | 1 - 9 files changed, 9 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/comm.c b/src/comm.c index 9e70253f9..4ec7e4a07 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 041e2eb53..992a357b1 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 460e161d1..7619cebc1 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 d6bc65482..136abc5c2 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 044bb5609..d2b6714e0 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 fe58908b9..df51d8b33 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 ee0d25cd9..d51caedf1 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 f2aeb77d9..a3e0fb7b5 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 5b17ef15b..3bc680bc0 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). */ -- cgit v1.2.3-70-g09d2