mirror of
https://github.com/git-for-windows/git.git
synced 2026-05-02 08:03:45 -05:00
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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user