aboutsummaryrefslogtreecommitdiff
path: root/history.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 /history.rb
parent3488b0c58caa8250c81fd2d5e5a15a2d4332e2e1 (diff)
added localization support + german language
Diffstat (limited to '')
-rwxr-xr-xhistory.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/history.rb b/history.rb
index 9537191..cad05be 100755
--- a/history.rb
+++ b/history.rb
@@ -24,18 +24,19 @@ load "../dudle.rb"
if $cgi.include?("revision")
revno=$cgi["revision"].to_i
- versiontitle = "Poll of Version #{revno}"
- $d = Dudle.new("History",revno)
+ $d = Dudle.new(revno)
+ versiontitle = _("Poll of Version") + " #{revno}"
else
revno = VCS.revno
- versiontitle = "Current Poll (Version #{revno})"
- $d = Dudle.new("History")
+ $d = Dudle.new
+ versiontitle = _("Current Poll") + " (" + _("Version") + " #{revno})"
end
+historystr = _("History")
$d << <<HTML
<h2>#{versiontitle}</h2>
#{$d.table.to_html("",false)}
-<h2>History</h2>
+<h2>#{historystr}</h2>
<div id='history'>
#{$d.table.history_selectform($cgi.include?("revision") ? revno : nil, $cgi["history"])}