From: David ‘Bombe’ Roden Date: Fri, 15 Mar 2013 05:50:43 +0000 (+0100) Subject: Build correct English plural. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=659e87c38e5ce02b7544bdfff08caabc51c2d482;p=sonitus.git Build correct English plural. --- diff --git a/src/main/java/net/pterodactylus/sonitus/data/Format.java b/src/main/java/net/pterodactylus/sonitus/data/Format.java index 2188b2a..c9c9b08 100644 --- a/src/main/java/net/pterodactylus/sonitus/data/Format.java +++ b/src/main/java/net/pterodactylus/sonitus/data/Format.java @@ -110,7 +110,7 @@ public class Format { @Override public String toString() { - return String.format("%d Channels, %d Hz, %s", channels, frequency, encoding); + return String.format("%d Channel%s, %d Hz, %s", channels, channels != 1 ? "s" : "", frequency, encoding); } }