i18n: cat-file: 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:31 UTC d68faec7c07977370623761c9826ac6276a36a36
1 file changed +10 -10
builtin/cat-file.c
+10 -10
@@ -244,8 +244,8 @@ static int batch_objects(int print_contents)
244 }
245
246 static const char * const cat_file_usage[] = {
247 - "git cat-file (-t|-s|-e|-p|<type>|--textconv) <object>",
248 - "git cat-file (--batch|--batch-check) < <list_of_objects>",
247 + N_("git cat-file (-t|-s|-e|-p|<type>|--textconv) <object>"),
248 + N_("git cat-file (--batch|--batch-check) < <list_of_objects>"),
249 NULL
250 };
251
@@ -263,19 +263,19 @@ int cmd_cat_file(int argc, const char **argv, const char *prefix)
263 const char *exp_type = NULL, *obj_name = NULL;
264
265 const struct option options[] = {
266 - OPT_GROUP("<type> can be one of: blob, tree, commit, tag"),
267 - OPT_SET_INT('t', NULL, &opt, "show object type", 't'),
268 - OPT_SET_INT('s', NULL, &opt, "show object size", 's'),
266 + OPT_GROUP(N_("<type> can be one of: blob, tree, commit, tag")),
267 + OPT_SET_INT('t', NULL, &opt, N_("show object type"), 't'),
268 + OPT_SET_INT('s', NULL, &opt, N_("show object size"), 's'),
269 OPT_SET_INT('e', NULL, &opt,
270 - "exit with zero when there's no error", 'e'),
271 - OPT_SET_INT('p', NULL, &opt, "pretty-print object's content", 'p'),
270 + N_("exit with zero when there's no error"), 'e'),
271 + OPT_SET_INT('p', NULL, &opt, N_("pretty-print object's content"), 'p'),
272 OPT_SET_INT(0, "textconv", &opt,
273 - "for blob objects, run textconv on object's content", 'c'),
273 + N_("for blob objects, run textconv on object's content"), 'c'),
274 OPT_SET_INT(0, "batch", &batch,
275 - "show info and content of objects fed from the standard input",
275 + N_("show info and content of objects fed from the standard input"),
276 BATCH),
277 OPT_SET_INT(0, "batch-check", &batch,
278 - "show info about objects fed from the standard input",
278 + N_("show info about objects fed from the standard input"),
279 BATCH_CHECK),
280 OPT_END()
281 };