changeset 3382:5d087c422662

(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.
author Jim Meyering <jim@meyering.net>
date Sun, 26 Aug 2001 18:26:01 +0000
parents 4a146a365015
children f27732df8546
files lib/version-etc.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
   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 (_("\