diff options
author | Werner Koch <wk@gnupg.org> | 2022-12-16 17:29:12 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2022-12-16 17:29:12 +0100 |
commit | 30a98b0b2197709a1a89fda467951e2c269e6a26 (patch) | |
tree | 6d21a4dc17a3df2b180fed33f914aa30e0511b78 /common/mapstrings.c | |
parent | po: Update German translation (diff) | |
download | gnupg2-30a98b0b2197709a1a89fda467951e2c269e6a26.tar.xz gnupg2-30a98b0b2197709a1a89fda467951e2c269e6a26.zip |
common: Fix translations in --help for gpgrt < 1.47
* common/mapstrings.c (map_static_macro_string): Add hack.
--
Diffstat (limited to 'common/mapstrings.c')
-rw-r--r-- | common/mapstrings.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; |