Use gettext_noop() to mark strings. errmsg() perform the

real gettext() later on, so it was called twice before.
This commit is contained in:
Dennis Bjorklund 2004-08-04 21:55:27 +00:00
parent fcbc438727
commit dcbb5b9d2d

View 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;
}