Custom vote text (singular and plural) #130
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi Lester! First of all, thanks for the plugin. I know it's a bit dated, but still works great. 👍
Recently I needed a feature that was mentioned on #21, so I thought about opening this PR.
With this changes, you can set custom vote texts for singular words as well as plural words on the Options Page (it defaults to 'vote/votes'). It implements a new token (%RATINGS_VOTE_TEXT%) so that it can be replaced with the correct value, given the number of ratings.
I've also replaced all the custom default templates that had the word 'votes' with the new token.