]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Replace "PACKAGE" in the header comment.
authorBruno Haible <bruno@clisp.org>
Mon, 4 Feb 2002 13:41:48 +0000 (13:41 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Jun 2009 23:15:39 +0000 (01:15 +0200)
src/ChangeLog
src/msginit.c

index b54a9ff3e03f106238629e8b4d5a568b7fd3ad88..0253fd333e9ac661711ca9742b0e6f837555c1a3 100644 (file)
@@ -1,3 +1,7 @@
+2002-02-03  Bruno Haible  <bruno@clisp.org>
+
+       * msginit.c (fill_header): Also replace "PACKAGE" in the comment.
+
 2002-02-02  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.am (INCLUDES): Add -I../lib. Needed for builds with
index 453f00aa685b8a7af058ef5d8a7bd36c3aedc5af..61dcfb6df55b281561240764a0ba06823e6da278 100644 (file)
@@ -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 <EMAIL@ADDRESS>";
-         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 <EMAIL@ADDRESS>";
+         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);