diff --git a/src/pam_panic/pam_panic.c b/src/pam_panic/pam_panic.c index 6face42..873c271 100644 --- a/src/pam_panic/pam_panic.c +++ b/src/pam_panic/pam_panic.c @@ -75,6 +75,10 @@ PAM_EXTERN int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, cons int8_t bPoweroff = 0; int8_t bPassword = 0; + // gettext + setlocale(LC_ALL, ""); + bindtextdomain(PACKAGE, LOCALEDIR); + textdomain(PACKAGE); // Regex for checking arguments regex_t regex;