Skip to content

Commit a54a8ad

Browse files
Fix '\r' in translation (#7468)
1 parent 3e75bbd commit a54a8ad

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

po/data.table.pot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2897,7 +2897,7 @@ msgstr ""
28972897
#: fwrite.c:1100
28982898
#, c-format
28992899
msgid ""
2900-
"\rWritten %.1f%% of %<PRId64> rows in %d secs using %d thread. maxBuffUsed=%d"
2900+
"Written %.1f%% of %<PRId64> rows in %d secs using %d thread. maxBuffUsed=%d"
29012901
"%%. ETA %d secs. "
29022902
msgstr ""
29032903

src/fwrite.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,9 +1096,10 @@ void fwriteMain(fwriteMainArgs args)
10961096
if (hasPrinted || ETA >= 2) {
10971097
// # nocov start
10981098
if (verbose && !hasPrinted) DTPRINT("\n"); // # notranslate
1099+
DTPRINT("\r"); // # notranslate
10991100
DTPRINT(Pl_(nth,
1100-
"\rWritten %.1f%% of %"PRId64" rows in %d secs using %d thread. maxBuffUsed=%d%%. ETA %d secs. ",
1101-
"\rWritten %.1f%% of %"PRId64" rows in %d secs using %d threads. maxBuffUsed=%d%%. ETA %d secs. "),
1101+
"Written %.1f%% of %"PRId64" rows in %d secs using %d thread. maxBuffUsed=%d%%. ETA %d secs. ",
1102+
"Written %.1f%% of %"PRId64" rows in %d secs using %d threads. maxBuffUsed=%d%%. ETA %d secs. "),
11021103
(100.0 * end) / args.nrow, args.nrow, (int)(now - startTime), nth, maxBuffUsedPC, ETA); // # nocov
11031104
// TODO: use progress() as in fread
11041105
nextTime = now + 1;

0 commit comments

Comments
 (0)