From fa9dcbab7eba2cace43ec6e31475e5d8ee5de9a0 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 1 Feb 2015 15:36:15 +0000 Subject: Find mode: report "1 Match", not "1 Matches". --- content_scripts/vimium_frontend.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'content_scripts') diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index b76f2663..f9a73f3e 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -1015,7 +1015,8 @@ window.goNext = -> showFindModeHUDForQuery = -> if (findModeQueryHasResults || findModeQuery.parsedQuery.length == 0) - HUD.show("/" + findModeQuery.rawQuery + " (" + findModeQuery.matchCount + " Matches)") + plural = if findModeQuery.matchCount == 1 then "" else "es" + HUD.show("/" + findModeQuery.rawQuery + " (" + findModeQuery.matchCount + " Match#{plural})") else HUD.show("/" + findModeQuery.rawQuery + " (No Matches)") -- cgit v1.2.3