122
121
bad_words = [w for w in settings.PROFANITIES_LIST if w in comment.lower()]
124
123
plural = len(bad_words) > 1
126
125
"Watch your mouth! The word %s is not allowed here.",
127
126
"Watch your mouth! The words %s are not allowed here.", plural) % \
128
127
get_text_list(['"%s%s%s"' % (i[0], '-'*(len(i)-2), i[-1]) for i in bad_words], 'and'))