Remove the year number from the copyright string into a constant

(This is inspired by Metacity commit 45cbaa2 by Thomas Thurman, but
much simpler - the use of g_date_strftime("%Y") ended up being just
%d for all 90+ current translations)
This commit is contained in:
Owen W. Taylor 2009-02-05 20:02:59 +00:00
parent c0d2ead351
commit c588e173f8

View File

@ -124,11 +124,13 @@ log_handler (const gchar *log_domain,
static void
version (void)
{
const int latest_year = 2010;
g_print (_("mutter %s\n"
"Copyright (C) 2001-2008 Havoc Pennington, Red Hat, Inc., and others\n"
"Copyright (C) 2001-%d Havoc Pennington, Red Hat, Inc., and others\n"
"This is free software; see the source for copying conditions.\n"
"There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"),
VERSION);
VERSION, latest_year);
exit (0);
}