aboutsummaryrefslogtreecommitdiff
path: root/overview.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-01-20 16:44:00 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-01-20 16:44:00 +0100
commit93a2b996386c989bd28013332086f7489e7c7b52 (patch)
tree4d8f274f416a94ae4136d4f22f2aacf7cefb2139 /overview.rb
parent3488b0c58caa8250c81fd2d5e5a15a2d4332e2e1 (diff)
added localization support + german language
Diffstat (limited to 'overview.rb')
-rwxr-xr-xoverview.rb13
1 files changed, 9 insertions, 4 deletions
diff --git a/overview.rb b/overview.rb
index 3355ae3..0286efa 100755
--- a/overview.rb
+++ b/overview.rb
@@ -23,17 +23,22 @@ if __FILE__ == $0
load "../dudle.rb"
-$d = Dudle.new("Overview")
+$d = Dudle.new
$d.wizzard_redirect
+
+$d << _("The link to your poll is:")
+
+mailstr = _("Send this link via email...")
+nextstr = _("To the Vote interface")
+
$d << <<END
-The link to your poll is:
<pre>#{SITEURL}</pre>
-<a href='mailto:?subject=link%20to%20dudle%20poll%20about%20#{CGI.escapeHTML(CGI.escape($d.title).gsub("+","%20"))}&amp;body=#{SITEURL}'>Send this link via email...</a>
+<a href='mailto:?subject=link%20to%20dudle%20poll%20about%20#{CGI.escapeHTML(CGI.escape($d.title).gsub("+","%20"))}&amp;body=#{SITEURL}'>#{mailstr}</a>
<form method='get' action='.'>
<div style='margin-top:1ex'>
- <input type='submit' value='To the Vote interface' />
+ <input type='submit' value='#{nextstr}' />
</div>
</form>
END