i18n: archive: mark errors for translation

Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Vasco Almeida committed Aug 8, 2016 at 11:16 UTC 5a36d00cf2e06e6cc19cb285393c63260913263f
1 file changed +5 -5
archive.c
+5 -5
@@ -458,11 +458,11 @@ static int parse_archive_args(int argc, const char **argv,
458 argc = parse_options(argc, argv, NULL, opts, archive_usage, 0);
459
460 if (remote)
461 - die("Unexpected option --remote");
461 + die(_("Unexpected option --remote"));
462 if (exec)
463 - die("Option --exec can only be used together with --remote");
463 + die(_("Option --exec can only be used together with --remote"));
464 if (output)
465 - die("Unexpected option --output");
465 + die(_("Unexpected option --output"));
466
467 if (!base)
468 base = "";
@@ -484,14 +484,14 @@ static int parse_archive_args(int argc, const char **argv,
484 usage_with_options(archive_usage, opts);
485 *ar = lookup_archiver(format);
486 if (!*ar || (is_remote && !((*ar)->flags & ARCHIVER_REMOTE)))
487 - die("Unknown archive format '%s'", format);
487 + die(_("Unknown archive format '%s'"), format);
488
489 args->compression_level = Z_DEFAULT_COMPRESSION;
490 if (compression_level != -1) {
491 if ((*ar)->flags & ARCHIVER_WANT_COMPRESSION_LEVELS)
492 args->compression_level = compression_level;
493 else {
494 - die("Argument not supported for format '%s': -%d",
494 + die(_("Argument not supported for format '%s': -%d"),
495 format, compression_level);
496 }
497 }