Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c697337

Browse files
committed
Convert some messages to use ngettext().
Author: Euler Taveira de Oliveira <euler@timbira.com>
1 parent 65ffbbf commit c697337

File tree

1 file changed

+31
-11
lines changed

1 file changed

+31
-11
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* by PostgreSQL
1313
*
1414
* IDENTIFICATION
15-
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.535 2009/04/08 19:02:37 heikki Exp $
15+
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.536 2009/05/21 01:08:43 petere Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -7728,7 +7728,9 @@ dumpOpr(Archive *fout, OprInfo *oprinfo)
77287728
ntups = PQntuples(res);
77297729
if (ntups != 1)
77307730
{
7731-
write_msg(NULL, "query returned %d rows instead of one: %s\n",
7731+
write_msg(NULL, ngettext("query returned %d row instead of one: %s\n",
7732+
"query returned %d rows instead of one: %s\n",
7733+
ntups),
77327734
ntups, query->data);
77337735
exit_nicely();
77347736
}
@@ -7976,7 +7978,9 @@ convertTSFunction(Oid funcOid)
79767978
ntups = PQntuples(res);
79777979
if (ntups != 1)
79787980
{
7979-
write_msg(NULL, "query returned %d rows instead of one: %s\n",
7981+
write_msg(NULL, ngettext("query returned %d row instead of one: %s\n",
7982+
"query returned %d rows instead of one: %s\n",
7983+
ntups),
79807984
ntups, query);
79817985
exit_nicely();
79827986
}
@@ -8080,7 +8084,9 @@ dumpOpclass(Archive *fout, OpclassInfo *opcinfo)
80808084
ntups = PQntuples(res);
80818085
if (ntups != 1)
80828086
{
8083-
write_msg(NULL, "query returned %d rows instead of one: %s\n",
8087+
write_msg(NULL, ngettext("query returned %d row instead of one: %s\n",
8088+
"query returned %d rows instead of one: %s\n",
8089+
ntups),
80848090
ntups, query->data);
80858091
exit_nicely();
80868092
}
@@ -8459,7 +8465,9 @@ dumpOpfamily(Archive *fout, OpfamilyInfo *opfinfo)
84598465
ntups = PQntuples(res);
84608466
if (ntups != 1)
84618467
{
8462-
write_msg(NULL, "query returned %d rows instead of one: %s\n",
8468+
write_msg(NULL, ngettext("query returned %d row instead of one: %s\n",
8469+
"query returned %d rows instead of one: %s\n",
8470+
ntups),
84638471
ntups, query->data);
84648472
exit_nicely();
84658473
}
@@ -8633,7 +8641,9 @@ dumpConversion(Archive *fout, ConvInfo *convinfo)
86338641
ntups = PQntuples(res);
86348642
if (ntups != 1)
86358643
{
8636-
write_msg(NULL, "query returned %d rows instead of one: %s\n",
8644+
write_msg(NULL, ngettext("query returned %d row instead of one: %s\n",
8645+
"query returned %d rows instead of one: %s\n",
8646+
ntups),
86378647
ntups, query->data);
86388648
exit_nicely();
86398649
}
@@ -8828,7 +8838,9 @@ dumpAgg(Archive *fout, AggInfo *agginfo)
88288838
ntups = PQntuples(res);
88298839
if (ntups != 1)
88308840
{
8831-
write_msg(NULL, "query returned %d rows instead of one: %s\n",
8841+
write_msg(NULL, ngettext("query returned %d row instead of one: %s\n",
8842+
"query returned %d rows instead of one: %s\n",
8843+
ntups),
88328844
ntups, query->data);
88338845
exit_nicely();
88348846
}
@@ -9053,7 +9065,9 @@ dumpTSDictionary(Archive *fout, TSDictInfo *dictinfo)
90539065
ntups = PQntuples(res);
90549066
if (ntups != 1)
90559067
{
9056-
write_msg(NULL, "query returned %d rows instead of one: %s\n",
9068+
write_msg(NULL, ngettext("query returned %d row instead of one: %s\n",
9069+
"query returned %d rows instead of one: %s\n",
9070+
ntups),
90579071
ntups, query->data);
90589072
exit_nicely();
90599073
}
@@ -9206,7 +9220,9 @@ dumpTSConfig(Archive *fout, TSConfigInfo *cfginfo)
92069220
ntups = PQntuples(res);
92079221
if (ntups != 1)
92089222
{
9209-
write_msg(NULL, "query returned %d rows instead of one: %s\n",
9223+
write_msg(NULL, ngettext("query returned %d row instead of one: %s\n",
9224+
"query returned %d rows instead of one: %s\n",
9225+
ntups),
92109226
ntups, query->data);
92119227
exit_nicely();
92129228
}
@@ -9390,7 +9406,9 @@ dumpForeignServer(Archive *fout, ForeignServerInfo *srvinfo)
93909406
ntups = PQntuples(res);
93919407
if (ntups != 1)
93929408
{
9393-
write_msg(NULL, "query returned %d rows instead of one: %s\n",
9409+
write_msg(NULL, ngettext("query returned %d row instead of one: %s\n",
9410+
"query returned %d rows instead of one: %s\n",
9411+
ntups),
93949412
ntups, query->data);
93959413
exit_nicely();
93969414
}
@@ -11244,7 +11262,9 @@ getFormattedTypeName(Oid oid, OidOptions opts)
1124411262
ntups = PQntuples(res);
1124511263
if (ntups != 1)
1124611264
{
11247-
write_msg(NULL, "query returned %d rows instead of one: %s\n",
11265+
write_msg(NULL, ngettext("query returned %d row instead of one: %s\n",
11266+
"query returned %d rows instead of one: %s\n",
11267+
ntups),
1124811268
ntups, query->data);
1124911269
exit_nicely();
1125011270
}

0 commit comments

Comments
 (0)