From d87f9d4359f4a6132504f3923cc4c71cdb86e8de Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Fri, 5 Jun 2015 02:34:28 +0200 Subject: [PATCH] singular/plural phrasing in audit report Closes Homebrew/homebrew#40395. Signed-off-by: Baptiste Fontaine --- Library/Homebrew/cmd/audit.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index a31528a0fc..6ebe1af62a 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -46,7 +46,9 @@ module Homebrew end unless problem_count.zero? - ofail "#{problem_count} problems in #{formula_count} formulae" + problems = "problem" + plural(problem_count) + formulae = "formula" + plural(formula_count, "e") + ofail "#{problem_count} #{problems} in #{formula_count} #{formulae}" end end end