From: Dennis Bjorklund Date: Wed, 4 Aug 2004 21:55:27 +0000 (+0000) Subject: Use gettext_noop() to mark strings. errmsg() perform the X-Git-Tag: REL8_0_0BETA1~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dcbb5b9d2dc117a81050a8b750a0f57a8877d2a7;p=postgresql Use gettext_noop() to mark strings. errmsg() perform the real gettext() later on, so it was called twice before. --- diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c index 2e23d0e63e..950d0c6108 100644 --- a/src/backend/libpq/auth.c +++ b/src/backend/libpq/auth.c @@ -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; }