summaryrefslogtreecommitdiffstats
path: root/module/web/templates/default/base.html
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-02-03 16:18:03 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-02-03 16:18:03 +0100
commit5525a167566d5de569292f67857ec2454c8f5cd1 (patch)
treeeef4c2e685959d11e219750b0df8265f8438fc46 /module/web/templates/default/base.html
parentdownload resume working? (diff)
downloadpyload-5525a167566d5de569292f67857ec2454c8f5cd1.tar.xz
some l18n stuff
Diffstat (limited to 'module/web/templates/default/base.html')
-rw-r--r--module/web/templates/default/base.html37
1 files changed, 19 insertions, 18 deletions
diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html
index 2a2490088..720453a30 100644
--- a/module/web/templates/default/base.html
+++ b/module/web/templates/default/base.html
@@ -1,3 +1,4 @@
+{% load i18n %}
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -17,7 +18,7 @@
<!--<script src="{{ MEDIA_URL }}js/jquery.progressbar.js"></script>-->
<!--<script src="{{ MEDIA_URL }}js/jquery.form.js"></script>-->
-<title>{% block title %}pyLoad Webinterface{% endblock %}</title>
+<title>{% block title %}pyLoad {% trans "Webinterface" %}{% endblock %}</title>
<script type="text/javascript">
var add_bg,add_box
@@ -122,15 +123,15 @@ function AddBox()
{% if user.is_authenticated %}
<img src="{{ MEDIA_URL }}img/head-login.png" alt="User:" style="vertical-align:middle; margin:2px" /><span style="padding-right: 2px;">{{user.username}}</span>
<ul id="user-actions">
- <li><a href="/logout" class="action logout" rel="nofollow">Logout</a></li>
+ <li><a href="/logout" class="action logout" rel="nofollow">{% trans "Logout" %}</a></li>
{% if user.is_staff %}
- <li><a href="/admin" class="action profile" rel="nofollow">Administrate</a></li>
+ <li><a href="/admin" class="action profile" rel="nofollow">{% trans "Administrate" %}</a></li>
{% endif %}
<li></li>
<li></li>
</ul>
{% else %}
- <span style="padding-right: 2px;">Please Login!</span>
+ <span style="padding-right: 2px;">{% trans "Please Login!" %}</span>
{% endif %}
</div>
@@ -142,14 +143,14 @@ function AddBox()
{% block menu %}
<li class="selected">
- <a href="/" title=""><img src="{{ MEDIA_URL }}img/head-menu-home.png" alt="" /> Home</a>
+ <a href="/" title=""><img src="{{ MEDIA_URL }}img/head-menu-home.png" alt="" /> {% trans "Home" %}</a>
</li>
<li>
- <a href="/queue/" title=""><img src="{{ MEDIA_URL }}img/head-menu-download.png" alt="" /> Queue</a></li>
+ <a href="/queue/" title=""><img src="{{ MEDIA_URL }}img/head-menu-download.png" alt="" /> {% trans "Queue" %}</a></li>
<li>
- <a href="/downloads/" title=""><img src="{{ MEDIA_URL }}img/head-menu-development.png" alt="" /> Downloads</a></li>
+ <a href="/downloads/" title=""><img src="{{ MEDIA_URL }}img/head-menu-development.png" alt="" /> {% trans "Downloads" %}</a></li>
<li class="right">
- <a href="/logs/" class="action index" accesskey="x" rel="nofollow"><img src="{{ MEDIA_URL }}img/head-menu-index.png" alt="" />Logs</a>
+ <a href="/logs/" class="action index" accesskey="x" rel="nofollow"><img src="{{ MEDIA_URL }}img/head-menu-index.png" alt="" />{% trans "Logs" %}</a>
</li>
{% endblock %}
@@ -161,18 +162,18 @@ function AddBox()
{% if perms.pyload.can_change_status %}
<ul id="page-actions2">
- <li id="action_play"><a href="#" class="action play" accesskey="o" rel="nofollow">Play</a></li>
- <li id="action_cancel"><a href="#" class="action cancel" accesskey="o" rel="nofollow">Cancel</a></li>
- <li id="action_stop"><a href="#" class="action stop" accesskey="o" rel="nofollow">Stop</a></li>
- <li id="action_add"><a href="javascript:AddBox();" class="action stop" accesskey="o" rel="nofollow" >Add</a></li>
+ <li id="action_play"><a href="#" class="action play" accesskey="o" rel="nofollow">{% trans "Play" %}</a></li>
+ <li id="action_cancel"><a href="#" class="action cancel" accesskey="o" rel="nofollow">{% trans "Cancel" %}</a></li>
+ <li id="action_stop"><a href="#" class="action stop" accesskey="o" rel="nofollow">{% trans "Stop" %}</a></li>
+ <li id="action_add"><a href="javascript:AddBox();" class="action stop" accesskey="o" rel="nofollow" >{% trans "Add" %}</a></li>
</ul>
{% endif %}
{% if perms.pyload.can_see_dl %}
<ul id="page-actions">
- <li><a class="action backlink">Speed: <b id="speed">{{ status.speed }}</b> kb/s</a></li>
- <li><a class="action cog">Active: <b id="aktiv">{{ status.activ }}</b> / <b id="aktiv_from">{{ status.queue }}</b></a></li>
- <li><a href="" class="action revisions" accesskey="o" rel="nofollow">Reload page</a></li>
+ <li><a class="action backlink">{% trans "Speed:" %} <b id="speed">{{ status.speed }}</b> kb/s</a></li>
+ <li><a class="action cog">{% trans "Active:" %} <b id="aktiv">{{ status.activ }}</b> / <b id="aktiv_from">{{ status.queue }}</b></a></li>
+ <li><a href="" class="action revisions" accesskey="o" rel="nofollow">{% trans "Reload page" %}</a></li>
</ul><br />
{% endif %}
@@ -180,7 +181,7 @@ function AddBox()
<div id="content" lang="en" dir="ltr">
-<h1>{% block subtitle %}pyLoad - Webinterface{% endblock %}</h1>
+<h1>{% block subtitle %}pyLoad - {% trans "Webinterface" %}{% endblock %}</h1>
{% block statusbar %}
{% endblock %}
@@ -200,9 +201,9 @@ function AddBox()
<hr style="clear: both;" />
-<div id="foot">© 2008-2010 the pyLoad Team
+<div id="foot">{% trans "© 2008-2010 the pyLoad Team" %}
- <a href="#top" class="action top" accesskey="x"><span>Back to top</span></a><br />
+ <a href="#top" class="action top" accesskey="x"><span>{% trans "Back to top" %}</span></a><br />
<!--<div class="breadcrumbs"></div>-->