i18n: ls-files: 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
377adc3aaf0dfc09277cbe4235013a227352e6d1
1 file changed
+27
-27
builtin/ls-files.c
+27
-27
@@ -405,7 +405,7 @@ int report_path_error(const char *ps_matched, const char **pathspec, const char
405
}
406
407
static const char * const ls_files_usage[] = {
408
- "git ls-files [options] [<file>...]",
408
+ N_("git ls-files [options] [<file>...]"),
409
NULL
410
};
411
@@ -457,57 +457,57 @@ int cmd_ls_files(int argc, const char **argv, const char *cmd_prefix)
457
struct dir_struct dir;
458
struct option builtin_ls_files_options[] = {
459
{ OPTION_CALLBACK, 'z', NULL, NULL, NULL,
460
- "paths are separated with NUL character",
460
+ N_("paths are separated with NUL character"),
461
PARSE_OPT_NOARG, option_parse_z },
462
OPT_BOOLEAN('t', NULL, &show_tag,
463
- "identify the file status with tags"),
463
+ N_("identify the file status with tags")),
464
OPT_BOOLEAN('v', NULL, &show_valid_bit,
465
- "use lowercase letters for 'assume unchanged' files"),
465
+ N_("use lowercase letters for 'assume unchanged' files")),
466
OPT_BOOLEAN('c', "cached", &show_cached,
467
- "show cached files in the output (default)"),
467
+ N_("show cached files in the output (default)")),
468
OPT_BOOLEAN('d', "deleted", &show_deleted,
469
- "show deleted files in the output"),
469
+ N_("show deleted files in the output")),
470
OPT_BOOLEAN('m', "modified", &show_modified,
471
- "show modified files in the output"),
471
+ N_("show modified files in the output")),
472
OPT_BOOLEAN('o', "others", &show_others,
473
- "show other files in the output"),
473
+ N_("show other files in the output")),
474
OPT_BIT('i', "ignored", &dir.flags,
475
- "show ignored files in the output",
475
+ N_("show ignored files in the output"),
476
DIR_SHOW_IGNORED),
477
OPT_BOOLEAN('s', "stage", &show_stage,
478
- "show staged contents' object name in the output"),
478
+ N_("show staged contents' object name in the output")),
479
OPT_BOOLEAN('k', "killed", &show_killed,
480
- "show files on the filesystem that need to be removed"),
480
+ N_("show files on the filesystem that need to be removed")),
481
OPT_BIT(0, "directory", &dir.flags,
482
- "show 'other' directories' name only",
482
+ N_("show 'other' directories' name only"),
483
DIR_SHOW_OTHER_DIRECTORIES),
484
OPT_NEGBIT(0, "empty-directory", &dir.flags,
485
- "don't show empty directories",
485
+ N_("don't show empty directories"),
486
DIR_HIDE_EMPTY_DIRECTORIES),
487
OPT_BOOLEAN('u', "unmerged", &show_unmerged,
488
- "show unmerged files in the output"),
488
+ N_("show unmerged files in the output")),
489
OPT_BOOLEAN(0, "resolve-undo", &show_resolve_undo,
490
- "show resolve-undo information"),
491
- { OPTION_CALLBACK, 'x', "exclude", &dir.exclude_list[EXC_CMDL], "pattern",
492
- "skip files matching pattern",
490
+ N_("show resolve-undo information")),
491
+ { OPTION_CALLBACK, 'x', "exclude", &dir.exclude_list[EXC_CMDL], N_("pattern"),
492
+ N_("skip files matching pattern"),
493
0, option_parse_exclude },
494
- { OPTION_CALLBACK, 'X', "exclude-from", &dir, "file",
495
- "exclude patterns are read from <file>",
494
+ { OPTION_CALLBACK, 'X', "exclude-from", &dir, N_("file"),
495
+ N_("exclude patterns are read from <file>"),
496
0, option_parse_exclude_from },
497
- OPT_STRING(0, "exclude-per-directory", &dir.exclude_per_dir, "file",
498
- "read additional per-directory exclude patterns in <file>"),
497
+ OPT_STRING(0, "exclude-per-directory", &dir.exclude_per_dir, N_("file"),
498
+ N_("read additional per-directory exclude patterns in <file>")),
499
{ OPTION_CALLBACK, 0, "exclude-standard", &dir, NULL,
500
- "add the standard git exclusions",
500
+ N_("add the standard git exclusions"),
501
PARSE_OPT_NOARG, option_parse_exclude_standard },
502
{ OPTION_SET_INT, 0, "full-name", &prefix_len, NULL,
503
- "make the output relative to the project top directory",
503
+ N_("make the output relative to the project top directory"),
504
PARSE_OPT_NOARG | PARSE_OPT_NONEG, NULL },
505
OPT_BOOLEAN(0, "error-unmatch", &error_unmatch,
506
- "if any <file> is not in the index, treat this as an error"),
507
- OPT_STRING(0, "with-tree", &with_tree, "tree-ish",
508
- "pretend that paths removed since <tree-ish> are still present"),
506
+ N_("if any <file> is not in the index, treat this as an error")),
507
+ OPT_STRING(0, "with-tree", &with_tree, N_("tree-ish"),
508
+ N_("pretend that paths removed since <tree-ish> are still present")),
509
OPT__ABBREV(&abbrev),
510
- OPT_BOOLEAN(0, "debug", &debug_mode, "show debugging data"),
510
+ OPT_BOOLEAN(0, "debug", &debug_mode, N_("show debugging data")),
511
OPT_END()
512
};
513