Improve support of compiling without gettext
commit50feb0e05c87ff973ca678e255842e5fe43badc3
authorMatthew Brush <matt@geany.org>
Tue, 20 May 2014 05:57:14 +0000 (19 22:57 -0700)
committerMatthew Brush <matt@geany.org>
Wed, 21 May 2014 22:38:16 +0000 (21 15:38 -0700)
treeee3e8a63b49663bc6f65aadc2d21f6372fcf1d0d
parent34888d6bafd1df9ae2e3456b066c2b44ea676ae8
Improve support of compiling without gettext

* If GETTEXT_PACKAGE is not defined (ex. by build system/user) then
  define it to NULL. Most GLib gettext-functions allow passing NULL
  to use the domain set with textdomain().
* Improve the ngettext() wrapper macro.
* Improve/fix bind_textdomain_codeset() wrapper macro.
* Fix argument in bindtextdomain()
* Cast bind*textdomain*() results with (void) to get rid of compiler
  warnings when building without GETTEXT_PACKAGE defined.
src/main.c
src/support.h