i18n: update-index: 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 4a4838b46ade09a32958b44c0bb00fe7c708bea4
1 file changed +28 -28
builtin/update-index.c
+28 -28
@@ -398,7 +398,7 @@ static void read_index_info(int line_termination)
398 }
399
400 static const char * const update_index_usage[] = {
401 - "git update-index [options] [--] [<file>...]",
401 + N_("git update-index [options] [--] [<file>...]"),
402 NULL
403 };
404
@@ -714,83 +714,83 @@ int cmd_update_index(int argc, const char **argv, const char *prefix)
714 int parseopt_state = PARSE_OPT_UNKNOWN;
715 struct option options[] = {
716 OPT_BIT('q', NULL, &refresh_args.flags,
717 - "continue refresh even when index needs update",
717 + N_("continue refresh even when index needs update"),
718 REFRESH_QUIET),
719 OPT_BIT(0, "ignore-submodules", &refresh_args.flags,
720 - "refresh: ignore submodules",
720 + N_("refresh: ignore submodules"),
721 REFRESH_IGNORE_SUBMODULES),
722 OPT_SET_INT(0, "add", &allow_add,
723 - "do not ignore new files", 1),
723 + N_("do not ignore new files"), 1),
724 OPT_SET_INT(0, "replace", &allow_replace,
725 - "let files replace directories and vice-versa", 1),
725 + N_("let files replace directories and vice-versa"), 1),
726 OPT_SET_INT(0, "remove", &allow_remove,
727 - "notice files missing from worktree", 1),
727 + N_("notice files missing from worktree"), 1),
728 OPT_BIT(0, "unmerged", &refresh_args.flags,
729 - "refresh even if index contains unmerged entries",
729 + N_("refresh even if index contains unmerged entries"),
730 REFRESH_UNMERGED),
731 {OPTION_CALLBACK, 0, "refresh", &refresh_args, NULL,
732 - "refresh stat information",
732 + N_("refresh stat information"),
733 PARSE_OPT_NOARG | PARSE_OPT_NONEG,
734 refresh_callback},
735 {OPTION_CALLBACK, 0, "really-refresh", &refresh_args, NULL,
736 - "like --refresh, but ignore assume-unchanged setting",
736 + N_("like --refresh, but ignore assume-unchanged setting"),
737 PARSE_OPT_NOARG | PARSE_OPT_NONEG,
738 really_refresh_callback},
739 {OPTION_LOWLEVEL_CALLBACK, 0, "cacheinfo", NULL,
740 - "<mode> <object> <path>",
741 - "add the specified entry to the index",
740 + N_("<mode> <object> <path>"),
741 + N_("add the specified entry to the index"),
742 PARSE_OPT_NOARG | /* disallow --cacheinfo=<mode> form */
743 PARSE_OPT_NONEG | PARSE_OPT_LITERAL_ARGHELP,
744 (parse_opt_cb *) cacheinfo_callback},
745 - {OPTION_CALLBACK, 0, "chmod", &set_executable_bit, "(+/-)x",
746 - "override the executable bit of the listed files",
745 + {OPTION_CALLBACK, 0, "chmod", &set_executable_bit, N_("(+/-)x"),
746 + N_("override the executable bit of the listed files"),
747 PARSE_OPT_NONEG | PARSE_OPT_LITERAL_ARGHELP,
748 chmod_callback},
749 {OPTION_SET_INT, 0, "assume-unchanged", &mark_valid_only, NULL,
750 - "mark files as \"not changing\"",
750 + N_("mark files as \"not changing\""),
751 PARSE_OPT_NOARG | PARSE_OPT_NONEG, NULL, MARK_FLAG},
752 {OPTION_SET_INT, 0, "no-assume-unchanged", &mark_valid_only, NULL,
753 - "clear assumed-unchanged bit",
753 + N_("clear assumed-unchanged bit"),
754 PARSE_OPT_NOARG | PARSE_OPT_NONEG, NULL, UNMARK_FLAG},
755 {OPTION_SET_INT, 0, "skip-worktree", &mark_skip_worktree_only, NULL,
756 - "mark files as \"index-only\"",
756 + N_("mark files as \"index-only\""),
757 PARSE_OPT_NOARG | PARSE_OPT_NONEG, NULL, MARK_FLAG},
758 {OPTION_SET_INT, 0, "no-skip-worktree", &mark_skip_worktree_only, NULL,
759 - "clear skip-worktree bit",
759 + N_("clear skip-worktree bit"),
760 PARSE_OPT_NOARG | PARSE_OPT_NONEG, NULL, UNMARK_FLAG},
761 OPT_SET_INT(0, "info-only", &info_only,
762 - "add to index only; do not add content to object database", 1),
762 + N_("add to index only; do not add content to object database"), 1),
763 OPT_SET_INT(0, "force-remove", &force_remove,
764 - "remove named paths even if present in worktree", 1),
764 + N_("remove named paths even if present in worktree"), 1),
765 OPT_SET_INT('z', NULL, &line_termination,
766 - "with --stdin: input lines are terminated by null bytes", '\0'),
766 + N_("with --stdin: input lines are terminated by null bytes"), '\0'),
767 {OPTION_LOWLEVEL_CALLBACK, 0, "stdin", &read_from_stdin, NULL,
768 - "read list of paths to be updated from standard input",
768 + N_("read list of paths to be updated from standard input"),
769 PARSE_OPT_NONEG | PARSE_OPT_NOARG,
770 (parse_opt_cb *) stdin_callback},
771 {OPTION_LOWLEVEL_CALLBACK, 0, "index-info", &line_termination, NULL,
772 - "add entries from standard input to the index",
772 + N_("add entries from standard input to the index"),
773 PARSE_OPT_NONEG | PARSE_OPT_NOARG,
774 (parse_opt_cb *) stdin_cacheinfo_callback},
775 {OPTION_LOWLEVEL_CALLBACK, 0, "unresolve", &has_errors, NULL,
776 - "repopulate stages #2 and #3 for the listed paths",
776 + N_("repopulate stages #2 and #3 for the listed paths"),
777 PARSE_OPT_NONEG | PARSE_OPT_NOARG,
778 (parse_opt_cb *) unresolve_callback},
779 {OPTION_LOWLEVEL_CALLBACK, 'g', "again", &has_errors, NULL,
780 - "only update entries that differ from HEAD",
780 + N_("only update entries that differ from HEAD"),
781 PARSE_OPT_NONEG | PARSE_OPT_NOARG,
782 (parse_opt_cb *) reupdate_callback},
783 OPT_BIT(0, "ignore-missing", &refresh_args.flags,
784 - "ignore files missing from worktree",
784 + N_("ignore files missing from worktree"),
785 REFRESH_IGNORE_MISSING),
786 OPT_SET_INT(0, "verbose", &verbose,
787 - "report actions to standard output", 1),
787 + N_("report actions to standard output"), 1),
788 {OPTION_CALLBACK, 0, "clear-resolve-undo", NULL, NULL,
789 - "(for porcelains) forget saved unresolved conflicts",
789 + N_("(for porcelains) forget saved unresolved conflicts"),
790 PARSE_OPT_NOARG | PARSE_OPT_NONEG,
791 resolve_undo_clear_callback},
792 OPT_INTEGER(0, "index-version", &preferred_index_format,
793 - "write index in this format"),
793 + N_("write index in this format")),
794 OPT_END()
795 };
796