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 55/66] i18n: show-branch: mark parseopt strings for translation Date: Mon, 20 Aug 2012 19:32:44 +0700 Message-ID: <1345465975-16927-56-git-send-email-pclouds@gmail.com> References: <1345465975-16927-1-git-send-email-pclouds@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Junio C Hamano , Jonathan Niedier , Jiang Xin , =?UTF-8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= , =?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 Aug 20 14:45:20 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 1T3RM7-0000r9-NC for gcvg-git-2@plane.gmane.org; Mon, 20 Aug 2012 14:45:20 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751508Ab2HTMpO convert rfc822-to-quoted-printable (ORCPT ); Mon, 20 Aug 2012 08:45:14 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:45598 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751286Ab2HTMpL (ORCPT ); Mon, 20 Aug 2012 08:45:11 -0400 Received: by dady13 with SMTP id y13so2157219dad.19 for ; Mon, 20 Aug 2012 05:45:11 -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=J+UMARn5CO7CT7Lk9Zz4OXPNET4u0x5U2sKstXZ6OUo=; b=ZGTA2fmU4znIZQSOt/Fq+4sqgzVhRnU4DqKbWtb8TiBvKukKLZ8baR/b6UoVezl5yX Hbf5ntSzODM9LEPUXOuAI8DLI3N9lo+9ySUryP1X7ZjJtE4q1sdhpKJuc0ZIsiTUixF8 yjvyjBQbdsH58eKSxemY1URJlIr00oMJV7o+xum8rPB6GUEGSj2D+ojBTUfHCSkpH9Q3 OsTE1fhGS5/9fAruPfdniOqhW6dqtRqK6ZVjWrZPYEf6vBzv74LyIvA0EqztTU2N3lps 8OCU/TgIsV2S8cJUCi9JgGykwp6sNUrYFU+RtSVTbXM3/zYIHmeL9T4C7eM27+921BGa RkYg== Received: by 10.66.80.193 with SMTP id t1mr29289745pax.69.1345466711435; Mon, 20 Aug 2012 05:45:11 -0700 (PDT) Received: from pclouds@gmail.com ([115.74.38.247]) by mx.google.com with ESMTPS id ka4sm5673412pbc.61.2012.08.20.05.45.08 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 20 Aug 2012 05:45:10 -0700 (PDT) Received: by pclouds@gmail.com (sSMTP sendmail emulation); Mon, 20 Aug 2012 19:39:11 +0700 X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: <1345465975-16927-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/show-branch.c | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/builtin/show-branch.c b/builtin/show-branch.c index a59e088..d208fd6 100644 --- a/builtin/show-branch.c +++ b/builtin/show-branch.c @@ -6,8 +6,8 @@ #include "parse-options.h" =20 static const char* show_branch_usage[] =3D { - "git show-branch [-a|--all] [-r|--remotes] [--topo-order | --date-= order] [--current] [--color[=3D] | --no-color] [--sparse] [--more= =3D | --list | --independent | --merge-base] [--no-name | --sha1-nam= e] [--topics] [( | )...]", - "git show-branch (-g|--reflog)[=3D[,]] [--list] []", + N_("git show-branch [-a|--all] [-r|--remotes] [--topo-order | --da= te-order] [--current] [--color[=3D] | --no-color] [--sparse] [--m= ore=3D | --list | --independent | --merge-base] [--no-name | --sha1-= name] [--topics] [( | )...]"), + N_("git show-branch (-g|--reflog)[=3D[,]] [--list] [= ]"), NULL }; =20 @@ -648,36 +648,36 @@ int cmd_show_branch(int ac, const char **av, cons= t char *prefix) const char *reflog_base =3D NULL; struct option builtin_show_branch_options[] =3D { OPT_BOOLEAN('a', "all", &all_heads, - "show remote-tracking and local branches"), + N_("show remote-tracking and local branches")), OPT_BOOLEAN('r', "remotes", &all_remotes, - "show remote-tracking branches"), + N_("show remote-tracking branches")), OPT__COLOR(&showbranch_use_color, - "color '*!+-' corresponding to the branch"), - { OPTION_INTEGER, 0, "more", &extra, "n", - "show more commits after the common ancestor", + N_("color '*!+-' corresponding to the branch")), + { OPTION_INTEGER, 0, "more", &extra, N_("n"), + N_("show more commits after the common ancestor"), PARSE_OPT_OPTARG, NULL, (intptr_t)1 }, - OPT_SET_INT(0, "list", &extra, "synonym to more=3D-1", -1), - OPT_BOOLEAN(0, "no-name", &no_name, "suppress naming strings"), + OPT_SET_INT(0, "list", &extra, N_("synonym to more=3D-1"), -1), + OPT_BOOLEAN(0, "no-name", &no_name, N_("suppress naming strings")), OPT_BOOLEAN(0, "current", &with_current_branch, - "include the current branch"), + N_("include the current branch")), OPT_BOOLEAN(0, "sha1-name", &sha1_name, - "name commits with their object names"), + N_("name commits with their object names")), OPT_BOOLEAN(0, "merge-base", &merge_base, - "show possible merge bases"), + N_("show possible merge bases")), OPT_BOOLEAN(0, "independent", &independent, - "show refs unreachable from any other ref"), + N_("show refs unreachable from any other ref")), OPT_BOOLEAN(0, "topo-order", &lifo, - "show commits in topological order"), + N_("show commits in topological order")), OPT_BOOLEAN(0, "topics", &topics, - "show only commits not on the first branch"), + N_("show only commits not on the first branch")), OPT_SET_INT(0, "sparse", &dense, - "show merges reachable from only one tip", 0), + N_("show merges reachable from only one tip"), 0), OPT_SET_INT(0, "date-order", &lifo, - "show commits where no parent comes before its " - "children", 0), - { OPTION_CALLBACK, 'g', "reflog", &reflog_base, "[,]", - "show most recent ref-log entries starting at " - "base", + N_("show commits where no parent comes before its " + "children"), 0), + { OPTION_CALLBACK, 'g', "reflog", &reflog_base, N_("[,]"), + N_("show most recent ref-log entries starting at " + "base"), PARSE_OPT_OPTARG | PARSE_OPT_LITERAL_ARGHELP, parse_reflog_param }, OPT_END() --=20 1.7.12.rc2.18.g61b472e