controller: FormatMessage: don't return null on events like merge commits

This commit is contained in:
Hylke Bons 2011-05-17 01:05:06 +01:00
parent d1a545d65f
commit 67671e2fcb

View file

@ -652,9 +652,12 @@ namespace SparkleShare {
change_set.Edited.Count +
change_set.Deleted.Count) - 1;
if (changes_count > 0)
message += " " + String.Format (Catalog.GetPluralString ("and {0} more", "and {0} more", changes_count),
changes_count);
if (changes_count > 0) {
string msg = Catalog.GetPluralString ("and {0} more", "and {0} more", changes_count);
message += " " + String.Format (msg, changes_count);
} else {
message += _("did something magical");
}
return message;
}