pam_panic.c should also be able to have translated strings

This commit is contained in:
Bandie 2018-09-30 01:35:25 +02:00
parent e37472d6c0
commit 09fa4f648f
Signed by: Bandie
GPG Key ID: C1E133BC65A822DD
1 changed files with 4 additions and 0 deletions

View File

@ -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;