From 53f5e9afa466b0b1517cbac208ed01ab8f4b6274 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 13 Nov 2014 10:29:37 -0500 Subject: libnm*: fix library gettext usage Libraries need to include , not , so that _() will get defined to "dgettext (GETTEXT_DOMAIN, string)" rather than "gettext (string)" (which will use the program's default domain, which works fine for programs in the NetworkManager tree, but not for external users). Likewise, we need to call bindtextdomain() so that gettext can find the translations if the library is installed in a different prefix from the program using it (and bind_textdomain_codeset(), so it will know the translations are in UTF-8 even if the locale isn't). (The fact that no one noticed this was broken before is because the libraries didn't really start returning useful translated strings much until 0.9.10, and none of the out-of-tree clients have been updated to actually show those strings to users yet.) --- libnm-core/nm-setting-wireless-security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libnm-core/nm-setting-wireless-security.c') diff --git a/libnm-core/nm-setting-wireless-security.c b/libnm-core/nm-setting-wireless-security.c index 05eb0c4705..9a7b5a591d 100644 --- a/libnm-core/nm-setting-wireless-security.c +++ b/libnm-core/nm-setting-wireless-security.c @@ -23,7 +23,7 @@ #include "config.h" #include -#include +#include #include "nm-setting-wireless-security.h" #include "nm-setting-8021x.h" -- cgit v1.2.1