aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2011-08-17 10:52:35 +0300
committerPeter Eisentraut <peter_e@gmx.net>2011-08-17 10:52:35 +0300
commit7f699804b12e480a07727472b9b8cf3886dbb897 (patch)
tree6e8ff2252290ba1b7cd1777f2dee500e83842e45 /src
parent1368409034f3d5280d7af6a0f59ab8bb96b07edc (diff)
downloadpostgresql-7f699804b12e480a07727472b9b8cf3886dbb897.tar.gz
postgresql-7f699804b12e480a07727472b9b8cf3886dbb897.zip
Move \r out of translatable strings
The translation tools are very unhappy about seeing \r in translatable strings, so move it to a separate fprintf call.
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_basebackup/pg_basebackup.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c
index 13f2519d48f..5c62be576ee 100644
--- a/src/bin/pg_basebackup/pg_basebackup.c
+++ b/src/bin/pg_basebackup/pg_basebackup.c
@@ -236,23 +236,25 @@ progress_report(int tablespacenum, const char *filename)
* call)
*/
fprintf(stderr,
- ngettext("%s/%s kB (100%%), %d/%d tablespace %35s\r",
- "%s/%s kB (100%%), %d/%d tablespaces %35s\r",
+ ngettext("%s/%s kB (100%%), %d/%d tablespace %35s",
+ "%s/%s kB (100%%), %d/%d tablespaces %35s",
tablespacecount),
totaldone_str, totalsize_str, tablespacenum, tablespacecount, "");
else
fprintf(stderr,
- ngettext("%s/%s kB (%d%%), %d/%d tablespace (%-30.30s)\r",
- "%s/%s kB (%d%%), %d/%d tablespaces (%-30.30s)\r",
+ ngettext("%s/%s kB (%d%%), %d/%d tablespace (%-30.30s)",
+ "%s/%s kB (%d%%), %d/%d tablespaces (%-30.30s)",
tablespacecount),
totaldone_str, totalsize_str, percent, tablespacenum, tablespacecount, filename);
}
else
fprintf(stderr,
- ngettext("%s/%s kB (%d%%), %d/%d tablespace\r",
- "%s/%s kB (%d%%), %d/%d tablespaces\r",
+ ngettext("%s/%s kB (%d%%), %d/%d tablespace",
+ "%s/%s kB (%d%%), %d/%d tablespaces",
tablespacecount),
totaldone_str, totalsize_str, percent, tablespacenum, tablespacecount);
+
+ fprintf(stderr, "\r");
}