Skip to content

Commit

Permalink
i18n: name-rev: mark parseopt strings for translation
Browse files Browse the repository at this point in the history
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
pclouds authored and gitster committed Aug 20, 2012
1 parent 6c54dc4 commit 422cad0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions builtin/name-rev.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ static void show_name(const struct object *obj,
}

static char const * const name_rev_usage[] = {
"git name-rev [options] <commit>...",
"git name-rev [options] --all",
"git name-rev [options] --stdin",
N_("git name-rev [options] <commit>..."),
N_("git name-rev [options] --all"),
N_("git name-rev [options] --stdin"),
NULL
};

Expand Down Expand Up @@ -226,16 +226,16 @@ int cmd_name_rev(int argc, const char **argv, const char *prefix)
int all = 0, transform_stdin = 0, allow_undefined = 1, always = 0;
struct name_ref_data data = { 0, 0, NULL };
struct option opts[] = {
OPT_BOOLEAN(0, "name-only", &data.name_only, "print only names (no SHA-1)"),
OPT_BOOLEAN(0, "tags", &data.tags_only, "only use tags to name the commits"),
OPT_STRING(0, "refs", &data.ref_filter, "pattern",
"only use refs matching <pattern>"),
OPT_BOOLEAN(0, "name-only", &data.name_only, N_("print only names (no SHA-1)")),
OPT_BOOLEAN(0, "tags", &data.tags_only, N_("only use tags to name the commits")),
OPT_STRING(0, "refs", &data.ref_filter, N_("pattern"),
N_("only use refs matching <pattern>")),
OPT_GROUP(""),
OPT_BOOLEAN(0, "all", &all, "list all commits reachable from all refs"),
OPT_BOOLEAN(0, "stdin", &transform_stdin, "read from stdin"),
OPT_BOOLEAN(0, "undefined", &allow_undefined, "allow to print `undefined` names"),
OPT_BOOLEAN(0, "all", &all, N_("list all commits reachable from all refs")),
OPT_BOOLEAN(0, "stdin", &transform_stdin, N_("read from stdin")),
OPT_BOOLEAN(0, "undefined", &allow_undefined, N_("allow to print `undefined` names")),
OPT_BOOLEAN(0, "always", &always,
"show abbreviated commit object as fallback"),
N_("show abbreviated commit object as fallback")),
OPT_END(),
};

Expand Down

0 comments on commit 422cad0

Please sign in to comment.