Skip to content
/ git Public
forked from git/git

Commit

Permalink
Reduce translations by using same terminologies
Browse files Browse the repository at this point in the history
Somewhere in help usage, we use both "message" and "msg", "command"
and "cmd", "key id" and "key-id". This patch makes all help text from
parseopt use the first form. Clearer and 3 fewer strings for
translators.

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 22, 2012
1 parent b5625d0 commit b0ff965
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion archive.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ static int parse_archive_args(int argc, const char **argv,
OPT_GROUP(""), OPT_GROUP(""),
OPT_STRING(0, "remote", &remote, N_("repo"), OPT_STRING(0, "remote", &remote, N_("repo"),
N_("retrieve the archive from remote repository <repo>")), N_("retrieve the archive from remote repository <repo>")),
OPT_STRING(0, "exec", &exec, N_("cmd"), OPT_STRING(0, "exec", &exec, N_("command"),
N_("path to the remote git-upload-archive command")), N_("path to the remote git-upload-archive command")),
OPT_END() OPT_END()
}; };
Expand Down
2 changes: 1 addition & 1 deletion builtin/archive.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ int cmd_archive(int argc, const char **argv, const char *prefix)
N_("write the archive to this file")), N_("write the archive to this file")),
OPT_STRING(0, "remote", &remote, N_("repo"), OPT_STRING(0, "remote", &remote, N_("repo"),
N_("retrieve the archive from remote repository <repo>")), N_("retrieve the archive from remote repository <repo>")),
OPT_STRING(0, "exec", &exec, N_("cmd"), OPT_STRING(0, "exec", &exec, N_("command"),
N_("path to the remote git-upload-archive command")), N_("path to the remote git-upload-archive command")),
OPT_END() OPT_END()
}; };
Expand Down
4 changes: 2 additions & 2 deletions builtin/notes.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ static int add(int argc, const char **argv, const char *prefix)
const unsigned char *note; const unsigned char *note;
struct msg_arg msg = { 0, 0, STRBUF_INIT }; struct msg_arg msg = { 0, 0, STRBUF_INIT };
struct option options[] = { struct option options[] = {
{ OPTION_CALLBACK, 'm', "message", &msg, N_("msg"), { OPTION_CALLBACK, 'm', "message", &msg, N_("message"),
N_("note contents as a string"), PARSE_OPT_NONEG, N_("note contents as a string"), PARSE_OPT_NONEG,
parse_msg_arg}, parse_msg_arg},
{ OPTION_CALLBACK, 'F', "file", &msg, N_("file"), { OPTION_CALLBACK, 'F', "file", &msg, N_("file"),
Expand Down Expand Up @@ -688,7 +688,7 @@ static int append_edit(int argc, const char **argv, const char *prefix)
const char * const *usage; const char * const *usage;
struct msg_arg msg = { 0, 0, STRBUF_INIT }; struct msg_arg msg = { 0, 0, STRBUF_INIT };
struct option options[] = { struct option options[] = {
{ OPTION_CALLBACK, 'm', "message", &msg, N_("msg"), { OPTION_CALLBACK, 'm', "message", &msg, N_("message"),
N_("note contents as a string"), PARSE_OPT_NONEG, N_("note contents as a string"), PARSE_OPT_NONEG,
parse_msg_arg}, parse_msg_arg},
{ OPTION_CALLBACK, 'F', "file", &msg, N_("file"), { OPTION_CALLBACK, 'F', "file", &msg, N_("file"),
Expand Down
2 changes: 1 addition & 1 deletion builtin/tag.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ int cmd_tag(int argc, const char **argv, const char *prefix)
OPT_BOOLEAN('s', "sign", &opt.sign, N_("annotated and GPG-signed tag")), OPT_BOOLEAN('s', "sign", &opt.sign, N_("annotated and GPG-signed tag")),
OPT_STRING(0, "cleanup", &cleanup_arg, N_("mode"), OPT_STRING(0, "cleanup", &cleanup_arg, N_("mode"),
N_("how to strip spaces and #comments from message")), N_("how to strip spaces and #comments from message")),
OPT_STRING('u', "local-user", &keyid, N_("key-id"), OPT_STRING('u', "local-user", &keyid, N_("key id"),
N_("use another key to sign the tag")), N_("use another key to sign the tag")),
OPT__FORCE(&force, N_("replace the tag if exists")), OPT__FORCE(&force, N_("replace the tag if exists")),
OPT_COLUMN(0, "column", &colopts, N_("show tag list in columns")), OPT_COLUMN(0, "column", &colopts, N_("show tag list in columns")),
Expand Down

0 comments on commit b0ff965

Please sign in to comment.