From 9c3ed3f225e981df07e75688b309960ddb81b7fc Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Thu, 22 Sep 2011 23:01:00 +0100 Subject: [PATCH] Use dgettext() so the domain is always correct even in libopenconnect Signed-off-by: David Woodhouse --- main.c | 1 - openconnect-internal.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/main.c b/main.c index 866ef02..21d9ffc 100644 --- a/main.c +++ b/main.c @@ -238,7 +238,6 @@ int main(int argc, char **argv) #ifdef ENABLE_NLS setlocale(LC_ALL, ""); - textdomain("openconnect"); #endif openconnect_init_openssl(); diff --git a/openconnect-internal.h b/openconnect-internal.h index 4e4992c..e7f1dfb 100644 --- a/openconnect-internal.h +++ b/openconnect-internal.h @@ -41,7 +41,7 @@ #endif #ifdef ENABLE_NLS #include -#define _(s) gettext(s) +#define _(s) dgettext("openconnect", s) #else #define _(s) s #endif -- 2.7.4