summaryrefslogtreecommitdiffstats
path: root/sss_client/pam_sss.c
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-05-21 14:56:22 -0400
committerSimo Sorce <ssorce@redhat.com>2009-05-26 14:37:50 -0400
commitb4f46c6ecf529ed8115fb4d3664a80c4c98f8c52 (patch)
tree6f4e28958afaf5eab6644f01f1f49ec4f1d8908b /sss_client/pam_sss.c
parenta19669c6c3bd52a86c4c52404f5df78db40495e1 (diff)
downloadsssd_unused-b4f46c6ecf529ed8115fb4d3664a80c4c98f8c52.tar.gz
sssd_unused-b4f46c6ecf529ed8115fb4d3664a80c4c98f8c52.tar.xz
sssd_unused-b4f46c6ecf529ed8115fb4d3664a80c4c98f8c52.zip
Initial gettext framework for sss_clients
Diffstat (limited to 'sss_client/pam_sss.c')
-rw-r--r--sss_client/pam_sss.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sss_client/pam_sss.c b/sss_client/pam_sss.c
index caf164b6..2d02f6fe 100644
--- a/sss_client/pam_sss.c
+++ b/sss_client/pam_sss.c
@@ -17,6 +17,10 @@
#include "sss_cli.h"
+#include <libintl.h>
+#define _(STRING) dgettext (PACKAGE, STRING)
+#include "config.h"
+
#define FLAGS_USE_FIRST_PASS (1 << 0)
#define FLAGS_FORWARD_PASS (1 << 1)
#define FLAGS_USE_AUTHTOK (1 << 2)
@@ -337,7 +341,7 @@ static int do_pam_conversation(pam_handle_t *pamh, const int msg_style,
*answer = NULL;
}
ret = do_pam_conversation(pamh, PAM_ERROR_MSG,
- "Passwords do not match", NULL,
+ _("Passwords do not match"), NULL,
NULL);
if (ret != PAM_SUCCESS) {
D(("do_pam_conversation failed."));
@@ -558,6 +562,8 @@ static int pam_sss(int task, pam_handle_t *pamh, int pam_flags, int argc,
uint32_t flags = 0;
char *answer;
+ bindtextdomain(PACKAGE, LOCALEDIR);
+
D(("Hello pam_sssd: %d", task));
for (; argc-- > 0; ++argv) {