i18n: reset: 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
c1e9c2a73dedf79179ee30fd6a552c998d0d4ec7
1 file changed
+10
-10
builtin/reset.c
+10
-10
@@ -22,9 +22,9 @@
22
#include "cache-tree.h"
23
24
static const char * const git_reset_usage[] = {
25
- "git reset [--mixed | --soft | --hard | --merge | --keep] [-q] [<commit>]",
26
- "git reset [-q] <commit> [--] <paths>...",
27
- "git reset --patch [<commit>] [--] [<paths>...]",
25
+ N_("git reset [--mixed | --soft | --hard | --merge | --keep] [-q] [<commit>]"),
26
+ N_("git reset [-q] <commit> [--] <paths>..."),
27
+ N_("git reset --patch [<commit>] [--] [<paths>...]"),
28
NULL
29
};
30
@@ -235,17 +235,17 @@ int cmd_reset(int argc, const char **argv, const char *prefix)
235
struct commit *commit;
236
struct strbuf msg = STRBUF_INIT;
237
const struct option options[] = {
238
- OPT__QUIET(&quiet, "be quiet, only report errors"),
238
+ OPT__QUIET(&quiet, N_("be quiet, only report errors")),
239
OPT_SET_INT(0, "mixed", &reset_type,
240
- "reset HEAD and index", MIXED),
241
- OPT_SET_INT(0, "soft", &reset_type, "reset only HEAD", SOFT),
240
+ N_("reset HEAD and index"), MIXED),
241
+ OPT_SET_INT(0, "soft", &reset_type, N_("reset only HEAD"), SOFT),
242
OPT_SET_INT(0, "hard", &reset_type,
243
- "reset HEAD, index and working tree", HARD),
243
+ N_("reset HEAD, index and working tree"), HARD),
244
OPT_SET_INT(0, "merge", &reset_type,
245
- "reset HEAD, index and working tree", MERGE),
245
+ N_("reset HEAD, index and working tree"), MERGE),
246
OPT_SET_INT(0, "keep", &reset_type,
247
- "reset HEAD but keep local changes", KEEP),
248
- OPT_BOOLEAN('p', "patch", &patch_mode, "select hunks interactively"),
247
+ N_("reset HEAD but keep local changes"), KEEP),
248
+ OPT_BOOLEAN('p', "patch", &patch_mode, N_("select hunks interactively")),
249
OPT_END()
250
};
251