gpgconf: Do not i18n an empty string to the PO files meta data.

* tools/gpgconf-comp.c (my_dgettext): Ignore empty strings.
--

GnuPG-bug-id: 5363
(cherry picked from commit 18d884f841)
This commit is contained in:
Werner Koch 2021-03-28 10:38:42 +02:00
parent 26a024057d
commit a456303ae3
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 3 additions and 0 deletions

View File

@ -1406,6 +1406,9 @@ gc_component_reload (int component)
static const char *
my_dgettext (const char *domain, const char *msgid)
{
if (!msgid || !*msgid)
return msgid; /* Shortcut form "" which has the PO files meta data. */
#ifdef USE_SIMPLE_GETTEXT
if (domain)
{