i18n: clean: 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
145f9c81aa2e653f461d424d2dd2c9696df88a5a
1 file changed
+9
-9
builtin/clean.c
+9
-9
@@ -16,7 +16,7 @@
16
static int force = -1; /* unset */
17
18
static const char *const builtin_clean_usage[] = {
19
- "git clean [-d] [-f] [-n] [-q] [-e <pattern>] [-x | -X] [--] <paths>...",
19
+ N_("git clean [-d] [-f] [-n] [-q] [-e <pattern>] [-x | -X] [--] <paths>..."),
20
NULL
21
};
22
@@ -48,16 +48,16 @@ int cmd_clean(int argc, const char **argv, const char *prefix)
48
const char *qname;
49
char *seen = NULL;
50
struct option options[] = {
51
- OPT__QUIET(&quiet, "do not print names of files removed"),
52
- OPT__DRY_RUN(&show_only, "dry run"),
53
- OPT__FORCE(&force, "force"),
51
+ OPT__QUIET(&quiet, N_("do not print names of files removed")),
52
+ OPT__DRY_RUN(&show_only, N_("dry run")),
53
+ OPT__FORCE(&force, N_("force")),
54
OPT_BOOLEAN('d', NULL, &remove_directories,
55
- "remove whole directories"),
56
- { OPTION_CALLBACK, 'e', "exclude", &exclude_list, "pattern",
57
- "add <pattern> to ignore rules", PARSE_OPT_NONEG, exclude_cb },
58
- OPT_BOOLEAN('x', NULL, &ignored, "remove ignored files, too"),
55
+ N_("remove whole directories")),
56
+ { OPTION_CALLBACK, 'e', "exclude", &exclude_list, N_("pattern"),
57
+ N_("add <pattern> to ignore rules"), PARSE_OPT_NONEG, exclude_cb },
58
+ OPT_BOOLEAN('x', NULL, &ignored, N_("remove ignored files, too")),
59
OPT_BOOLEAN('X', NULL, &ignored_only,
60
- "remove only ignored files"),
60
+ N_("remove only ignored files")),
61
OPT_END()
62
};
63