Build correct English plural.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 15 Mar 2013 05:50:43 +0000 (06:50 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 15 Mar 2013 05:50:43 +0000 (06:50 +0100)
src/main/java/net/pterodactylus/sonitus/data/Format.java

index 2188b2a..c9c9b08 100644 (file)
@@ -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);
        }
 
 }