Skip to content

Commit 5a36d00

Browse files
vascoolgitster
authored andcommitted
i18n: archive: mark errors for translation
Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 2ff30e6 commit 5a36d00

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

archive.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -458,11 +458,11 @@ static int parse_archive_args(int argc, const char **argv,
458458
argc = parse_options(argc, argv, NULL, opts, archive_usage, 0);
459459

460460
if (remote)
461-
die("Unexpected option --remote");
461+
die(_("Unexpected option --remote"));
462462
if (exec)
463-
die("Option --exec can only be used together with --remote");
463+
die(_("Option --exec can only be used together with --remote"));
464464
if (output)
465-
die("Unexpected option --output");
465+
die(_("Unexpected option --output"));
466466

467467
if (!base)
468468
base = "";
@@ -484,14 +484,14 @@ static int parse_archive_args(int argc, const char **argv,
484484
usage_with_options(archive_usage, opts);
485485
*ar = lookup_archiver(format);
486486
if (!*ar || (is_remote && !((*ar)->flags & ARCHIVER_REMOTE)))
487-
die("Unknown archive format '%s'", format);
487+
die(_("Unknown archive format '%s'"), format);
488488

489489
args->compression_level = Z_DEFAULT_COMPRESSION;
490490
if (compression_level != -1) {
491491
if ((*ar)->flags & ARCHIVER_WANT_COMPRESSION_LEVELS)
492492
args->compression_level = compression_level;
493493
else {
494-
die("Argument not supported for format '%s': -%d",
494+
die(_("Argument not supported for format '%s': -%d"),
495495
format, compression_level);
496496
}
497497
}

0 commit comments

Comments
 (0)