summaryrefslogtreecommitdiff
path: root/lib/version-etc.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-08-26 18:26:01 +0000
committerJim Meyering <jim@meyering.net>2001-08-26 18:26:01 +0000
commitf86ac0a31d4522787d8b45628fbd9e6e49ea057f (patch)
tree60830da35b840728287ee20de0e140acdb26cf32 /lib/version-etc.c
parent989a7519d5c0c230c48a7b3b4e15c64ed660c73d (diff)
downloadcoreutils-f86ac0a31d4522787d8b45628fbd9e6e49ea057f.tar.xz
(version_etc_copyright_fmt): Replace literal year
of copyright with `%s' so translators don't get an untranslated message in 2002. (COPYRIGHT_YEAR): Define. (version_etc): Use fprintf rather than fputs.
Diffstat (limited to 'lib/version-etc.c')
-rw-r--r--lib/version-etc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/version-etc.c b/lib/version-etc.c
index c4562fdc5..ba04db482 100644
--- a/lib/version-etc.c
+++ b/lib/version-etc.c
@@ -34,9 +34,10 @@
/* Default copyright goes to the FSF. */
-char* version_etc_copyright =
- N_("Copyright (C) 2001 Free Software Foundation, Inc.");
+char* version_etc_copyright_fmt =
+ N_("Copyright (C) %s Free Software Foundation, Inc.");
+#define COPYRIGHT_YEAR "2001"
/* Display the --version information the standard way.
@@ -60,7 +61,7 @@ version_etc (FILE *stream,
fprintf (stream, _("Written by %s.\n"), authors);
putc ('\n', stream);
- fputs (_(version_etc_copyright), stream);
+ fprintf (stream, _(version_etc_copyright_fmt), COPYRIGHT_YEAR);
putc ('\n', stream);
fputs (_("\