From: Bruno Haible Date: Mon, 4 Feb 2002 13:41:48 +0000 (+0000) Subject: Replace "PACKAGE" in the header comment. X-Git-Tag: v0.11.1~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a28345323eaf54471af4ba5f8e40c67d1de9451;p=thirdparty%2Fgettext.git Replace "PACKAGE" in the header comment. --- diff --git a/src/ChangeLog b/src/ChangeLog index b54a9ff3e..0253fd333 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2002-02-03 Bruno Haible + + * msginit.c (fill_header): Also replace "PACKAGE" in the comment. + 2002-02-02 Bruno Haible * Makefile.am (INCLUDES): Add -I../lib. Needed for builds with diff --git a/src/msginit.c b/src/msginit.c index 453f00aa6..61dcfb6df 100644 --- a/src/msginit.c +++ b/src/msginit.c @@ -1579,7 +1579,7 @@ fill_header (mdlp) { message_ty *header_mp = NULL; char *header; - const char *subst[3][2]; + const char *subst[4][2]; const char *id; time_t now; @@ -1624,12 +1624,15 @@ fill_header (mdlp) header_mp->msgstr_len = strlen (header) + 1; /* Update the comments in the header entry. */ + id = project_id (); subst[0][0] = "SOME DESCRIPTIVE TITLE"; - subst[0][1] = (id = project_id (), xasprintf (get_title (), id, id)); - subst[1][0] = "FIRST AUTHOR "; - subst[1][1] = field_value[FIELD_LAST_TRANSLATOR]; - subst[2][0] = "YEAR"; - subst[2][1] = + subst[0][1] = xasprintf (get_title (), id, id); + subst[1][0] = "PACKAGE"; + subst[1][1] = id; + subst[2][0] = "FIRST AUTHOR "; + subst[2][1] = field_value[FIELD_LAST_TRANSLATOR]; + subst[3][0] = "YEAR"; + subst[3][1] = xasprintf ("%d", (time (&now), (localtime (&now))->tm_year + 1900)); subst_string_list (header_mp->comment, SIZEOF (subst), subst);