@@ -466,7 +466,7 @@ static void add_verbose_info(struct strbuf *out, struct ref_item *item,
466
466
int verbose , int abbrev )
467
467
{
468
468
struct strbuf subject = STRBUF_INIT , stat = STRBUF_INIT ;
469
- const char * sub = " **** invalid ref ****" ;
469
+ const char * sub = _ ( " **** invalid ref ****" ) ;
470
470
struct commit * commit = item -> commit ;
471
471
472
472
if (commit && !parse_commit (commit )) {
@@ -590,7 +590,7 @@ static int print_ref_list(int kinds, int detached, int verbose, int abbrev, stru
590
590
struct commit * filter ;
591
591
filter = lookup_commit_reference_gently (merge_filter_ref , 0 );
592
592
if (!filter )
593
- die ("object '%s' does not point to a commit" ,
593
+ die (_ ( "object '%s' does not point to a commit" ) ,
594
594
sha1_to_hex (merge_filter_ref ));
595
595
596
596
filter -> object .flags |= UNINTERESTING ;
@@ -854,7 +854,7 @@ int cmd_branch(int argc, const char **argv, const char *prefix)
854
854
855
855
if (!argc ) {
856
856
if (detached )
857
- die ("Cannot give description to detached HEAD" );
857
+ die (_ ( "Cannot give description to detached HEAD" ) );
858
858
branch_name = head ;
859
859
} else if (argc == 1 )
860
860
branch_name = argv [0 ];
@@ -866,10 +866,11 @@ int cmd_branch(int argc, const char **argv, const char *prefix)
866
866
strbuf_release (& branch_ref );
867
867
868
868
if (!argc )
869
- return error ("No commit on branch '%s' yet." ,
869
+ return error (_ ( "No commit on branch '%s' yet." ) ,
870
870
branch_name );
871
871
else
872
- return error ("No such branch '%s'." , branch_name );
872
+ return error (_ ("No branch named '%s'." ),
873
+ branch_name );
873
874
}
874
875
strbuf_release (& branch_ref );
875
876
0 commit comments