Fix for systems that don't build with gettext

This commit is contained in:
John Wiegley 2009-02-22 01:40:45 -04:00
parent 348aae7478
commit 3c5b5fbc0a
2 changed files with 2 additions and 1 deletions

View file

@ -75,7 +75,9 @@ int main(int argc, char * argv[], char * envp[])
std::signal(SIGINT, sigint_handler);
std::signal(SIGPIPE, sigpipe_handler);
#if defined(HAVE_GETTEXT)
::textdomain("ledger");
#endif
// Create the session object, which maintains nearly all state relating to
// this invocation of Ledger; and register all known journal parsers.

View file

@ -139,7 +139,6 @@ typedef std::ostream::pos_type ostream_pos_type;
#include "gettext.h"
#define _(str) gettext(str)
#else
#define textdomain(name)
#define _(str) str
#endif