diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-01-20 16:44:00 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-01-20 16:44:00 +0100 |
commit | 93a2b996386c989bd28013332086f7489e7c7b52 (patch) | |
tree | 4d8f274f416a94ae4136d4f22f2aacf7cefb2139 /history.rb | |
parent | 3488b0c58caa8250c81fd2d5e5a15a2d4332e2e1 (diff) |
added localization support + german language
Diffstat (limited to '')
-rwxr-xr-x | history.rb | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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"])} |