@@ -466,7 +466,7 @@ static void add_verbose_info(struct strbuf *out, struct ref_item *item,
466466 int verbose , int abbrev )
467467{
468468 struct strbuf subject = STRBUF_INIT , stat = STRBUF_INIT ;
469- const char * sub = " **** invalid ref ****" ;
469+ const char * sub = _ ( " **** invalid ref ****" ) ;
470470 struct commit * commit = item -> commit ;
471471
472472 if (commit && !parse_commit (commit )) {
@@ -590,7 +590,7 @@ static int print_ref_list(int kinds, int detached, int verbose, int abbrev, stru
590590 struct commit * filter ;
591591 filter = lookup_commit_reference_gently (merge_filter_ref , 0 );
592592 if (!filter )
593- die ("object '%s' does not point to a commit" ,
593+ die (_ ( "object '%s' does not point to a commit" ) ,
594594 sha1_to_hex (merge_filter_ref ));
595595
596596 filter -> object .flags |= UNINTERESTING ;
@@ -854,7 +854,7 @@ int cmd_branch(int argc, const char **argv, const char *prefix)
854854
855855 if (!argc ) {
856856 if (detached )
857- die ("Cannot give description to detached HEAD" );
857+ die (_ ( "Cannot give description to detached HEAD" ) );
858858 branch_name = head ;
859859 } else if (argc == 1 )
860860 branch_name = argv [0 ];
@@ -866,10 +866,11 @@ int cmd_branch(int argc, const char **argv, const char *prefix)
866866 strbuf_release (& branch_ref );
867867
868868 if (!argc )
869- return error ("No commit on branch '%s' yet." ,
869+ return error (_ ( "No commit on branch '%s' yet." ) ,
870870 branch_name );
871871 else
872- return error ("No such branch '%s'." , branch_name );
872+ return error (_ ("No branch named '%s'." ),
873+ branch_name );
873874 }
874875 strbuf_release (& branch_ref );
875876
0 commit comments