diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2010-11-30 18:46:06 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2010-11-30 18:46:06 +0100 |
commit | 94ab3e427fbeb5c855539fe2b962942be630aba3 (patch) | |
tree | c0d5c307c9330516a0ea1d426c3de2faa44a7977 /data | |
parent | a95675a1961cb5c205ba997c9f0599f453b19d4a (diff) |
poll: cope with gettext frozen string
Some gettext versions freeze the string they return, so dup them before
modifying them.
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/poll.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/poll.rb b/data/rbot/plugins/poll.rb index 4109321d..086a9297 100644 --- a/data/rbot/plugins/poll.rb +++ b/data/rbot/plugins/poll.rb @@ -87,7 +87,7 @@ class ::Poll end def options - options = _("options are: ") + options = _("options are: ").dup @answers.each { |letter, info| options << "#{Bold}#{letter}#{NormalText}) #{info[:value]} " } @@ -201,7 +201,7 @@ class PollPlugin < Plugin 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}", |