Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use dgettext() so the domain is always correct even in libopenconnect
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Sep 22, 2011
1 parent eef00ae commit 9c3ed3f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion main.c
Expand Up @@ -238,7 +238,6 @@ int main(int argc, char **argv)

#ifdef ENABLE_NLS
setlocale(LC_ALL, "");
textdomain("openconnect");
#endif

openconnect_init_openssl();
Expand Down
2 changes: 1 addition & 1 deletion openconnect-internal.h
Expand Up @@ -41,7 +41,7 @@
#endif
#ifdef ENABLE_NLS
#include <libintl.h>
#define _(s) gettext(s)
#define _(s) dgettext("openconnect", s)
#else
#define _(s) s
#endif
Expand Down

0 comments on commit 9c3ed3f

Please sign in to comment.