diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2018-06-19 00:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2018-06-19 00:00:00 +0000 |
commit | 367a7da23e38e08723f12a8b8f4f715167790f25 (patch) | |
tree | 4c0f4a8fc644142f14dda618e39ee6627e0a2925 /modules/pam_stress | |
parent | e4a1c685a4b6b470194f4f5d1b69e7d9b2b4c63a (diff) | |
download | pam-367a7da23e38e08723f12a8b8f4f715167790f25.tar.gz pam-367a7da23e38e08723f12a8b8f4f715167790f25.tar.bz2 pam-367a7da23e38e08723f12a8b8f4f715167790f25.zip |
pam_stress: do not mark messages for translation
pam_stress is not a regular module that needs to be translated.
Besides that, its messages are not easy to understand
and even harder to translate properly.
* modules/pam_stress/pam_stress.c (pam_sm_chauthtok): Do not mark
messages for translation.
* po/Linux-PAM.pot: Remove pam_stress messages.
Diffstat (limited to 'modules/pam_stress')
-rw-r--r-- | modules/pam_stress/pam_stress.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/pam_stress/pam_stress.c b/modules/pam_stress/pam_stress.c index 87a6e7c6..024455e5 100644 --- a/modules/pam_stress/pam_stress.c +++ b/modules/pam_stress/pam_stress.c @@ -467,7 +467,7 @@ int pam_sm_chauthtok(pam_handle_t *pamh, int flags, } pmsg[0] = &msg[0]; msg[0].msg_style = PAM_TEXT_INFO; - if (asprintf(&txt, _("Changing STRESS password for %s."), + if (asprintf(&txt, "Changing STRESS password for %s.", (const char *)username) < 0) { pam_syslog(pamh, LOG_CRIT, "out of memory"); return PAM_BUF_ERR; @@ -481,10 +481,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); @@ -513,8 +513,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) { |