Use ngettext where appropriate.

This commit is contained in:
Sergey Poznyakoff
2003-09-05 13:24:15 +00:00
parent 99f41a1224
commit 91b2d65e9d
6 changed files with 55 additions and 15 deletions
+17 -4
View File
@@ -1055,8 +1055,15 @@ short_read (ssize_t status)
break;
if (! read_full_records_option)
FATAL_ERROR ((0, 0, _("Unaligned block (%lu bytes) in archive"),
(unsigned long) (record_size - left)));
{
unsigned long rest = record_size - left;
FATAL_ERROR ((0, 0,
ngettext ("Unaligned block (%lu byte) in archive",
"Unaligned block (%lu bytes) in archive",
rest),
rest));
}
/* User warned us about this. Fix up. */
@@ -1069,8 +1076,14 @@ short_read (ssize_t status)
if (!read_full_records_option && verbose_option
&& record_start_block == 0 && status > 0)
WARN ((0, 0, _("Record size = %lu blocks"),
(unsigned long) ((record_size - left) / BLOCKSIZE)));
{
unsigned long rsize = (record_size - left) / BLOCKSIZE;
WARN ((0, 0,
ngettext ("Record size = %lu block",
"Record size = %lu blocks",
rsize),
rsize));
}
record_end = record_start + (record_size - left) / BLOCKSIZE;
records_read++;