mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	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.
This commit is contained in:
		@@ -236,23 +236,25 @@ progress_report(int tablespacenum, const char *filename)
 | 
				
			|||||||
			 * call)
 | 
								 * call)
 | 
				
			||||||
			 */
 | 
								 */
 | 
				
			||||||
			fprintf(stderr,
 | 
								fprintf(stderr,
 | 
				
			||||||
					ngettext("%s/%s kB (100%%), %d/%d tablespace %35s\r",
 | 
										ngettext("%s/%s kB (100%%), %d/%d tablespace %35s",
 | 
				
			||||||
							 "%s/%s kB (100%%), %d/%d tablespaces %35s\r",
 | 
												 "%s/%s kB (100%%), %d/%d tablespaces %35s",
 | 
				
			||||||
							 tablespacecount),
 | 
												 tablespacecount),
 | 
				
			||||||
					totaldone_str, totalsize_str, tablespacenum, tablespacecount, "");
 | 
										totaldone_str, totalsize_str, tablespacenum, tablespacecount, "");
 | 
				
			||||||
		else
 | 
							else
 | 
				
			||||||
			fprintf(stderr,
 | 
								fprintf(stderr,
 | 
				
			||||||
					ngettext("%s/%s kB (%d%%), %d/%d tablespace (%-30.30s)\r",
 | 
										ngettext("%s/%s kB (%d%%), %d/%d tablespace (%-30.30s)",
 | 
				
			||||||
							 "%s/%s kB (%d%%), %d/%d tablespaces (%-30.30s)\r",
 | 
												 "%s/%s kB (%d%%), %d/%d tablespaces (%-30.30s)",
 | 
				
			||||||
							 tablespacecount),
 | 
												 tablespacecount),
 | 
				
			||||||
					totaldone_str, totalsize_str, percent, tablespacenum, tablespacecount, filename);
 | 
										totaldone_str, totalsize_str, percent, tablespacenum, tablespacecount, filename);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
		fprintf(stderr,
 | 
							fprintf(stderr,
 | 
				
			||||||
				ngettext("%s/%s kB (%d%%), %d/%d tablespace\r",
 | 
									ngettext("%s/%s kB (%d%%), %d/%d tablespace",
 | 
				
			||||||
						 "%s/%s kB (%d%%), %d/%d tablespaces\r",
 | 
											 "%s/%s kB (%d%%), %d/%d tablespaces",
 | 
				
			||||||
						 tablespacecount),
 | 
											 tablespacecount),
 | 
				
			||||||
				totaldone_str, totalsize_str, percent, tablespacenum, tablespacecount);
 | 
									totaldone_str, totalsize_str, percent, tablespacenum, tablespacecount);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						fprintf(stderr, "\r");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user