]> granicus.if.org Git - postgresql/commitdiff
Use gettext_noop() to mark strings. errmsg() perform the
authorDennis Bjorklund <db@zigo.dhs.org>
Wed, 4 Aug 2004 21:55:27 +0000 (21:55 +0000)
committerDennis Bjorklund <db@zigo.dhs.org>
Wed, 4 Aug 2004 21:55:27 +0000 (21:55 +0000)
real gettext() later on, so it was called twice before.

src/backend/libpq/auth.c

index 2e23d0e63eeb7d4c6927a355aab9e11aea3b2e02..950d0c6108ef72f56fcaf8063f92c28156c1268a 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.115 2004/08/04 16:05:13 dennis Exp $
+ *       $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.116 2004/08/04 21:55:27 dennis Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -363,32 +363,32 @@ auth_failed(Port *port, int status)
        switch (port->auth_method)
        {
                case uaReject:
-                       errstr = gettext("Rejected host: authentication failed for user \"%s\"");
+                       errstr = gettext_noop("Rejected host: authentication failed for user \"%s\"");
                        break;
                case uaKrb4:
-                       errstr = gettext("Kerberos4 authentication failed for user \"%s\"");
+                       errstr = gettext_noop("Kerberos4 authentication failed for user \"%s\"");
                        break;
                case uaKrb5:
-                       errstr = gettext("Kerberos5 authentication failed for user \"%s\"");
+                       errstr = gettext_noop("Kerberos5 authentication failed for user \"%s\"");
                        break;
                case uaTrust:
-                       errstr = gettext("Trusted authentication failed for user \"%s\"");
+                       errstr = gettext_noop("Trusted authentication failed for user \"%s\"");
                        break;
                case uaIdent:
-                       errstr = gettext("IDENT authentication failed for user \"%s\"");
+                       errstr = gettext_noop("IDENT authentication failed for user \"%s\"");
                        break;
                case uaMD5:
                case uaCrypt:
                case uaPassword:
-                       errstr = gettext("Password authentication failed for user \"%s\"");
+                       errstr = gettext_noop("Password authentication failed for user \"%s\"");
                        break;
 #ifdef USE_PAM
                case uaPAM:
-                       errstr = gettext("PAM authentication failed for user \"%s\"");
+                       errstr = gettext_noop("PAM authentication failed for user \"%s\"");
                        break;
 #endif   /* USE_PAM */
                default :
-                       errstr = gettext("Unknown auth method: authentication failed for user \"%s\"");
+                       errstr = gettext_noop("Unknown auth method: authentication failed for user \"%s\"");
                        break;
        }