Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
i18n: update-ref: mark parseopt strings for translation
author
Nguyễn Thái Ngọc Duy
<pclouds@gmail.com>
Mon, 20 Aug 2012 12:32:49 +0000
(19:32 +0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 22 Aug 2012 17:58:29 +0000
(10:58 -0700)
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/update-ref.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
4a4838b
)
diff --git
a/builtin/update-ref.c
b/builtin/update-ref.c
index 835c62ab15c742af2f75e7bf66e35501701ed15a..b30394ff61f9e5ae34c24a4cb0f65250be4c06b5 100644
(file)
--- a/
builtin/update-ref.c
+++ b/
builtin/update-ref.c
@@
-4,8
+4,8
@@
#include "parse-options.h"
static const char * const git_update_ref_usage[] = {
#include "parse-options.h"
static const char * const git_update_ref_usage[] = {
-
"git update-ref [options] -d <refname> [<oldval>]"
,
-
"git update-ref [options] <refname> <newval> [<oldval>]"
,
+
N_("git update-ref [options] -d <refname> [<oldval>]")
,
+
N_("git update-ref [options] <refname> <newval> [<oldval>]")
,
NULL
};
NULL
};
@@
-15,10
+15,10
@@
int cmd_update_ref(int argc, const char **argv, const char *prefix)
unsigned char sha1[20], oldsha1[20];
int delete = 0, no_deref = 0, flags = 0;
struct option options[] = {
unsigned char sha1[20], oldsha1[20];
int delete = 0, no_deref = 0, flags = 0;
struct option options[] = {
- OPT_STRING( 'm', NULL, &msg,
"reason", "reason of the update"
),
- OPT_BOOLEAN('d', NULL, &delete,
"deletes the reference"
),
+ OPT_STRING( 'm', NULL, &msg,
N_("reason"), N_("reason of the update")
),
+ OPT_BOOLEAN('d', NULL, &delete,
N_("deletes the reference")
),
OPT_BOOLEAN( 0 , "no-deref", &no_deref,
OPT_BOOLEAN( 0 , "no-deref", &no_deref,
-
"update <refname> not the one it points to"
),
+
N_("update <refname> not the one it points to")
),
OPT_END(),
};
OPT_END(),
};