mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-23 10:29:58 +01:00
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 18d884f8411a0ca263a8aa588bb49eb0dae9ee19)
This commit is contained in:
parent
26a024057d
commit
a456303ae3
@ -1406,6 +1406,9 @@ gc_component_reload (int component)
|
|||||||
static const char *
|
static const char *
|
||||||
my_dgettext (const char *domain, const char *msgid)
|
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
|
#ifdef USE_SIMPLE_GETTEXT
|
||||||
if (domain)
|
if (domain)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user