From b278211f23012b360a86e56ac02bcb3938e61a08 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sun, 11 Nov 2012 19:16:32 +0000 Subject: [PATCH] bubbles: make sure grammar for number of events is always correct --- SparkleShare/SparkleBubblesController.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SparkleShare/SparkleBubblesController.cs b/SparkleShare/SparkleBubblesController.cs index 57399431..91279949 100755 --- a/SparkleShare/SparkleBubblesController.cs +++ b/SparkleShare/SparkleBubblesController.cs @@ -66,7 +66,11 @@ namespace SparkleShare { } else if (change_set.Changes.Count > 1) { message = string.Format (message, change_set.Changes [0].Path); - return string.Format (message + " and {0} more", change_set.Changes.Count - 1); + + if ((change_set.Changes.Count - 1) == 1) + return string.Format (message + " and one other event", change_set.Changes.Count - 1); + else + return string.Format (message + " and {0} other events", change_set.Changes.Count - 1); } else { return "did something magical";