aboutsummaryrefslogtreecommitdiff
path: root/poll.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-03-09 13:46:22 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-03-09 13:46:22 +0100
commitcde5efcc126dd28f590402ae24645fbab4d55140 (patch)
tree0c549910de230e35002558227acbcb648b2e2376 /poll.rb
parent6e96bd72df2abee691b900b6e75ae5de23674b25 (diff)
use better translation format
Diffstat (limited to 'poll.rb')
-rw-r--r--poll.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/poll.rb b/poll.rb
index 31ae302..6ca7e5d 100644
--- a/poll.rb
+++ b/poll.rb
@@ -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}' />
&nbsp;
<input class='delete_comment_button' type='submit' value='#{deletestr}' />