Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
i18n: git-commit advice messages
author
Ævar Arnfjörð Bjarmason
<avarab@gmail.com>
Tue, 22 Feb 2011 23:41:49 +0000
(23:41 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 10 Mar 2011 07:52:54 +0000
(23:52 -0800)
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
0b430a1
)
diff --git
a/builtin/commit.c
b/builtin/commit.c
index fc301e7c8cadd76747a1b4810922d125f42894a5..271f31127cc338359fddf423d266bc2abba9dc23 100644
(file)
--- a/
builtin/commit.c
+++ b/
builtin/commit.c
@@
-38,7
+38,7
@@
static const char * const builtin_status_usage[] = {
};
static const char implicit_ident_advice[] =
};
static const char implicit_ident_advice[] =
-"Your name and email address were configured automatically based\n"
+
N_(
"Your name and email address were configured automatically based\n"
"on your username and hostname. Please check that they are accurate.\n"
"You can suppress this message by setting them explicitly:\n"
"\n"
"on your username and hostname. Please check that they are accurate.\n"
"You can suppress this message by setting them explicitly:\n"
"\n"
@@
-47,12
+47,12
@@
static const char implicit_ident_advice[] =
"\n"
"After doing this, you may fix the identity used for this commit with:\n"
"\n"
"\n"
"After doing this, you may fix the identity used for this commit with:\n"
"\n"
-" git commit --amend --reset-author\n";
+" git commit --amend --reset-author\n"
)
;
static const char empty_amend_advice[] =
static const char empty_amend_advice[] =
-"You asked to amend the most recent commit, but doing so would make\n"
+
N_(
"You asked to amend the most recent commit, but doing so would make\n"
"it empty. You can repeat your command with --allow-empty, or you can\n"
"it empty. You can repeat your command with --allow-empty, or you can\n"
-"remove the commit entirely with \"git reset HEAD^\".\n";
+"remove the commit entirely with \"git reset HEAD^\".\n"
)
;
static unsigned char head_sha1[20];
static unsigned char head_sha1[20];
@@
-770,7
+770,7
@@
static int prepare_to_commit(const char *index_file, const char *prefix,
!(amend && is_a_merge(head_sha1))) {
run_status(stdout, index_file, prefix, 0, s);
if (amend)
!(amend && is_a_merge(head_sha1))) {
run_status(stdout, index_file, prefix, 0, s);
if (amend)
- fputs(
empty_amend_advice
, stderr);
+ fputs(
_(empty_amend_advice)
, stderr);
return 0;
}
return 0;
}
@@
-1197,7
+1197,7
@@
static void print_summary(const char *prefix, const unsigned char *sha1)
strbuf_addbuf_percentquote(&format, &committer_ident);
if (advice_implicit_identity) {
strbuf_addch(&format, '\n');
strbuf_addbuf_percentquote(&format, &committer_ident);
if (advice_implicit_identity) {
strbuf_addch(&format, '\n');
- strbuf_addstr(&format,
implicit_ident_advice
);
+ strbuf_addstr(&format,
_(implicit_ident_advice)
);
}
}
strbuf_release(&author_ident);
}
}
strbuf_release(&author_ident);