Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / gettext / 0001-msginit-Do-not-use-POT-Creation-Date.patch
blobeea9dc6e03783977d72239ddfc74c6972db366cb
1 From 1e000ca711886055176a2f90197a383d09de0e67 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Miguel=20=C3=81ngel=20Arruga=20Vivas?=
3 <rosen644835@gmail.com>
4 Date: Fri, 18 Dec 2020 14:19:36 +0100
5 Subject: [PATCH] msginit: Do not use POT-Creation-Date.
7 * gettext-tools/src/msginit.c (po_revision_date): Do not use
8 POT-Creation-Date when the file is automatically generated.
9 ---
10 gettext-tools/src/msginit.c | 6 +++---
11 1 file changed, 3 insertions(+), 3 deletions(-)
13 diff --git a/gettext-tools/src/msginit.c b/gettext-tools/src/msginit.c
14 index 8ca9a3b77..06e0e7195 100644
15 --- a/gettext-tools/src/msginit.c
16 +++ b/gettext-tools/src/msginit.c
17 @@ -1075,9 +1075,9 @@ static const char *
18 po_revision_date (const char *header)
20 if (no_translator)
21 - /* Because the PO file is automatically generated, we use the
22 - POT-Creation-Date, not the current time. */
23 - return get_field (header, "POT-Creation-Date");
24 + /* Because the PO file is automatically generated, we don't
25 + generate PO-Revision-Date field. */
26 + return NULL;
27 else
29 /* Assume the translator will modify the PO file now. */
30 --
31 2.29.2