From 3259ac502400f5bc6ce9671326bf4a9d3554f07f Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Mon, 6 Apr 2015 00:56:38 -0700 Subject: [PATCH] gitweb: correct plurals text Signed-off-by: Kyle J. McKay --- gitweb/gitweb.perl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 7a5b23acf2..8e7bb1e336 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -5697,11 +5697,12 @@ sub git_project_list_rows { print ""; if ($pr->{'forks'}) { my $nforks = scalar @{$pr->{'forks'}}; + my $s = $nforks == 1 ? '' : 's'; if ($nforks > 0) { print $cgi->a({-href => href(project=>$pr->{'path'}, action=>"forks"), - -title => "$nforks forks"}, "+"); + -title => "$nforks fork$s"}, "+"); } else { - print $cgi->span({-title => "$nforks forks"}, "+"); + print $cgi->span({-title => "$nforks fork$s"}, "+"); } } print "\n"; -- 2.11.4.GIT