summaryrefslogtreecommitdiffstats
path: root/module/web/templates
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
parentdownload resume working? (diff)
downloadpyload-5525a167566d5de569292f67857ec2454c8f5cd1.tar.xz
some l18n stuff
Diffstat (limited to 'module/web/templates')
-rw-r--r--module/web/templates/default/add.html12
-rw-r--r--module/web/templates/default/base.html37
-rw-r--r--module/web/templates/default/downloads.html5
-rw-r--r--module/web/templates/default/home.html13
-rw-r--r--module/web/templates/default/login.html9
-rw-r--r--module/web/templates/default/logout.html3
-rw-r--r--module/web/templates/default/logs.html3
-rw-r--r--module/web/templates/default/queue.html13
-rw-r--r--module/web/templates/default/window.html21
9 files changed, 56 insertions, 60 deletions
diff --git a/module/web/templates/default/add.html b/module/web/templates/default/add.html
deleted file mode 100644
index 525cb99bd..000000000
--- a/module/web/templates/default/add.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{% extends 'default/base.html' %}
-
-{% block subtitle %}
-Add Links / Container
-{% endblock %}
-
-
-
-{% block content %}
-<textarea rows="5" style=" width: 100%;"></textarea>
-<input type="file" />
-{% endblock %} \ No newline at end of file
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>-->
diff --git a/module/web/templates/default/downloads.html b/module/web/templates/default/downloads.html
index 3f07bec47..3c370aaa2 100644
--- a/module/web/templates/default/downloads.html
+++ b/module/web/templates/default/downloads.html
@@ -1,4 +1,5 @@
{% extends 'default/base.html' %}
+{% load i18n %}
{% block title %}Downloads - {{block.super}} {% endblock %}
@@ -16,12 +17,12 @@
{% endblock %}
{% block subtitle %}
-Downloads
+{% trans "Downloads" %}
{% endblock %}
{% block content %}
-It's recommend not to download Files bigger than ~10MB from here.
+{% trans "It's recommend not to download Files bigger than ~10MB from here." %}
<ul>
{% for folder in files.folder %}
diff --git a/module/web/templates/default/home.html b/module/web/templates/default/home.html
index ab2135800..08a7a85e6 100644
--- a/module/web/templates/default/home.html
+++ b/module/web/templates/default/home.html
@@ -1,4 +1,5 @@
{% extends 'default/base.html' %}
+{% load i18n %}
{% block head %}
@@ -194,18 +195,18 @@ var LinkEntry = new Class({
{% endblock %}
{% block subtitle %}
-Active Downloads
+{% trans "Active Downloads" %}
{% endblock %}
{% block content %}
<table width="100%" class="queue">
<thead>
<tr class="header">
- <th>Name</th>
- <th>Status</th>
- <th>Infos</th>
- <th>Size</th>
- <th>Progress</th>
+ <th>{% trans "Name" %}</th>
+ <th>{% trans "Status" %}</th>
+ <th>{% trans "Infos" %}</th>
+ <th>{% trans "Size" %}</th>
+ <th>{% trans "Progress" %}</th>
</tr>
</thead>
<tbody id="LinksAktiv">
diff --git a/module/web/templates/default/login.html b/module/web/templates/default/login.html
index 851802c4f..185245f67 100644
--- a/module/web/templates/default/login.html
+++ b/module/web/templates/default/login.html
@@ -1,6 +1,7 @@
{% extends 'default/base.html' %}
+{% load i18n %}
-{% block title %}Login - {{block.super}} {% endblock %}
+{% block title %}{% trans "Login" %} - {{block.super}} {% endblock %}
{% block content %}
@@ -11,12 +12,12 @@
<fieldset>
<legend>Login</legend>
<label class="block" for="focus__this">
- <span>Username</span>
+ <span>{% trans "Username" %}</span>
{{ form.username }}
</label>
<br />
<label class="block">
- <span>Password</span>
+ <span>{% trans "Password" %}</span>
{{ form.password }}
</label>
<br />
@@ -26,7 +27,7 @@
</form>
{% if form.errors %}
-<p>Your username and password didn't match. Please try again.</p>
+<p{% trans "Your username and password didn't match. Please try again." %}</p>
{% endif %}
</div>
diff --git a/module/web/templates/default/logout.html b/module/web/templates/default/logout.html
index 4d00bf6d5..edc30392e 100644
--- a/module/web/templates/default/logout.html
+++ b/module/web/templates/default/logout.html
@@ -1,9 +1,10 @@
{% extends 'default/base.html' %}
+{% load i18n %}
{% block head %}
<meta http-equiv="refresh" content="3; url=/">
{% endblock %}
{% block content %}
-<p><b>You were successfully logged out.</b></p>
+<p><b>{% trans "You were successfully logged out." %}</b></p>
{% endblock %} \ No newline at end of file
diff --git a/module/web/templates/default/logs.html b/module/web/templates/default/logs.html
index f9b0504d9..c35c68706 100644
--- a/module/web/templates/default/logs.html
+++ b/module/web/templates/default/logs.html
@@ -1,6 +1,7 @@
{% extends 'default/base.html' %}
+{% load i18n %}
-{% block title %}Logs - {{block.super}} {% endblock %}
+{% block title %}{% trans "Logs" %} - {{block.super}} {% endblock %}
{% block menu %}
<li>
diff --git a/module/web/templates/default/queue.html b/module/web/templates/default/queue.html
index aa21390a0..a136e1213 100644
--- a/module/web/templates/default/queue.html
+++ b/module/web/templates/default/queue.html
@@ -1,4 +1,5 @@
{% extends 'default/base.html' %}
+{% load i18n %}
{% block head %}
<script type="text/javascript">
@@ -71,13 +72,13 @@ document.addEvent("domready", function(){
</script>
{% endblock %}
-{% block title %}Queue - {{block.super}} {% endblock %}
+{% block title %}{% trans "Queue" %} - {{block.super}} {% endblock %}
{% block menu %}
-<li> <a href="{% url home %}" title=""><img src="{{ MEDIA_URL }}img/head-menu-home.png" alt="" /> Home</a> </li>
-<li class="selected"> <a href="{% url queue %}" title=""><img src="{{ MEDIA_URL }}img/head-menu-download.png" alt="" /> Queue</a></li>
-<li> <a href="{% url downloads %}" title=""><img src="{{ MEDIA_URL }}img/head-menu-development.png" alt="" /> Downloads</a></li>
-<li class="right"> <a href="{% url logs %}" class="action index" accesskey="x" rel="nofollow"><img src="{{ MEDIA_URL }}img/head-menu-index.png" alt="" />Logs</a> </li>
+<li> <a href="{% url home %}" title=""><img src="{{ MEDIA_URL }}img/head-menu-home.png" alt="" /> {% trans "Home" %}</a> </li>
+<li class="selected"> <a href="{% url queue %}" title=""><img src="{{ MEDIA_URL }}img/head-menu-download.png" alt="" /> {% trans "Queue" %}</a></li>
+<li> <a href="{% url downloads %}" title=""><img src="{{ MEDIA_URL }}img/head-menu-development.png" alt="" /> {% trans "Downloads" %}</a></li>
+<li class="right"> <a href="{% url logs %}" class="action index" accesskey="x" rel="nofollow"><img src="{{ MEDIA_URL }}img/head-menu-index.png" alt="" />{% trans "Logs" %}</a> </li>
{% endblock %}
{% block content %}
@@ -101,7 +102,7 @@ document.addEvent("domready", function(){
<span class="child_status">{{ child.status_type }}</span>{{child.status_error}}&nbsp;
<span class="child_status">{{ child.size }} KB</span>
<span class="child_status">{{ child.plugin }}</span>
- <span class="child_status">Folder: {{child.folder}}</span>
+ <span class="child_status">{% trans "Folder:" %} {{child.folder}}</span>
&nbsp;&nbsp;
<img style="cursor: pointer;" width="10px" height="10px" src="{{ MEDIA_URL }}img/delete.png" />
&nbsp;&nbsp;
diff --git a/module/web/templates/default/window.html b/module/web/templates/default/window.html
index 7e5c249e6..11ac8056c 100644
--- a/module/web/templates/default/window.html
+++ b/module/web/templates/default/window.html
@@ -1,3 +1,4 @@
+{% load i18n %}
<iframe id="upload_target" name="upload_target" src="" style="display: none; width:0;height:0"></iframe>
<div id="add_bg" style="filter:alpha(opacity:80);KHTMLOpacity:0.80;MozOpacity:0.80;opacity:0.80; background:#000; width:100%; height: 100%; position:absolute; top:0px; left:0px; display:none;">&nbsp;</div>
<!--<div id="add_box" style="left:50%; top:200px; margin-left: -450px; width: 900px; position: absolute; background: #FFF; padding: 10px 10px 10px 10px; display:none;">-->
@@ -5,25 +6,25 @@
<!--<div style="width: 900px; text-align: right;"><b onclick="AddBox();">[Close]</b></div>-->
<div id="add_box" class="myform">
<form id="add_form" action="/json/add_package" method="POST" enctype="multipart/form-data">
-<h1>Add Package</h1>
-<p>Paste your links or upload a container.</p>
-<label>Name
-<span class="small">The name of the new package.</span>
+<h1>{% trans "Add Package" %}</h1>
+<p>{% trans "Paste your links or upload a container." %}</p>
+<label>{% trans "Name" %}
+<span class="small">{% trans "The name of the new package." %}</span>
</label>
<input name="add_name" type="text" size="20" />
-<label>Links
-<span class="small">Paste your links here</span>
+<label>{% trans "Links" %}
+<span class="small">{% trans "Paste your links here" %}</span>
</label>
<textarea rows="5" name="add_links" id="add_links"></textarea>
-<label>File
-<span class="small">Upload a container.</span>
+<label>{% trans "File" %}
+<span class="small">{% trans "Upload a container." %}</span>
</label>
<input type="file" name="add_file" id="add_file"/>
-<button type="submit">Add Package</button>
-<button id="add_reset" style="margin-left:0px;" type="reset">Reset</button>
+<button type="submit">{% trans "Add Package" %}</button>
+<button id="add_reset" style="margin-left:0px;" type="reset">{% trans "Reset" %}</button>
<div class="spacer"></div>
</form>