i18n: for-each-ref: 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 18913521e279aaa7dcc757bd801c830d0ba7a0c7
1 file changed +9 -9
builtin/for-each-ref.c
+9 -9
@@ -974,7 +974,7 @@ static int opt_parse_sort(const struct option *opt, const char *arg, int unset)
974 }
975
976 static char const * const for_each_ref_usage[] = {
977 - "git for-each-ref [options] [<pattern>]",
977 + N_("git for-each-ref [options] [<pattern>]"),
978 NULL
979 };
980
@@ -989,19 +989,19 @@ int cmd_for_each_ref(int argc, const char **argv, const char *prefix)
989
990 struct option opts[] = {
991 OPT_BIT('s', "shell", &quote_style,
992 - "quote placeholders suitably for shells", QUOTE_SHELL),
992 + N_("quote placeholders suitably for shells"), QUOTE_SHELL),
993 OPT_BIT('p', "perl", &quote_style,
994 - "quote placeholders suitably for perl", QUOTE_PERL),
994 + N_("quote placeholders suitably for perl"), QUOTE_PERL),
995 OPT_BIT(0 , "python", &quote_style,
996 - "quote placeholders suitably for python", QUOTE_PYTHON),
996 + N_("quote placeholders suitably for python"), QUOTE_PYTHON),
997 OPT_BIT(0 , "tcl", &quote_style,
998 - "quote placeholders suitably for tcl", QUOTE_TCL),
998 + N_("quote placeholders suitably for tcl"), QUOTE_TCL),
999
1000 OPT_GROUP(""),
1001 - OPT_INTEGER( 0 , "count", &maxcount, "show only <n> matched refs"),
1002 - OPT_STRING( 0 , "format", &format, "format", "format to use for the output"),
1003 - OPT_CALLBACK(0 , "sort", sort_tail, "key",
1004 - "field name to sort on", &opt_parse_sort),
1001 + OPT_INTEGER( 0 , "count", &maxcount, N_("show only <n> matched refs")),
1002 + OPT_STRING( 0 , "format", &format, N_("format"), N_("format to use for the output")),
1003 + OPT_CALLBACK(0 , "sort", sort_tail, N_("key"),
1004 + N_("field name to sort on"), &opt_parse_sort),
1005 OPT_END(),
1006 };
1007