Merge branch 'tr/maint-parseopt-avoid-empty'
A workaround to avoid doing _(""), which translates to unwanted magic string in the .po files. * tr/maint-parseopt-avoid-empty: gettext: do not translate empty string
This commit is contained in:
commit
800981f40d
@ -44,6 +44,8 @@ extern int use_gettext_poison(void);
|
|||||||
|
|
||||||
static inline FORMAT_PRESERVING(1) const char *_(const char *msgid)
|
static inline FORMAT_PRESERVING(1) const char *_(const char *msgid)
|
||||||
{
|
{
|
||||||
|
if (!*msgid)
|
||||||
|
return "";
|
||||||
return use_gettext_poison() ? "# GETTEXT POISON #" : gettext(msgid);
|
return use_gettext_poison() ? "# GETTEXT POISON #" : gettext(msgid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user