From: Nguyễn Thái Ngọc Duy Date: Mon, 20 Aug 2012 12:32:35 +0000 (+0700) Subject: i18n: remote: mark parseopt strings for translation X-Git-Tag: v1.8.0-rc0~95^2~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fbbae140d3310464387393a8b86da1ad2da44d41;p=git.git i18n: remote: mark parseopt strings for translation Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano --- diff --git a/builtin/remote.c b/builtin/remote.c index 920262d76..8a670d82a 100644 --- a/builtin/remote.c +++ b/builtin/remote.c @@ -8,66 +8,66 @@ #include "refs.h" static const char * const builtin_remote_usage[] = { - "git remote [-v | --verbose]", - "git remote add [-t ] [-m ] [-f] [--tags|--no-tags] [--mirror=] ", - "git remote rename ", - "git remote rm ", - "git remote set-head (-a | -d | )", - "git remote [-v | --verbose] show [-n] ", - "git remote prune [-n | --dry-run] ", - "git remote [-v | --verbose] update [-p | --prune] [( | )...]", - "git remote set-branches [--add] ...", - "git remote set-url [--push] []", - "git remote set-url --add ", - "git remote set-url --delete ", + N_("git remote [-v | --verbose]"), + N_("git remote add [-t ] [-m ] [-f] [--tags|--no-tags] [--mirror=] "), + N_("git remote rename "), + N_("git remote rm "), + N_("git remote set-head (-a | -d | )"), + N_("git remote [-v | --verbose] show [-n] "), + N_("git remote prune [-n | --dry-run] "), + N_("git remote [-v | --verbose] update [-p | --prune] [( | )...]"), + N_("git remote set-branches [--add] ..."), + N_("git remote set-url [--push] []"), + N_("git remote set-url --add "), + N_("git remote set-url --delete "), NULL }; static const char * const builtin_remote_add_usage[] = { - "git remote add [] ", + N_("git remote add [] "), NULL }; static const char * const builtin_remote_rename_usage[] = { - "git remote rename ", + N_("git remote rename "), NULL }; static const char * const builtin_remote_rm_usage[] = { - "git remote rm ", + N_("git remote rm "), NULL }; static const char * const builtin_remote_sethead_usage[] = { - "git remote set-head (-a | -d | ])", + N_("git remote set-head (-a | -d | ])"), NULL }; static const char * const builtin_remote_setbranches_usage[] = { - "git remote set-branches ...", - "git remote set-branches --add ...", + N_("git remote set-branches ..."), + N_("git remote set-branches --add ..."), NULL }; static const char * const builtin_remote_show_usage[] = { - "git remote show [] ", + N_("git remote show [] "), NULL }; static const char * const builtin_remote_prune_usage[] = { - "git remote prune [] ", + N_("git remote prune [] "), NULL }; static const char * const builtin_remote_update_usage[] = { - "git remote update [] [ | ]...", + N_("git remote update [] [ | ]..."), NULL }; static const char * const builtin_remote_seturl_usage[] = { - "git remote set-url [--push] []", - "git remote set-url --add ", - "git remote set-url --delete ", + N_("git remote set-url [--push] []"), + N_("git remote set-url --add "), + N_("git remote set-url --delete "), NULL }; @@ -160,17 +160,17 @@ static int add(int argc, const char **argv) int i; struct option options[] = { - OPT_BOOLEAN('f', "fetch", &fetch, "fetch the remote branches"), + OPT_BOOLEAN('f', "fetch", &fetch, N_("fetch the remote branches")), OPT_SET_INT(0, "tags", &fetch_tags, - "import all tags and associated objects when fetching", + N_("import all tags and associated objects when fetching"), TAGS_SET), OPT_SET_INT(0, NULL, &fetch_tags, - "or do not fetch any tag at all (--no-tags)", TAGS_UNSET), - OPT_STRING_LIST('t', "track", &track, "branch", - "branch(es) to track"), - OPT_STRING('m', "master", &master, "branch", "master branch"), - { OPTION_CALLBACK, 0, "mirror", &mirror, "push|fetch", - "set up remote as a mirror to push to or fetch from", + N_("or do not fetch any tag at all (--no-tags)"), TAGS_UNSET), + OPT_STRING_LIST('t', "track", &track, N_("branch"), + N_("branch(es) to track")), + OPT_STRING('m', "master", &master, N_("branch"), N_("master branch")), + { OPTION_CALLBACK, 0, "mirror", &mirror, N_("push|fetch"), + N_("set up remote as a mirror to push to or fetch from"), PARSE_OPT_OPTARG, parse_mirror_opt }, OPT_END() }; @@ -1088,7 +1088,7 @@ static int show(int argc, const char **argv) { int no_query = 0, result = 0, query_flag = 0; struct option options[] = { - OPT_BOOLEAN('n', NULL, &no_query, "do not query remotes"), + OPT_BOOLEAN('n', NULL, &no_query, N_("do not query remotes")), OPT_END() }; struct ref_states states; @@ -1196,9 +1196,9 @@ static int set_head(int argc, const char **argv) struct option options[] = { OPT_BOOLEAN('a', "auto", &opt_a, - "set refs/remotes//HEAD according to remote"), + N_("set refs/remotes//HEAD according to remote")), OPT_BOOLEAN('d', "delete", &opt_d, - "delete refs/remotes//HEAD"), + N_("delete refs/remotes//HEAD")), OPT_END() }; argc = parse_options(argc, argv, NULL, options, builtin_remote_sethead_usage, @@ -1250,7 +1250,7 @@ static int prune(int argc, const char **argv) { int dry_run = 0, result = 0; struct option options[] = { - OPT__DRY_RUN(&dry_run, "dry run"), + OPT__DRY_RUN(&dry_run, N_("dry run")), OPT_END() }; @@ -1318,7 +1318,7 @@ static int update(int argc, const char **argv) int i, prune = 0; struct option options[] = { OPT_BOOLEAN('p', "prune", &prune, - "prune remotes after fetching"), + N_("prune remotes after fetching")), OPT_END() }; const char **fetch_argv; @@ -1404,7 +1404,7 @@ static int set_branches(int argc, const char **argv) { int add_mode = 0; struct option options[] = { - OPT_BOOLEAN('\0', "add", &add_mode, "add branch"), + OPT_BOOLEAN('\0', "add", &add_mode, N_("add branch")), OPT_END() }; @@ -1433,11 +1433,11 @@ static int set_url(int argc, const char **argv) struct strbuf name_buf = STRBUF_INIT; struct option options[] = { OPT_BOOLEAN('\0', "push", &push_mode, - "manipulate push URLs"), + N_("manipulate push URLs")), OPT_BOOLEAN('\0', "add", &add_mode, - "add URL"), + N_("add URL")), OPT_BOOLEAN('\0', "delete", &delete_mode, - "delete URLs"), + N_("delete URLs")), OPT_END() }; argc = parse_options(argc, argv, NULL, options, builtin_remote_seturl_usage, @@ -1566,7 +1566,7 @@ static int show_all(void) int cmd_remote(int argc, const char **argv, const char *prefix) { struct option options[] = { - OPT__VERBOSE(&verbose, "be verbose; must be placed before a subcommand"), + OPT__VERBOSE(&verbose, N_("be verbose; must be placed before a subcommand")), OPT_END() }; int result;