Skip to content

Commit

Permalink
i18n: Make VGETTEXT()/VNGETTEXT() always require a GETTEXT_DOMAIN to …
Browse files Browse the repository at this point in the history
…be defined

This drops a preprocessor conditional branch that is dead code now that
the file pulls gettext.hpp and the GETTEXT_DOMAIN defaults with it.

See also PR #2711.

(cherry-picked from commit a602391)
  • Loading branch information
irydacea committed Oct 7, 2018
1 parent dfc7c41 commit 824f836
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/formula/string_utils.hpp
Expand Up @@ -94,10 +94,5 @@ std::string vngettext(const char*, const char*, const char*, int, const utils::s
* the function.
*/

#ifdef GETTEXT_DOMAIN
#define VGETTEXT(msgid, ...) vgettext(GETTEXT_DOMAIN, msgid, __VA_ARGS__)
#define VNGETTEXT(msgid, msgid_plural, count, ...) vngettext(GETTEXT_DOMAIN, msgid, msgid_plural, count, __VA_ARGS__)
#else
#define VGETTEXT(msgid, ...) vgettext(msgid, __VA_ARGS__)
#define VNGETTEXT(msgid, msgid_plural, count, ...) vngettext(msgid, msgid_plural, count, __VA_ARGS__)
#endif

0 comments on commit 824f836

Please sign in to comment.