i18n: name-rev: 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
422cad0ab11951fb9dd68cfacf11f92ee72ee4f2
1 file changed
+11
-11
builtin/name-rev.c
+11
-11
@@ -172,9 +172,9 @@ static void show_name(const struct object *obj,
172
}
173
174
static char const * const name_rev_usage[] = {
175
- "git name-rev [options] <commit>...",
176
- "git name-rev [options] --all",
177
- "git name-rev [options] --stdin",
175
+ N_("git name-rev [options] <commit>..."),
176
+ N_("git name-rev [options] --all"),
177
+ N_("git name-rev [options] --stdin"),
178
NULL
179
};
180
@@ -226,16 +226,16 @@ int cmd_name_rev(int argc, const char **argv, const char *prefix)
226
int all = 0, transform_stdin = 0, allow_undefined = 1, always = 0;
227
struct name_ref_data data = { 0, 0, NULL };
228
struct option opts[] = {
229
- OPT_BOOLEAN(0, "name-only", &data.name_only, "print only names (no SHA-1)"),
230
- OPT_BOOLEAN(0, "tags", &data.tags_only, "only use tags to name the commits"),
231
- OPT_STRING(0, "refs", &data.ref_filter, "pattern",
232
- "only use refs matching <pattern>"),
229
+ OPT_BOOLEAN(0, "name-only", &data.name_only, N_("print only names (no SHA-1)")),
230
+ OPT_BOOLEAN(0, "tags", &data.tags_only, N_("only use tags to name the commits")),
231
+ OPT_STRING(0, "refs", &data.ref_filter, N_("pattern"),
232
+ N_("only use refs matching <pattern>")),
233
OPT_GROUP(""),
234
- OPT_BOOLEAN(0, "all", &all, "list all commits reachable from all refs"),
235
- OPT_BOOLEAN(0, "stdin", &transform_stdin, "read from stdin"),
236
- OPT_BOOLEAN(0, "undefined", &allow_undefined, "allow to print `undefined` names"),
234
+ OPT_BOOLEAN(0, "all", &all, N_("list all commits reachable from all refs")),
235
+ OPT_BOOLEAN(0, "stdin", &transform_stdin, N_("read from stdin")),
236
+ OPT_BOOLEAN(0, "undefined", &allow_undefined, N_("allow to print `undefined` names")),
237
OPT_BOOLEAN(0, "always", &always,
238
- "show abbreviated commit object as fallback"),
238
+ N_("show abbreviated commit object as fallback")),
239
OPT_END(),
240
};
241