From 30a98b0b2197709a1a89fda467951e2c269e6a26 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 16 Dec 2022 17:29:12 +0100 Subject: [PATCH] common: Fix translations in --help for gpgrt < 1.47 * common/mapstrings.c (map_static_macro_string): Add hack. -- --- common/mapstrings.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/mapstrings.c b/common/mapstrings.c index 172e198ea..9efe95c0d 100644 --- a/common/mapstrings.c +++ b/common/mapstrings.c @@ -154,6 +154,14 @@ map_static_macro_string (const char *string) membuf_t mb; char *p; + /* We use a hack if we don't use the fixed gpgrt 1.47 + * (commit 885a287a57cf060b4c5b441822c09d23b8dee2bd) */ +#if GPGRT_VERSION_NUMBER < 0x012f00 + if (string && !strncmp (string, "Project-Id-Version:", 19) + && strstr (string, "PO-Revision-Date:")) + return ""; +#endif + if ((s = already_mapped (string))) return s; s = string;