]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
xgettext: Replace PACKAGE placeholder if possible
authorDaiki Ueno <ueno@gnu.org>
Mon, 24 Aug 2015 08:30:42 +0000 (17:30 +0900)
committerDaiki Ueno <ueno@gnu.org>
Mon, 24 Aug 2015 08:31:44 +0000 (17:31 +0900)
* xgettext.c (construct_header): Replace PACKAGE placeholder in
the header comment.

gettext-tools/src/ChangeLog
gettext-tools/src/xgettext.c

index 6ffa742a3e7c0219d150c6c0f6429d41d60231ea..d5c5491fcfbe11629afaf4bd2a7d93eda620d9ab 100644 (file)
@@ -1,3 +1,8 @@
+2015-08-24  Daiki Ueno  <ueno@gnu.org>
+
+       * xgettext.c (construct_header): Replace PACKAGE placeholder in
+       the header comment.
+
 2015-06-11  Philip Withnall  <philip.withnall@collabora.co.uk>
 
        xgettext: add support for AppData files
index be2aa6cd2bd862c3b2a6f2e5778921c99dfb6507..2f34057ba362793e46837828cbac45de105fbac4 100644 (file)
@@ -3619,9 +3619,10 @@ Content-Transfer-Encoding: 8bit\n",
       comment = xasprintf ("\
 SOME DESCRIPTIVE TITLE.\n\
 %s\
-This file is distributed under the same license as the PACKAGE package.\n\
+This file is distributed under the same license as the %s package.\n\
 FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.\n",
-                         copyright_comment);
+                           copyright_comment,
+                           package_name != NULL ? package_name : "PACKAGE");
       free (copyright_comment);
     }
   else