summaryrefslogtreecommitdiff
path: root/builtin/rev-parse.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2012-08-20 12:32:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-08-20 19:23:20 (GMT)
commit2c7c184c3b1e1287df6ba5b39f671c6fbd4c8518 (patch)
treea58797d73766de98a1b1b38d1608a92961f0de63 /builtin/rev-parse.c
parentc1e9c2a73dedf79179ee30fd6a552c998d0d4ec7 (diff)
downloadgit-2c7c184c3b1e1287df6ba5b39f671c6fbd4c8518.zip
git-2c7c184c3b1e1287df6ba5b39f671c6fbd4c8518.tar.gz
git-2c7c184c3b1e1287df6ba5b39f671c6fbd4c8518.tar.bz2
i18n: rev-parse: mark parseopt strings for translation
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/rev-parse.c')
-rw-r--r--builtin/rev-parse.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/builtin/rev-parse.c b/builtin/rev-parse.c
index 32788a9..bb3a516 100644
--- a/builtin/rev-parse.c
+++ b/builtin/rev-parse.c
@@ -324,15 +324,15 @@ static int cmd_parseopt(int argc, const char **argv, const char *prefix)
{
static int keep_dashdash = 0, stop_at_non_option = 0;
static char const * const parseopt_usage[] = {
- "git rev-parse --parseopt [options] -- [<args>...]",
+ N_("git rev-parse --parseopt [options] -- [<args>...]"),
NULL
};
static struct option parseopt_opts[] = {
OPT_BOOLEAN(0, "keep-dashdash", &keep_dashdash,
- "keep the `--` passed as an arg"),
+ N_("keep the `--` passed as an arg")),
OPT_BOOLEAN(0, "stop-at-non-option", &stop_at_non_option,
- "stop parsing after the "
- "first non-option argument"),
+ N_("stop parsing after the "
+ "first non-option argument")),
OPT_END(),
};
@@ -449,11 +449,11 @@ static void die_no_single_rev(int quiet)
}
static const char builtin_rev_parse_usage[] =
-"git rev-parse --parseopt [options] -- [<args>...]\n"
-" or: git rev-parse --sq-quote [<arg>...]\n"
-" or: git rev-parse [options] [<arg>...]\n"
-"\n"
-"Run \"git rev-parse --parseopt -h\" for more information on the first usage.";
+N_("git rev-parse --parseopt [options] -- [<args>...]\n"
+ " or: git rev-parse --sq-quote [<arg>...]\n"
+ " or: git rev-parse [options] [<arg>...]\n"
+ "\n"
+ "Run \"git rev-parse --parseopt -h\" for more information on the first usage.");
int cmd_rev_parse(int argc, const char **argv, const char *prefix)
{