Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfa2afcf

Browse files
committed
Add missing gettext calls around some strings. Also remove quotes around the
%s that they expand to, per comment from Tom.
1 parent1bb257f commitfa2afcf

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

‎src/backend/libpq/hba.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.184 2009/03/25 14:12:02 petere Exp $
13+
* $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.185 2009/04/15 21:42:50 alvherre Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -578,8 +578,9 @@ check_db(const char *dbname, const char *role, char *param_str)
578578
#defineINVALID_AUTH_OPTION(optname,validmethods) do {\
579579
ereport(LOG, \
580580
(errcode(ERRCODE_CONFIG_FILE_ERROR), \
581-
errmsg("authentication option \"%s\" is only valid for authentication methods \"%s\"", \
582-
optname, validmethods), \
581+
/* translator: the second %s is a list of auth methods */ \
582+
errmsg("authentication option \"%s\" is only valid for authentication methods %s", \
583+
optname,_(validmethods)), \
583584
errcontext("line %d of configuration file \"%s\"", \
584585
line_num,HbaFileName))); \
585586
return false; \
@@ -952,7 +953,7 @@ parse_hba_line(List *line, int line_num, HbaLine *parsedline)
952953
parsedline->auth_method!=uaGSS&&
953954
parsedline->auth_method!=uaSSPI&&
954955
parsedline->auth_method!=uaCert)
955-
INVALID_AUTH_OPTION("map","ident, krb5, gssapi, sspi and cert");
956+
INVALID_AUTH_OPTION("map",gettext_noop("ident, krb5, gssapi, sspi and cert"));
956957
parsedline->usermap=pstrdup(c);
957958
}
958959
elseif (strcmp(token,"clientcert")==0)
@@ -1050,15 +1051,15 @@ parse_hba_line(List *line, int line_num, HbaLine *parsedline)
10501051
if (parsedline->auth_method!=uaKrb5&&
10511052
parsedline->auth_method!=uaGSS&&
10521053
parsedline->auth_method!=uaSSPI)
1053-
INVALID_AUTH_OPTION("krb_realm","krb5, gssapi and sspi");
1054+
INVALID_AUTH_OPTION("krb_realm",gettext_noop("krb5, gssapi and sspi"));
10541055
parsedline->krb_realm=pstrdup(c);
10551056
}
10561057
elseif (strcmp(token,"include_realm")==0)
10571058
{
10581059
if (parsedline->auth_method!=uaKrb5&&
10591060
parsedline->auth_method!=uaGSS&&
10601061
parsedline->auth_method!=uaSSPI)
1061-
INVALID_AUTH_OPTION("include_realm","krb5, gssapi and sspi");
1062+
INVALID_AUTH_OPTION("include_realm",gettext_noop("krb5, gssapi and sspi"));
10621063
if (strcmp(c,"1")==0)
10631064
parsedline->include_realm= true;
10641065
else

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp