diff options
| author | Junio C Hamano <gitster@pobox.com> | 2012-09-07 11:08:10 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2012-09-07 11:08:10 -0700 |
| commit | 800981f40df7de20216f0b364a138fbf5c16b824 (patch) | |
| tree | 424e24cd4fde8acc1a1ac307bedbe8f211c0cced | |
| parent | Merge branch 'nd/i18n-poison-test-updates' (diff) | |
| parent | gettext: do not translate empty string (diff) | |
| download | git-800981f40df7de20216f0b364a138fbf5c16b824.tar.gz git-800981f40df7de20216f0b364a138fbf5c16b824.zip | |
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
| -rw-r--r-- | gettext.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } |
