Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
ident: mark error messages for translation
author
Jeff King
<peff@peff.net>
Thu, 23 Feb 2017 08:12:30 +0000
(
03:12
-0500)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 23 Feb 2017 20:44:20 +0000
(12:44 -0800)
We already translate the big "please tell me who you are"
hint, but missed the individual error messages that go with
it.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ident.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
3b9e3c2
)
diff --git
a/ident.c
b/ident.c
index ac4ae02b485637002869b3fc7a78033d7a5b6aec..dde82983ade666549954c86ad491468a740a21a5 100644
(file)
--- a/
ident.c
+++ b/
ident.c
@@
-357,13
+357,13
@@
const char *fmt_ident(const char *name, const char *email,
if (strict && ident_use_config_only
&& !(ident_config_given & IDENT_NAME_GIVEN)) {
fputs(_(env_hint), stderr);
if (strict && ident_use_config_only
&& !(ident_config_given & IDENT_NAME_GIVEN)) {
fputs(_(env_hint), stderr);
- die(
"no name was given and auto-detection is disabled"
);
+ die(
_("no name was given and auto-detection is disabled")
);
}
name = ident_default_name();
using_default = 1;
if (strict && default_name_is_bogus) {
fputs(_(env_hint), stderr);
}
name = ident_default_name();
using_default = 1;
if (strict && default_name_is_bogus) {
fputs(_(env_hint), stderr);
- die(
"unable to auto-detect name (got '%s')"
, name);
+ die(
_("unable to auto-detect name (got '%s')")
, name);
}
}
if (!*name) {
}
}
if (!*name) {
@@
-371,7
+371,7
@@
const char *fmt_ident(const char *name, const char *email,
if (strict) {
if (using_default)
fputs(_(env_hint), stderr);
if (strict) {
if (using_default)
fputs(_(env_hint), stderr);
- die(
"empty ident name (for <%s>) not allowed"
, email);
+ die(
_("empty ident name (for <%s>) not allowed")
, email);
}
pw = xgetpwuid_self(NULL);
name = pw->pw_name;
}
pw = xgetpwuid_self(NULL);
name = pw->pw_name;
@@
-382,12
+382,12
@@
const char *fmt_ident(const char *name, const char *email,
if (strict && ident_use_config_only
&& !(ident_config_given & IDENT_MAIL_GIVEN)) {
fputs(_(env_hint), stderr);
if (strict && ident_use_config_only
&& !(ident_config_given & IDENT_MAIL_GIVEN)) {
fputs(_(env_hint), stderr);
- die(
"no email was given and auto-detection is disabled"
);
+ die(
_("no email was given and auto-detection is disabled")
);
}
email = ident_default_email();
if (strict && default_email_is_bogus) {
fputs(_(env_hint), stderr);
}
email = ident_default_email();
if (strict && default_email_is_bogus) {
fputs(_(env_hint), stderr);
- die(
"unable to auto-detect email address (got '%s')"
, email);
+ die(
_("unable to auto-detect email address (got '%s')")
, email);
}
}
}
}
@@
-403,7
+403,7
@@
const char *fmt_ident(const char *name, const char *email,
strbuf_addch(&ident, ' ');
if (date_str && date_str[0]) {
if (parse_date(date_str, &ident) < 0)
strbuf_addch(&ident, ' ');
if (date_str && date_str[0]) {
if (parse_date(date_str, &ident) < 0)
- die(
"invalid date format: %s"
, date_str);
+ die(
_("invalid date format: %s")
, date_str);
}
else
strbuf_addstr(&ident, ident_default_date());
}
else
strbuf_addstr(&ident, ident_default_date());