ident: mark error messages for translation

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>

Jeff King committed Feb 23, 2017 at 03:12 UTC afb6c30b27069db666a0004f4b6b05c067170088
1 file changed +6 -6
ident.c
+6 -6
@@ -357,13 +357,13 @@ const char *fmt_ident(const char *name, const char *email,
357 if (strict && ident_use_config_only
358 && !(ident_config_given & IDENT_NAME_GIVEN)) {
359 fputs(_(env_hint), stderr);
360 - die("no name was given and auto-detection is disabled");
360 + die(_("no name was given and auto-detection is disabled"));
361 }
362 name = ident_default_name();
363 using_default = 1;
364 if (strict && default_name_is_bogus) {
365 fputs(_(env_hint), stderr);
366 - die("unable to auto-detect name (got '%s')", name);
366 + die(_("unable to auto-detect name (got '%s')"), name);
367 }
368 }
369 if (!*name) {
@@ -371,7 +371,7 @@ const char *fmt_ident(const char *name, const char *email,
371 if (strict) {
372 if (using_default)
373 fputs(_(env_hint), stderr);
374 - die("empty ident name (for <%s>) not allowed", email);
374 + die(_("empty ident name (for <%s>) not allowed"), email);
375 }
376 pw = xgetpwuid_self(NULL);
377 name = pw->pw_name;
@@ -382,12 +382,12 @@ const char *fmt_ident(const char *name, const char *email,
382 if (strict && ident_use_config_only
383 && !(ident_config_given & IDENT_MAIL_GIVEN)) {
384 fputs(_(env_hint), stderr);
385 - die("no email was given and auto-detection is disabled");
385 + die(_("no email was given and auto-detection is disabled"));
386 }
387 email = ident_default_email();
388 if (strict && default_email_is_bogus) {
389 fputs(_(env_hint), stderr);
390 - die("unable to auto-detect email address (got '%s')", email);
390 + die(_("unable to auto-detect email address (got '%s')"), email);
391 }
392 }
393
@@ -403,7 +403,7 @@ const char *fmt_ident(const char *name, const char *email,
403 strbuf_addch(&ident, ' ');
404 if (date_str && date_str[0]) {
405 if (parse_date(date_str, &ident) < 0)
406 - die("invalid date format: %s", date_str);
406 + die(_("invalid date format: %s"), date_str);
407 }
408 else
409 strbuf_addstr(&ident, ident_default_date());