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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user