@@ -331,17 +331,17 @@ int split_ident_line(struct ident_split *split, const char *line, int len)
331
331
}
332
332
333
333
static const char * env_hint =
334
- "\n"
335
- "*** Please tell me who you are.\n"
336
- "\n"
337
- "Run\n"
338
- "\n"
339
- " git config --global user.email \"[email protected] \"\n"
340
- " git config --global user.name \"Your Name\"\n"
341
- "\n"
342
- "to set your account\'s default identity.\n"
343
- "Omit --global to set the identity only in this repository.\n"
344
- "\n" ;
334
+ N_ ( "\n"
335
+ "*** Please tell me who you are.\n"
336
+ "\n"
337
+ "Run\n"
338
+ "\n"
339
+ " git config --global user.email \"[email protected] \"\n"
340
+ " git config --global user.name \"Your Name\"\n"
341
+ "\n"
342
+ "to set your account\'s default identity.\n"
343
+ "Omit --global to set the identity only in this repository.\n"
344
+ "\n" ) ;
345
345
346
346
const char * fmt_ident (const char * name , const char * email ,
347
347
const char * date_str , int flag )
@@ -356,21 +356,21 @@ const char *fmt_ident(const char *name, const char *email,
356
356
if (!name ) {
357
357
if (strict && ident_use_config_only
358
358
&& !(ident_config_given & IDENT_NAME_GIVEN )) {
359
- fputs (env_hint , stderr );
359
+ fputs (_ ( env_hint ) , stderr );
360
360
die ("no name was given and auto-detection is disabled" );
361
361
}
362
362
name = ident_default_name ();
363
363
using_default = 1 ;
364
364
if (strict && default_name_is_bogus ) {
365
- fputs (env_hint , stderr );
365
+ fputs (_ ( env_hint ) , stderr );
366
366
die ("unable to auto-detect name (got '%s')" , name );
367
367
}
368
368
}
369
369
if (!* name ) {
370
370
struct passwd * pw ;
371
371
if (strict ) {
372
372
if (using_default )
373
- fputs (env_hint , stderr );
373
+ fputs (_ ( env_hint ) , stderr );
374
374
die ("empty ident name (for <%s>) not allowed" , email );
375
375
}
376
376
pw = xgetpwuid_self (NULL );
@@ -381,12 +381,12 @@ const char *fmt_ident(const char *name, const char *email,
381
381
if (!email ) {
382
382
if (strict && ident_use_config_only
383
383
&& !(ident_config_given & IDENT_MAIL_GIVEN )) {
384
- fputs (env_hint , stderr );
384
+ fputs (_ ( env_hint ) , stderr );
385
385
die ("no email was given and auto-detection is disabled" );
386
386
}
387
387
email = ident_default_email ();
388
388
if (strict && default_email_is_bogus ) {
389
- fputs (env_hint , stderr );
389
+ fputs (_ ( env_hint ) , stderr );
390
390
die ("unable to auto-detect email address (got '%s')" , email );
391
391
}
392
392
}
0 commit comments