i18n: archive: mark parseopt strings for translation

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Nguyễn Thái Ngọc Duy 2012-08-20 19:31:51 +07:00 committed by Junio C Hamano
parent a054e04912
commit 0012a3873b
2 changed files with 25 additions and 25 deletions

View File

@ -7,10 +7,10 @@
#include "unpack-trees.h" #include "unpack-trees.h"
static char const * const archive_usage[] = { static char const * const archive_usage[] = {
"git archive [options] <tree-ish> [<path>...]", N_("git archive [options] <tree-ish> [<path>...]"),
"git archive --list", N_("git archive --list"),
"git archive --remote <repo> [--exec <cmd>] [options] <tree-ish> [<path>...]", N_("git archive --remote <repo> [--exec <cmd>] [options] <tree-ish> [<path>...]"),
"git archive --remote <repo> [--exec <cmd>] --list", N_("git archive --remote <repo> [--exec <cmd>] --list"),
NULL NULL
}; };
@ -319,16 +319,16 @@ static int parse_archive_args(int argc, const char **argv,
int worktree_attributes = 0; int worktree_attributes = 0;
struct option opts[] = { struct option opts[] = {
OPT_GROUP(""), OPT_GROUP(""),
OPT_STRING(0, "format", &format, "fmt", "archive format"), OPT_STRING(0, "format", &format, N_("fmt"), N_("archive format")),
OPT_STRING(0, "prefix", &base, "prefix", OPT_STRING(0, "prefix", &base, N_("prefix"),
"prepend prefix to each pathname in the archive"), N_("prepend prefix to each pathname in the archive")),
OPT_STRING('o', "output", &output, "file", OPT_STRING('o', "output", &output, N_("file"),
"write the archive to this file"), N_("write the archive to this file")),
OPT_BOOL(0, "worktree-attributes", &worktree_attributes, OPT_BOOL(0, "worktree-attributes", &worktree_attributes,
"read .gitattributes in working directory"), N_("read .gitattributes in working directory")),
OPT__VERBOSE(&verbose, "report archived files on stderr"), OPT__VERBOSE(&verbose, N_("report archived files on stderr")),
OPT__COMPR('0', &compression_level, "store only", 0), OPT__COMPR('0', &compression_level, N_("store only"), 0),
OPT__COMPR('1', &compression_level, "compress faster", 1), OPT__COMPR('1', &compression_level, N_("compress faster"), 1),
OPT__COMPR_HIDDEN('2', &compression_level, 2), OPT__COMPR_HIDDEN('2', &compression_level, 2),
OPT__COMPR_HIDDEN('3', &compression_level, 3), OPT__COMPR_HIDDEN('3', &compression_level, 3),
OPT__COMPR_HIDDEN('4', &compression_level, 4), OPT__COMPR_HIDDEN('4', &compression_level, 4),
@ -336,15 +336,15 @@ static int parse_archive_args(int argc, const char **argv,
OPT__COMPR_HIDDEN('6', &compression_level, 6), OPT__COMPR_HIDDEN('6', &compression_level, 6),
OPT__COMPR_HIDDEN('7', &compression_level, 7), OPT__COMPR_HIDDEN('7', &compression_level, 7),
OPT__COMPR_HIDDEN('8', &compression_level, 8), OPT__COMPR_HIDDEN('8', &compression_level, 8),
OPT__COMPR('9', &compression_level, "compress better", 9), OPT__COMPR('9', &compression_level, N_("compress better"), 9),
OPT_GROUP(""), OPT_GROUP(""),
OPT_BOOL('l', "list", &list, OPT_BOOL('l', "list", &list,
"list supported archive formats"), N_("list supported archive formats")),
OPT_GROUP(""), OPT_GROUP(""),
OPT_STRING(0, "remote", &remote, "repo", OPT_STRING(0, "remote", &remote, N_("repo"),
"retrieve the archive from remote repository <repo>"), N_("retrieve the archive from remote repository <repo>")),
OPT_STRING(0, "exec", &exec, "cmd", OPT_STRING(0, "exec", &exec, N_("cmd"),
"path to the remote git-upload-archive command"), N_("path to the remote git-upload-archive command")),
OPT_END() OPT_END()
}; };

View File

@ -88,12 +88,12 @@ int cmd_archive(int argc, const char **argv, const char *prefix)
const char *output = NULL; const char *output = NULL;
const char *remote = NULL; const char *remote = NULL;
struct option local_opts[] = { struct option local_opts[] = {
OPT_STRING('o', "output", &output, "file", OPT_STRING('o', "output", &output, N_("file"),
"write the archive to this file"), N_("write the archive to this file")),
OPT_STRING(0, "remote", &remote, "repo", OPT_STRING(0, "remote", &remote, N_("repo"),
"retrieve the archive from remote repository <repo>"), N_("retrieve the archive from remote repository <repo>")),
OPT_STRING(0, "exec", &exec, "cmd", OPT_STRING(0, "exec", &exec, N_("cmd"),
"path to the remote git-upload-archive command"), N_("path to the remote git-upload-archive command")),
OPT_END() OPT_END()
}; };