mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
Use _() macro consistently rather than gettext(). Add translation
macros around strings that were missing them.
This commit is contained in:
@ -23,7 +23,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-misc.c,v 1.112 2004/12/31 22:03:50 pgsql Exp $
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-misc.c,v 1.113 2005/02/22 04:42:20 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -85,7 +85,7 @@ pqGetc(char *result, PGconn *conn)
|
||||
*result = conn->inBuffer[conn->inCursor++];
|
||||
|
||||
if (conn->Pfdebug)
|
||||
fprintf(conn->Pfdebug, "From backend> %c\n", *result);
|
||||
fprintf(conn->Pfdebug, libpq_gettext("From backend> %c\n"), *result);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -101,7 +101,7 @@ pqPutc(char c, PGconn *conn)
|
||||
return EOF;
|
||||
|
||||
if (conn->Pfdebug)
|
||||
fprintf(conn->Pfdebug, "To backend> %c\n", c);
|
||||
fprintf(conn->Pfdebug, libpq_gettext("To backend> %c\n"), c);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -137,7 +137,7 @@ pqGets(PQExpBuffer buf, PGconn *conn)
|
||||
conn->inCursor = ++inCursor;
|
||||
|
||||
if (conn->Pfdebug)
|
||||
fprintf(conn->Pfdebug, "From backend> \"%s\"\n",
|
||||
fprintf(conn->Pfdebug, libpq_gettext("From backend> \"%s\"\n"),
|
||||
buf->data);
|
||||
|
||||
return 0;
|
||||
@ -154,7 +154,7 @@ pqPuts(const char *s, PGconn *conn)
|
||||
return EOF;
|
||||
|
||||
if (conn->Pfdebug)
|
||||
fprintf(conn->Pfdebug, "To backend> '%s'\n", s);
|
||||
fprintf(conn->Pfdebug, libpq_gettext("To backend> '%s'\n"), s);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -175,7 +175,7 @@ pqGetnchar(char *s, size_t len, PGconn *conn)
|
||||
conn->inCursor += len;
|
||||
|
||||
if (conn->Pfdebug)
|
||||
fprintf(conn->Pfdebug, "From backend (%lu)> %.*s\n", (unsigned long) len, (int) len, s);
|
||||
fprintf(conn->Pfdebug, libpq_gettext("From backend (%lu)> %.*s\n"), (unsigned long) len, (int) len, s);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -191,7 +191,7 @@ pqPutnchar(const char *s, size_t len, PGconn *conn)
|
||||
return EOF;
|
||||
|
||||
if (conn->Pfdebug)
|
||||
fprintf(conn->Pfdebug, "To backend> %.*s\n", (int) len, s);
|
||||
fprintf(conn->Pfdebug, libpq_gettext("To backend> %.*s\n"), (int) len, s);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -231,7 +231,7 @@ pqGetInt(int *result, size_t bytes, PGconn *conn)
|
||||
}
|
||||
|
||||
if (conn->Pfdebug)
|
||||
fprintf(conn->Pfdebug, "From backend (#%lu)> %d\n", (unsigned long) bytes, *result);
|
||||
fprintf(conn->Pfdebug, libpq_gettext("From backend (#%lu)> %d\n"), (unsigned long) bytes, *result);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -267,7 +267,7 @@ pqPutInt(int value, size_t bytes, PGconn *conn)
|
||||
}
|
||||
|
||||
if (conn->Pfdebug)
|
||||
fprintf(conn->Pfdebug, "To backend (%lu#)> %d\n", (unsigned long) bytes, value);
|
||||
fprintf(conn->Pfdebug, libpq_gettext("To backend (%lu#)> %d\n"), (unsigned long) bytes, value);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -455,7 +455,7 @@ pqPutMsgStart(char msg_type, bool force_len, PGconn *conn)
|
||||
/* length word, if needed, will be filled in by pqPutMsgEnd */
|
||||
|
||||
if (conn->Pfdebug)
|
||||
fprintf(conn->Pfdebug, "To backend> Msg %c\n",
|
||||
fprintf(conn->Pfdebug, libpq_gettext("To backend> Msg %c\n"),
|
||||
msg_type ? msg_type : ' ');
|
||||
|
||||
return 0;
|
||||
@ -493,7 +493,7 @@ int
|
||||
pqPutMsgEnd(PGconn *conn)
|
||||
{
|
||||
if (conn->Pfdebug)
|
||||
fprintf(conn->Pfdebug, "To backend> Msg complete, length %u\n",
|
||||
fprintf(conn->Pfdebug, libpq_gettext("To backend> Msg complete, length %u\n"),
|
||||
conn->outMsgEnd - conn->outCount);
|
||||
|
||||
/* Fill in length word if needed */
|
||||
|
Reference in New Issue
Block a user