Skip to content

Commit b0ff965

Browse files
pcloudsgitster
authored andcommitted
Reduce translations by using same terminologies
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b5625d0 commit b0ff965

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

archive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ static int parse_archive_args(int argc, const char **argv,
343343
OPT_GROUP(""),
344344
OPT_STRING(0, "remote", &remote, N_("repo"),
345345
N_("retrieve the archive from remote repository <repo>")),
346-
OPT_STRING(0, "exec", &exec, N_("cmd"),
346+
OPT_STRING(0, "exec", &exec, N_("command"),
347347
N_("path to the remote git-upload-archive command")),
348348
OPT_END()
349349
};

builtin/archive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ int cmd_archive(int argc, const char **argv, const char *prefix)
9292
N_("write the archive to this file")),
9393
OPT_STRING(0, "remote", &remote, N_("repo"),
9494
N_("retrieve the archive from remote repository <repo>")),
95-
OPT_STRING(0, "exec", &exec, N_("cmd"),
95+
OPT_STRING(0, "exec", &exec, N_("command"),
9696
N_("path to the remote git-upload-archive command")),
9797
OPT_END()
9898
};

builtin/notes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ static int add(int argc, const char **argv, const char *prefix)
531531
const unsigned char *note;
532532
struct msg_arg msg = { 0, 0, STRBUF_INIT };
533533
struct option options[] = {
534-
{ OPTION_CALLBACK, 'm', "message", &msg, N_("msg"),
534+
{ OPTION_CALLBACK, 'm', "message", &msg, N_("message"),
535535
N_("note contents as a string"), PARSE_OPT_NONEG,
536536
parse_msg_arg},
537537
{ OPTION_CALLBACK, 'F', "file", &msg, N_("file"),
@@ -688,7 +688,7 @@ static int append_edit(int argc, const char **argv, const char *prefix)
688688
const char * const *usage;
689689
struct msg_arg msg = { 0, 0, STRBUF_INIT };
690690
struct option options[] = {
691-
{ OPTION_CALLBACK, 'm', "message", &msg, N_("msg"),
691+
{ OPTION_CALLBACK, 'm', "message", &msg, N_("message"),
692692
N_("note contents as a string"), PARSE_OPT_NONEG,
693693
parse_msg_arg},
694694
{ OPTION_CALLBACK, 'F', "file", &msg, N_("file"),

builtin/tag.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ int cmd_tag(int argc, const char **argv, const char *prefix)
460460
OPT_BOOLEAN('s', "sign", &opt.sign, N_("annotated and GPG-signed tag")),
461461
OPT_STRING(0, "cleanup", &cleanup_arg, N_("mode"),
462462
N_("how to strip spaces and #comments from message")),
463-
OPT_STRING('u', "local-user", &keyid, N_("key-id"),
463+
OPT_STRING('u', "local-user", &keyid, N_("key id"),
464464
N_("use another key to sign the tag")),
465465
OPT__FORCE(&force, N_("replace the tag if exists")),
466466
OPT_COLUMN(0, "column", &colopts, N_("show tag list in columns")),

0 commit comments

Comments
 (0)