summaryrefslogtreecommitdiff
path: root/web/views/download.erb
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2010-11-14 18:11:34 +0100
committerJochen Topf <jochen@topf.org>2010-11-14 18:11:34 +0100
commit3310edc5b2f95010922e7ac4aa343cb865546d9e (patch)
tree5e8125b9c620af7c602b9eda3d3110899c2ce543 /web/views/download.erb
parent214d1a003f83cee2e1cfa8712e5776a493c4ddbd (diff)
downloadtaginfo-3310edc5b2f95010922e7ac4aa343cb865546d9e.tar
taginfo-3310edc5b2f95010922e7ac4aa343cb865546d9e.tar.gz
More preparations for i18n
Diffstat (limited to 'web/views/download.erb')
-rw-r--r--web/views/download.erb16
1 files changed, 5 insertions, 11 deletions
diff --git a/web/views/download.erb b/web/views/download.erb
index 3fc873f..ad35d94 100644
--- a/web/views/download.erb
+++ b/web/views/download.erb
@@ -1,17 +1,10 @@
-<h1>Download</h1>
+<h1><%= t.taginfo.download %></h1>
-<p>Here you can download the databases used by Taginfo. All the data is stored
-in <img src="/img/link-extern.gif" alt=""/><a class="extlink"
-href="http://www.sqlite.org/">Sqlite</a> databases. The database files are then
-packed with <img src="/img/link-extern.gif" alt=""/><a class="extlink"
-href="http://www.bzip.org/">bzip2</a>.</p>
-
-<p>If you don't want to download these databases, but need automated access to
-the data, you can also use the <a href="/about">API</a>.
+<%= t.pages.download.index.intro %>
<table class="list">
<tr>
- <th></th><th></th><th>File</th><th>Packed</th><th>Unpacked</th><th>Description</th><th></th>
+ <th></th><th></th><th><%= t.pages.download.index.file %></th><th><%= t.pages.download.index.packed %></th><th><%= t.pages.download.index.unpacked %></th><th><%= t.pages.download.index.description %></th><th></th>
</tr>
<% Source.visible.each do |source| %>
<tr><td class="border"></td>
@@ -24,7 +17,8 @@ the data, you can also use the <a href="/about">API</a>.
<tr><td class="border"></td>
<td style="text-align: center;"><img src="/img/taginfo.32.png" alt="Taginfo" width="32" height="16"/></td>
<td><a href="/download/taginfo-master.db.bz2">taginfo-master.db.bz2</a></td>
- <td style="text-align: right;"><%= File.size("../../download/taginfo-master.db.bz2").to_bytes rescue '<i>unknown</i>' %></td><td style="text-align: right;"><%= File.size("../../data/taginfo-master.db").to_bytes rescue '<i>unknown</i>' %></td>
+ <td style="text-align: right;"><%= File.size("../../download/taginfo-master.db.bz2").to_bytes rescue "<i>#{ t.ui.empty.unknown }</i>" %></td>
+ <td style="text-align: right;"><%= File.size("../../data/taginfo-master.db").to_bytes rescue "<i>#{ t.ui.empty.unknown }</i>" %></td>
<td><%= t.source.master.description %></td>
<td class="border"></td></tr>
<tr><th colspan="7"/></tr>