mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-07-28 06:52:37 +00:00
Use ngettext where appropriate.
This commit is contained in:
+17
-4
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user