From 659e87c38e5ce02b7544bdfff08caabc51c2d482 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 15 Mar 2013 06:50:43 +0100 Subject: [PATCH] Build correct English plural. --- src/main/java/net/pterodactylus/sonitus/data/Format.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.7.4