From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Nguy=E1=BB=85n=20Th=C3=A1i=20Ng=E1=BB=8Dc=20Duy?= Subject: [PATCH 47/65] i18n: remote: mark parseopt strings for translation Date: Mon, 28 May 2012 18:13:59 +0700 Message-ID: <1338203657-26486-45-git-send-email-pclouds@gmail.com> References: <1336314232-21002-3-git-send-email-pclouds@gmail.com> <1338203657-26486-1-git-send-email-pclouds@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Jonathan Niedier , Junio C Hamano , =?UTF-8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= , Jiang Xin , =?UTF-8?q?Nguy=E1=BB=85n=20Th=C3=A1i=20Ng=E1=BB=8Dc=20Duy?= To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Mon May 28 13:25:12 2012 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SYy4V-00056c-Eg for gcvg-git-2@plane.gmane.org; Mon, 28 May 2012 13:25:11 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753847Ab2E1LZE convert rfc822-to-quoted-printable (ORCPT ); Mon, 28 May 2012 07:25:04 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:63413 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753607Ab2E1LZC (ORCPT ); Mon, 28 May 2012 07:25:02 -0400 Received: by mail-pb0-f46.google.com with SMTP id rp8so4541874pbb.19 for ; Mon, 28 May 2012 04:25:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=7Jd0JBlg0VzTsxWuqt4aI/gjyVrYcxZl8S2AMd8+gZk=; b=JK8XOb2j3VrqXjVz1pj4BBIPVfVVVDXcv9NZIzaPsdN6wso5xVBrJZaZ6IDykVlXVE NRRkSie2qVjO6Y3y67k+xbrrcE1t09DiqD0BlJpzb95yme9dFbXSXxx+ZtrqoWNq7DF5 cdgMogV6ywMMslQVmcFInEw/HHcbhDgA8e95c/wgukZ5yNjNZ98MWpRDuVLaT8/04eMm 1SR9snov8oE7TtT6RrD7LWyJETDIf7u8fN95fnEAMgW053vrlGLnsgrCl38bF8PcGpnF kjNEBuSU5uJ1PawiII2+l606Bx+AWzVKe3zZ756R2DrKj4NfHh3CwqaZBuwTOn1gkfXC lMEg== Received: by 10.68.225.9 with SMTP id rg9mr26170441pbc.137.1338204302320; Mon, 28 May 2012 04:25:02 -0700 (PDT) Received: from pclouds@gmail.com ([115.74.41.88]) by mx.google.com with ESMTPS id or7sm18991494pbb.60.2012.05.28.04.24.57 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 28 May 2012 04:25:01 -0700 (PDT) Received: by pclouds@gmail.com (sSMTP sendmail emulation); Mon, 28 May 2012 18:20:56 +0700 X-Mailer: git-send-email 1.7.10.2.549.g9354186 In-Reply-To: <1338203657-26486-1-git-send-email-pclouds@gmail.com> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Signed-off-by: Nguy=E1=BB=85n Th=C3=A1i Ng=E1=BB=8Dc Duy --- builtin/remote.c | 84 ++++++++++++++++++++++++++++--------------------= -------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/builtin/remote.c b/builtin/remote.c index 920262d..8a670d8 100644 --- a/builtin/remote.c +++ b/builtin/remote.c @@ -8,66 +8,66 @@ #include "refs.h" =20 static const char * const builtin_remote_usage[] =3D { - "git remote [-v | --verbose]", - "git remote add [-t ] [-m ] [-f] [--tags|--no-tags] [= --mirror=3D] ", - "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=3D] "), + 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 }; =20 static const char * const builtin_remote_add_usage[] =3D { - "git remote add [] ", + N_("git remote add [] "), NULL }; =20 static const char * const builtin_remote_rename_usage[] =3D { - "git remote rename ", + N_("git remote rename "), NULL }; =20 static const char * const builtin_remote_rm_usage[] =3D { - "git remote rm ", + N_("git remote rm "), NULL }; =20 static const char * const builtin_remote_sethead_usage[] =3D { - "git remote set-head (-a | -d | ])", + N_("git remote set-head (-a | -d | ])"), NULL }; =20 static const char * const builtin_remote_setbranches_usage[] =3D { - "git remote set-branches ...", - "git remote set-branches --add ...", + N_("git remote set-branches ..."), + N_("git remote set-branches --add ..."), NULL }; =20 static const char * const builtin_remote_show_usage[] =3D { - "git remote show [] ", + N_("git remote show [] "), NULL }; =20 static const char * const builtin_remote_prune_usage[] =3D { - "git remote prune [] ", + N_("git remote prune [] "), NULL }; =20 static const char * const builtin_remote_update_usage[] =3D { - "git remote update [] [ | ]...", + N_("git remote update [] [ | ]..."), NULL }; =20 static const char * const builtin_remote_seturl_usage[] =3D { - "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 }; =20 @@ -160,17 +160,17 @@ static int add(int argc, const char **argv) int i; =20 struct option options[] =3D { - 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 =3D 0, result =3D 0, query_flag =3D 0; struct option options[] =3D { - 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) =20 struct option options[] =3D { 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 =3D parse_options(argc, argv, NULL, options, builtin_remote_seth= ead_usage, @@ -1250,7 +1250,7 @@ static int prune(int argc, const char **argv) { int dry_run =3D 0, result =3D 0; struct option options[] =3D { - OPT__DRY_RUN(&dry_run, "dry run"), + OPT__DRY_RUN(&dry_run, N_("dry run")), OPT_END() }; =20 @@ -1318,7 +1318,7 @@ static int update(int argc, const char **argv) int i, prune =3D 0; struct option options[] =3D { 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 **ar= gv) { int add_mode =3D 0; struct option options[] =3D { - OPT_BOOLEAN('\0', "add", &add_mode, "add branch"), + OPT_BOOLEAN('\0', "add", &add_mode, N_("add branch")), OPT_END() }; =20 @@ -1433,11 +1433,11 @@ static int set_url(int argc, const char **argv) struct strbuf name_buf =3D STRBUF_INIT; struct option options[] =3D { 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 =3D parse_options(argc, argv, NULL, options, builtin_remote_setu= rl_usage, @@ -1566,7 +1566,7 @@ static int show_all(void) int cmd_remote(int argc, const char **argv, const char *prefix) { struct option options[] =3D { - OPT__VERBOSE(&verbose, "be verbose; must be placed before a subcomma= nd"), + OPT__VERBOSE(&verbose, N_("be verbose; must be placed before a subco= mmand")), OPT_END() }; int result; --=20 1.7.10.2.549.g9354186