diff --git a/locale/en.json b/locale/en.json index 496b72e..1cdefed 100644 --- a/locale/en.json +++ b/locale/en.json @@ -355,8 +355,12 @@ "Save the new title": "Save the new title", "Simple editor": "Simple editor", "Title": "Title of the poll", + "Voters email adresses are not collected": "Voters email adresses are not collected", + "Voters email adresses are collected": "Voters email adresses are collected", + "Voters email adresses are collected and required": "Voters email adresses are collected and required", + "Voters email adresses are collected, required and verified": "Voters email adresses are collected, required and verified", "Votes and comments are locked": "Votes and comments are locked", - "Votes protected by password": "Votes protected by password" + "Votes protected by password": "Votes protected by password", }, "Step 1": { "All voters can modify any vote": "All voters can modify any vote", diff --git a/tpl/part/poll_info.tpl b/tpl/part/poll_info.tpl index 20eb57a..09defaf 100644 --- a/tpl/part/poll_info.tpl +++ b/tpl/part/poll_info.tpl @@ -233,9 +233,19 @@
- {if $poll->collect_users_mail} -

{__('PollInfo', 'Collecting the polled users emails')}

- {/if} + {if $poll->collect_users_mail == constant("Framadate\Collect_mail::NO_COLLECT")} + {$txt=__('PollInfo', 'Voters email adresses are not collected')} + {else if $poll->collect_users_mail == constant("Framadate\Collect_mail::COLLECT")} + {$txt=__('PollInfo', 'Voters email adresses are collected')} + {else if $poll->collect_users_mail == constant("Framadate\Collect_mail::COLLECT_REQUIRED")} + {$txt=__('PollInfo', 'Voters email adresses are collected and required')} + {else if $poll->collect_users_mail == constant("Framadate\Collect_mail::COLLECT_REQUIRED_VERIFIED")} + {$txt=__('PollInfo', 'Voters email adresses are collected, required and verified')} + {else} + {$txt='Error'} + {/if} +

{$txt|html}

+
{/if}