@voters[voter] = choice
return _("recorded your vote for %{choice}: %{value}") % {
+ :choice => choice,
:value => @answers[choice][:value]
}
else
end
def options
- options = _("options are: ")
+ options = _("options are: ").dup
@answers.each { |letter, info|
options << "#{Bold}#{letter}#{NormalText}) #{info[:value]} "
}
command = _("poll vote %{id} <SINGLE-LETTER>") % {
:id => poll.id
}
- instructions = _("you have %{duration}, vote with ")
+ instructions = _("you have %{duration}, vote with ").dup
instructions << _("%{priv} or %{public}")
m.reply instructions % {
:duration => "#{Bold}#{target_duration}#{Bold}",