diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2005-07-20 14:52:38 +0000 |
---|---|---|
committer | Thorsten Kukuk <kukuk@thkukuk.de> | 2005-07-20 14:52:38 +0000 |
commit | 3304eb34c14c7f369c1ace0f39c3df47724caf54 (patch) | |
tree | 05475d811bae41022e65af27b1b2ffebee026c1e /modules/pam_stress/pam_stress.c | |
parent | 6db0f946028a72a4551c2967cbfe9c1e3a82daa8 (diff) | |
download | pam-3304eb34c14c7f369c1ace0f39c3df47724caf54.tar.gz pam-3304eb34c14c7f369c1ace0f39c3df47724caf54.tar.bz2 pam-3304eb34c14c7f369c1ace0f39c3df47724caf54.zip |
Relevant BUGIDs: none
Purpose of commit: new feature
Commit summary:
---------------
Mark message strings for translation
Diffstat (limited to 'modules/pam_stress/pam_stress.c')
-rw-r--r-- | modules/pam_stress/pam_stress.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/pam_stress/pam_stress.c b/modules/pam_stress/pam_stress.c index 0365f443..f4edf60e 100644 --- a/modules/pam_stress/pam_stress.c +++ b/modules/pam_stress/pam_stress.c @@ -478,8 +478,8 @@ int pam_sm_chauthtok(pam_handle_t *pamh, int flags, } pmsg[0] = &msg[0]; msg[0].msg_style = PAM_TEXT_INFO; -#define _LOCAL_STRESS_COMMENT "Changing STRESS password for " - txt = (char *) malloc(sizeof(_LOCAL_STRESS_COMMENT) +#define _LOCAL_STRESS_COMMENT _("Changing STRESS password for ") + txt = (char *) malloc(strlen(_LOCAL_STRESS_COMMENT) +strlen(username)+1); strcpy(txt, _LOCAL_STRESS_COMMENT); #undef _LOCAL_STRESS_COMMENT @@ -492,10 +492,10 @@ int pam_sm_chauthtok(pam_handle_t *pamh, int flags, pmsg[i] = &msg[i]; msg[i].msg_style = PAM_PROMPT_ECHO_OFF; - msg[i++].msg = "Enter new STRESS password: "; + msg[i++].msg = _("Enter new STRESS password: "); pmsg[i] = &msg[i]; msg[i].msg_style = PAM_PROMPT_ECHO_OFF; - msg[i++].msg = "Retype new STRESS password: "; + msg[i++].msg = _("Retype new STRESS password: "); resp = NULL; retval = converse(pamh,i,pmsg,&resp); @@ -523,8 +523,8 @@ int pam_sm_chauthtok(pam_handle_t *pamh, int flags, if (!(flags & PAM_SILENT) && !(ctrl & PAM_ST_NO_WARN)) { pmsg[0] = &msg[0]; msg[0].msg_style = PAM_ERROR_MSG; - msg[0].msg = "Verification mis-typed; " - "password unchanged"; + msg[0].msg = _("Verification mis-typed; " + "password unchanged"); resp = NULL; (void) converse(pamh,1,pmsg,&resp); if (resp) { |