i18n: gc: 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>
Nguyễn Thái Ngọc Duy committed
Aug 20, 2012 at 19:32 UTC
6705c1629c144f8938b22618084b6d372805666d
1 file changed
+6
-6
builtin/gc.c
+6
-6
@@ -19,7 +19,7 @@
19
#define FAILED_RUN "failed to run %s"
20
21
static const char * const builtin_gc_usage[] = {
22
- "git gc [options]",
22
+ N_("git gc [options]"),
23
NULL
24
};
25
@@ -174,12 +174,12 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
174
int quiet = 0;
175
176
struct option builtin_gc_options[] = {
177
- OPT__QUIET(&quiet, "suppress progress reporting"),
178
- { OPTION_STRING, 0, "prune", &prune_expire, "date",
179
- "prune unreferenced objects",
177
+ OPT__QUIET(&quiet, N_("suppress progress reporting")),
178
+ { OPTION_STRING, 0, "prune", &prune_expire, N_("date"),
179
+ N_("prune unreferenced objects"),
180
PARSE_OPT_OPTARG, NULL, (intptr_t)prune_expire },
181
- OPT_BOOLEAN(0, "aggressive", &aggressive, "be more thorough (increased runtime)"),
182
- OPT_BOOLEAN(0, "auto", &auto_gc, "enable auto-gc mode"),
181
+ OPT_BOOLEAN(0, "aggressive", &aggressive, N_("be more thorough (increased runtime)")),
182
+ OPT_BOOLEAN(0, "auto", &auto_gc, N_("enable auto-gc mode")),
183
OPT_END()
184
};
185