diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/poll/poll.vue | 7 | ||||
| -rw-r--r-- | src/i18n/en.json | 3 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/components/poll/poll.vue b/src/components/poll/poll.vue index 42819c19..f1ae8f9c 100644 --- a/src/components/poll/poll.vue +++ b/src/components/poll/poll.vue @@ -58,7 +58,12 @@ {{ $t('polls.vote') }} </button> <div class="total"> - {{ totalVotesCount }} {{ $t("polls.votes") }} · + <template v-if="poll.multiple"> + {{ $tc("polls.people_voted_count", poll.voters_count, { count: poll.voters_count }) }} · + </template> + <template v-else> + {{ $tc("polls.votes_count", poll.votes_count, { count: poll.votes_count }) }} · + </template> </div> <i18n :path="expired ? 'polls.expired' : 'polls.expires_in'"> <Timeago diff --git a/src/i18n/en.json b/src/i18n/en.json index 1d087bbd..f366445f 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -147,7 +147,8 @@ "add_poll": "Add Poll", "add_option": "Add Option", "option": "Option", - "votes": "votes", + "people_voted_count": "{count} person voted | {count} people voted", + "votes_count": "{count} vote | {count} votes", "vote": "Vote", "type": "Poll type", "single_choice": "Single choice", |
