i18n: archive: mark errors for translation

Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Vasco Almeida 2016-08-08 11:16:00 +00:00 committed by Junio C Hamano
parent 2ff30e67d9
commit 5a36d00cf2

View File

@ -458,11 +458,11 @@ static int parse_archive_args(int argc, const char **argv,
argc = parse_options(argc, argv, NULL, opts, archive_usage, 0);
if (remote)
die("Unexpected option --remote");
die(_("Unexpected option --remote"));
if (exec)
die("Option --exec can only be used together with --remote");
die(_("Option --exec can only be used together with --remote"));
if (output)
die("Unexpected option --output");
die(_("Unexpected option --output"));
if (!base)
base = "";
@ -484,14 +484,14 @@ static int parse_archive_args(int argc, const char **argv,
usage_with_options(archive_usage, opts);
*ar = lookup_archiver(format);
if (!*ar || (is_remote && !((*ar)->flags & ARCHIVER_REMOTE)))
die("Unknown archive format '%s'", format);
die(_("Unknown archive format '%s'"), format);
args->compression_level = Z_DEFAULT_COMPRESSION;
if (compression_level != -1) {
if ((*ar)->flags & ARCHIVER_WANT_COMPRESSION_LEVELS)
args->compression_level = compression_level;
else {
die("Argument not supported for format '%s': -%d",
die(_("Argument not supported for format '%s': -%d"),
format, compression_level);
}
}