Skip to content

Commit 483bbf4

Browse files
pcloudsgitster
authored andcommitted
i18n: hash-object: mark parseopt strings for translation
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4b407bc commit 483bbf4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

builtin/hash-object.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ static void hash_stdin_paths(const char *type, int write_objects)
5757
}
5858

5959
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>"),
6262
NULL
6363
};
6464

@@ -69,12 +69,12 @@ static int stdin_paths;
6969
static const char *vpath;
7070

7171
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")),
7878
OPT_END()
7979
};
8080

0 commit comments

Comments
 (0)