i18n: update-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
82269505b9b0f1e46ba89f3c5e735b3827aa4126
1 file changed
+5
-5
builtin/update-ref.c
+5
-5
@@ -4,8 +4,8 @@
4
#include "parse-options.h"
5
6
static const char * const git_update_ref_usage[] = {
7
- "git update-ref [options] -d <refname> [<oldval>]",
8
- "git update-ref [options] <refname> <newval> [<oldval>]",
7
+ N_("git update-ref [options] -d <refname> [<oldval>]"),
8
+ N_("git update-ref [options] <refname> <newval> [<oldval>]"),
9
NULL
10
};
11
@@ -15,10 +15,10 @@ int cmd_update_ref(int argc, const char **argv, const char *prefix)
15
unsigned char sha1[20], oldsha1[20];
16
int delete = 0, no_deref = 0, flags = 0;
17
struct option options[] = {
18
- OPT_STRING( 'm', NULL, &msg, "reason", "reason of the update"),
19
- OPT_BOOLEAN('d', NULL, &delete, "deletes the reference"),
18
+ OPT_STRING( 'm', NULL, &msg, N_("reason"), N_("reason of the update")),
19
+ OPT_BOOLEAN('d', NULL, &delete, N_("deletes the reference")),
20
OPT_BOOLEAN( 0 , "no-deref", &no_deref,
21
- "update <refname> not the one it points to"),
21
+ N_("update <refname> not the one it points to")),
22
OPT_END(),
23
};
24