diff options
author | Bo Yang <boyang@suse.de> | 2008-10-30 17:53:52 +0800 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-11-13 12:43:58 +0100 |
commit | a8722a190b65ddd4e6e958c6e8b28b268531d130 (patch) | |
tree | e6ab1d49079ab5182de95ceb163f2c5db6b8b4ea /source3/nsswitch/pam_winbind.h | |
parent | 5e25f5f4f2b5b8dfd31206ebdc295c00870effe9 (diff) | |
download | samba-a8722a190b65ddd4e6e958c6e8b28b268531d130.tar.gz samba-a8722a190b65ddd4e6e958c6e8b28b268531d130.tar.bz2 samba-a8722a190b65ddd4e6e958c6e8b28b268531d130.zip |
i18n/l10n pam_winbind
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/nsswitch/pam_winbind.h')
-rw-r--r-- | source3/nsswitch/pam_winbind.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/source3/nsswitch/pam_winbind.h b/source3/nsswitch/pam_winbind.h index cb6f450ccb..0656f5972e 100644 --- a/source3/nsswitch/pam_winbind.h +++ b/source3/nsswitch/pam_winbind.h @@ -9,6 +9,7 @@ #include "system/time.h" #include <talloc.h> #include "libwbclient/wbclient.h" +#include "localedir.h" #define MODULE_NAME "pam_winbind" #define PAM_SM_AUTH @@ -22,6 +23,10 @@ #include <iniparser.h> +#ifdef HAVE_LIBINTL_H +#include <libintl.h> +#endif + #ifndef LINUX /* Solaris always uses dynamic pam modules */ @@ -101,12 +106,20 @@ do { \ #define WINBIND_WARN_PWD_EXPIRE 0x00002000 #define WINBIND_MKHOMEDIR 0x00004000 +#if defined(HAVE_GETTEXT) && !defined(__LCLINT__) +#define _(string) dgettext(MODULE_NAME, string) +#else +#define _(string) string +#endif + +#define N_(string) string + /* * here is the string to inform the user that the new passwords they * typed were not the same. */ -#define MISTYPED_PASS "Sorry, passwords do not match" +#define MISTYPED_PASS _("Sorry, passwords do not match") #define on(x, y) (x & y) #define off(x, y) (!(x & y)) |