summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2002-02-04 13:41:48 +0000
committerBruno Haible <bruno@clisp.org>2009-06-22 01:15:39 +0200
commit3a28345323eaf54471af4ba5f8e40c67d1de9451 (patch)
tree2aeae826610826566082be60860df11a7400473b
parent1e8c890ff24acceb4d21b838580d92cdbaec10b7 (diff)
downloadexternal_gettext-3a28345323eaf54471af4ba5f8e40c67d1de9451.zip
external_gettext-3a28345323eaf54471af4ba5f8e40c67d1de9451.tar.gz
external_gettext-3a28345323eaf54471af4ba5f8e40c67d1de9451.tar.bz2
Replace "PACKAGE" in the header comment.
-rw-r--r--src/ChangeLog4
-rw-r--r--src/msginit.c15
2 files changed, 13 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b54a9ff..0253fd3 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -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
diff --git a/src/msginit.c b/src/msginit.c
index 453f00a..61dcfb6 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 <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);