From 3304eb34c14c7f369c1ace0f39c3df47724caf54 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Wed, 20 Jul 2005 14:52:38 +0000 Subject: Relevant BUGIDs: none Purpose of commit: new feature Commit summary: --------------- Mark message strings for translation --- modules/pam_unix/pam_unix_passwd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/pam_unix/pam_unix_passwd.c') diff --git a/modules/pam_unix/pam_unix_passwd.c b/modules/pam_unix/pam_unix_passwd.c index f1f87a2c..480dc337 100644 --- a/modules/pam_unix/pam_unix_passwd.c +++ b/modules/pam_unix/pam_unix_passwd.c @@ -815,7 +815,7 @@ static int _do_setpass(pam_handle_t* pamh, const char *forwho, clnt_destroy(clnt); if (err || status) { _make_remark(pamh, ctrl, PAM_TEXT_INFO, - "NIS password could not be changed."); + _("NIS password could not be changed.")); retval = PAM_TRY_AGAIN; } #ifdef DEBUG @@ -959,7 +959,7 @@ static int _pam_unix_approve_pass(pam_handle_t * pamh _log_err(LOG_DEBUG, pamh, "bad authentication token"); } _make_remark(pamh, ctrl, PAM_ERROR_MSG, pass_new == NULL ? - "No password supplied" : "Password unchanged"); + _("No password supplied") : _("Password unchanged")); return PAM_AUTHTOK_ERR; } /* @@ -980,12 +980,12 @@ static int _pam_unix_approve_pass(pam_handle_t * pamh D(("called cracklib [%s]", remark)); #else if (strlen(pass_new) < 6) - remark = "You must choose a longer password"; + remark = _("You must choose a longer password"); D(("length check [%s]", remark)); #endif if (on(UNIX_REMEMBER_PASSWD, ctrl)) { if ((retval = check_old_password(user, pass_new)) == PAM_AUTHTOK_ERR) - remark = "Password has been already used. Choose another."; + remark = _("Password has been already used. Choose another."); if (retval == PAM_ABORT) { _log_err(LOG_ERR, pamh, "can't open %s file to check old passwords", OLD_PASSWORDS_FILE); @@ -1144,7 +1144,7 @@ PAM_EXTERN int pam_sm_chauthtok(pam_handle_t * pamh, int flags, if (retval == PAM_AUTHTOK_ERR) { if (off(UNIX__IAMROOT, ctrl)) _make_remark(pamh, ctrl, PAM_ERROR_MSG, - "You must wait longer to change your password"); + _("You must wait longer to change your password")); else retval = PAM_SUCCESS; } -- cgit v1.2.3