1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-15 10:33:59 +02:00

TWK-770: Fix echonest sentence summary grammar

This commit is contained in:
Leo Franchi
2012-03-31 10:03:53 -04:00
parent 5b6c4560ae
commit 5dcf426cdf

View File

@@ -597,7 +597,9 @@ EchonestGenerator::sentenceSummary()
suffix = ", "; suffix = ", ";
else else
suffix = "."; suffix = ".";
} else } else if ( i < required.size() - 2 ) // An item in the list that is before the second to last one, don't use ", and", we only want that for the last item
suffix += ", ";
else
suffix += ", and "; suffix += ", and ";
} }
sentence += center + suffix; sentence += center + suffix;