From 20c8c9cfb54174dc3246b57285ef8e0b8da7db48 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 26 Aug 2001 18:26:01 +0000 Subject: [PATCH] (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. --- lib/version-etc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/version-etc.c b/lib/version-etc.c index c4562fdc51..ba04db4821 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 (_("\ -- 2.30.2