]> granicus.if.org Git - linux-pam/commitdiff
pam_tally, pam_tally2: fix grammar and spelling (#54)
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 22 Jun 2018 10:21:22 +0000 (10:21 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 22 Jun 2018 10:21:22 +0000 (10:21 +0000)
* modules/pam_tally/pam_tally.c (tally_check): Replace
"Account is temporary locked" with "The account is temporarily locked"
in translated messages.
* modules/pam_tally2/pam_tally2.c (tally_check): Likewise.
* po/Linux-PAM.pot: Update pam_tally and pam_tally2 messages.

Closes: https://github.com/linux-pam/linux-pam/issues/54
modules/pam_tally/pam_tally.c
modules/pam_tally2/pam_tally2.c
po/Linux-PAM.pot

index 0e51693cdc694baebe82891c7e1808a32ee13c72..aa3b6ecdbd9d85b2893966c18a06b8d24459261f 100644 (file)
@@ -538,7 +538,7 @@ tally_check (time_t oldtime, pam_handle_t *pamh, uid_t uid,
        {
          if (!(opts->ctrl & OPT_SILENT))
               pam_info (pamh,
-                        _("Account is temporary locked (%ld seconds left)."),
+                        _("The account is temporarily locked (%ld seconds left)."),
                         oldtime+lock_time-time(NULL));
 
          if (!(opts->ctrl & OPT_NOLOGNOTICE))
@@ -563,7 +563,7 @@ tally_check (time_t oldtime, pam_handle_t *pamh, uid_t uid,
         ( ((opts->ctrl & OPT_DENY_ROOT) || uid) )    /* even_deny stops uid check    */
         ) {
        if (!(opts->ctrl & OPT_SILENT))
-         pam_info (pamh, _("Account is locked due to %u failed logins."),
+         pam_info (pamh, _("The account is locked due to %u failed logins."),
                    (unsigned int)tally);
 
        if (!(opts->ctrl & OPT_NOLOGNOTICE))
index 9a24d881eb49a7fedc85dab10d677c54c5830d4b..984edf6ad78f975d86809484589a0de664375cd4 100644 (file)
@@ -577,7 +577,7 @@ tally_check (tally_t oldcnt, time_t oldtime, pam_handle_t *pamh, uid_t uid,
 #endif
 
         if (!(opts->ctrl & OPT_QUIET)) {
-            pam_info(pamh, _("Account is locked due to %u failed logins."),
+            pam_info(pamh, _("The account is locked due to %u failed logins."),
                    (unsigned int)tally->fail_cnt);
         }
        loglevel = LOG_NOTICE;
@@ -594,7 +594,7 @@ tally_check (tally_t oldcnt, time_t oldtime, pam_handle_t *pamh, uid_t uid,
            tally->fail_time = oldtime;
 
            if (!(opts->ctrl & OPT_QUIET)) {
-               pam_info(pamh, _("Account is temporary locked (%ld seconds left)."),
+               pam_info(pamh, _("The account is temporarily locked (%ld seconds left)."),
                          oldtime+opts->lock_time-time(NULL));
             }
            if (!(opts->ctrl & OPT_NOLOGNOTICE)) {
index 25a597881dbf1bb1b2c81c9605e6dc1564d7c01c..91178042289088fd609874c6c1ae249aba965672 100644 (file)
@@ -442,12 +442,12 @@ msgstr ""
 
 #: modules/pam_tally/pam_tally.c:541 modules/pam_tally2/pam_tally2.c:597
 #, c-format
-msgid "Account is temporary locked (%ld seconds left)."
+msgid "The account is temporarily locked (%ld seconds left)."
 msgstr ""
 
 #: modules/pam_tally/pam_tally.c:566 modules/pam_tally2/pam_tally2.c:580
 #, c-format
-msgid "Account is locked due to %u failed logins."
+msgid "The account is locked due to %u failed logins."
 msgstr ""
 
 #: modules/pam_tally/pam_tally.c:750 modules/pam_tally2/pam_tally2.c:863