i18n: hash-object: 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
483bbf41ca5beb7e38b3b01f21149c56a1154b7a
1 file changed
+8
-8
builtin/hash-object.c
+8
-8
@@ -57,8 +57,8 @@ static void hash_stdin_paths(const char *type, int write_objects)
57
}
58
59
static const char * const hash_object_usage[] = {
60
- "git hash-object [-t <type>] [-w] [--path=<file>|--no-filters] [--stdin] [--] <file>...",
61
- "git hash-object --stdin-paths < <list-of-paths>",
60
+ N_("git hash-object [-t <type>] [-w] [--path=<file>|--no-filters] [--stdin] [--] <file>..."),
61
+ N_("git hash-object --stdin-paths < <list-of-paths>"),
62
NULL
63
};
64
@@ -69,12 +69,12 @@ static int stdin_paths;
69
static const char *vpath;
70
71
static const struct option hash_object_options[] = {
72
- OPT_STRING('t', NULL, &type, "type", "object type"),
73
- OPT_BOOLEAN('w', NULL, &write_object, "write the object into the object database"),
74
- OPT_BOOLEAN( 0 , "stdin", &hashstdin, "read the object from stdin"),
75
- OPT_BOOLEAN( 0 , "stdin-paths", &stdin_paths, "read file names from stdin"),
76
- OPT_BOOLEAN( 0 , "no-filters", &no_filters, "store file as is without filters"),
77
- OPT_STRING( 0 , "path", &vpath, "file", "process file as it were from this path"),
72
+ OPT_STRING('t', NULL, &type, N_("type"), N_("object type")),
73
+ OPT_BOOLEAN('w', NULL, &write_object, N_("write the object into the object database")),
74
+ OPT_BOOLEAN( 0 , "stdin", &hashstdin, N_("read the object from stdin")),
75
+ OPT_BOOLEAN( 0 , "stdin-paths", &stdin_paths, N_("read file names from stdin")),
76
+ OPT_BOOLEAN( 0 , "no-filters", &no_filters, N_("store file as is without filters")),
77
+ OPT_STRING( 0 , "path", &vpath, N_("file"), N_("process file as it were from this path")),
78
OPT_END()
79
};
80