diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-03-09 13:46:22 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-03-09 13:46:22 +0100 |
commit | cde5efcc126dd28f590402ae24645fbab4d55140 (patch) | |
tree | 0c549910de230e35002558227acbcb648b2e2376 /poll.rb | |
parent | 6e96bd72df2abee691b900b6e75ae5de23674b25 (diff) |
use better translation format
Diffstat (limited to 'poll.rb')
-rw-r--r-- | poll.rb | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -65,7 +65,7 @@ class Poll def userstring(participant,link) ret = "" - ret += "<a title='" + _("Edit user") + " #{CGI.escapeHTML(participant)}' href=\"?edituser=#{CGI.escapeHTML(CGI.escape(participant))}\">" if link + ret += "<a title='" + _("Edit user %{user}") % {:user => CGI.escapeHTML(participant)} + "' href=\"?edituser=#{CGI.escapeHTML(CGI.escape(participant))}\">" if link ret += participant ret += "<span class='edituser'> <sup>#{EDIT}</sup></span></a>" if link ret @@ -253,16 +253,16 @@ TR ret = "<div id='comments'>" ret += "<h2>" + _("Comments") + "</h2>" - saidstr = _("said on") unless @comment.empty? @comment.each_with_index{|c,i| time,name,comment = c + saidstr = _("%{user} said on %{time}") % {:user => name, :time => time.strftime("%d.%m., %H:%M")} deletestr = _("Delete") ret += <<COMMENT <form method='post' action='.'> <div class='textcolumn'> <h3 class='comment'> - #{name} #{saidstr} #{time.strftime("%d.%m., %H:%M")} + #{saidstr} <input type='hidden' name='delete_comment' value='#{i}' /> <input class='delete_comment_button' type='submit' value='#{deletestr}' /> |