]> granicus.if.org Git - linux-pam/commitdiff
pam_stress: do not mark messages for translation
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 19 Jun 2018 00:00:00 +0000 (00:00 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 19 Jun 2018 00:00:00 +0000 (00:00 +0000)
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.

modules/pam_stress/pam_stress.c
po/Linux-PAM.pot

index 87a6e7c6d39e6b54ba22fd534af739907506692c..024455e598beeb073278107ff5b59f2e114f7022 100644 (file)
@@ -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) {
index 9082a4c7a837ff5a5409f8fad79dcebaebf7c208..74778010883e180018699fb881f5a27c78257da4 100644 (file)
@@ -440,23 +440,6 @@ msgstr ""
 msgid "login: failure forking: %m"
 msgstr ""
 
-#: modules/pam_stress/pam_stress.c:470
-#, c-format
-msgid "Changing STRESS password for %s."
-msgstr ""
-
-#: modules/pam_stress/pam_stress.c:484
-msgid "Enter new STRESS password: "
-msgstr ""
-
-#: modules/pam_stress/pam_stress.c:487
-msgid "Retype new STRESS password: "
-msgstr ""
-
-#: modules/pam_stress/pam_stress.c:516
-msgid "Verification mis-typed; password unchanged"
-msgstr ""
-
 #: modules/pam_tally/pam_tally.c:541 modules/pam_tally2/pam_tally2.c:597
 #, c-format
 msgid "Account temporary locked (%ld seconds left)"