Browse Source

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
maint
Junio C Hamano 13 years ago
parent
commit
800981f40d
  1. 2
      gettext.h

2
gettext.h

@ -44,6 +44,8 @@ extern int use_gettext_poison(void); @@ -44,6 +44,8 @@ extern int use_gettext_poison(void);

static inline FORMAT_PRESERVING(1) const char *_(const char *msgid)
{
if (!*msgid)
return "";
return use_gettext_poison() ? "# GETTEXT POISON #" : gettext(msgid);
}


Loading…
Cancel
Save