1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

common: Fix translations in --help for gpgrt < 1.47

* common/mapstrings.c (map_static_macro_string): Add hack.
--
This commit is contained in:
Werner Koch 2022-12-16 17:29:12 +01:00
parent 7d1010256b
commit 30a98b0b21
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -154,6 +154,14 @@ map_static_macro_string (const char *string)
membuf_t mb; membuf_t mb;
char *p; 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))) if ((s = already_mapped (string)))
return s; return s;
s = string; s = string;