summaryrefslogtreecommitdiff
path: root/searx/templates
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2014-01-22 00:17:49 +0100
committerasciimoo <asciimoo@gmail.com>2014-01-22 00:17:49 +0100
commit2b1d2dbc841d970ed369e6479693dcc80fa01233 (patch)
tree9ba34013b400d66502e161edbd93d11d51a61aab /searx/templates
parenta1f945d227577993b0d13e0230356d7462ccc840 (diff)
[enh] i18n support
Diffstat (limited to 'searx/templates')
-rw-r--r--searx/templates/engines.html9
-rw-r--r--searx/templates/index.html4
-rw-r--r--searx/templates/preferences.html8
-rw-r--r--searx/templates/results.html6
-rw-r--r--searx/templates/stats.html2
5 files changed, 14 insertions, 15 deletions
diff --git a/searx/templates/engines.html b/searx/templates/engines.html
index 1f52dc09f..008e860f1 100644
--- a/searx/templates/engines.html
+++ b/searx/templates/engines.html
@@ -1,12 +1,12 @@
{% extends 'base.html' %}
{% block content %}
<div class="row">
-<h2>Currently used search engines</h2>
+ <h2>{{ _('Currently used search engines') }}</h2>
<table style="width: 80%;">
<tr>
- <th>Engine name</th>
- <th>Category</th>
+ <th>{{ _('Engine name') }}</th>
+ <th>{{ _('Category') }}</th>
</tr>
{% for (categ,search_engines) in categs %}
{% for search_engine in search_engines %}
@@ -20,7 +20,6 @@
{% endfor %}
{% endfor %}
</table>
-<p>Please add more engines to this list, pull requests are welcome!</p>
-<p class="right"><a href="/">back</a></p>
+<p class="right"><a href="/">{{ _('back') }}</a></p>
</div>
{% endblock %}
diff --git a/searx/templates/index.html b/searx/templates/index.html
index d9fa3b502..18320ae09 100644
--- a/searx/templates/index.html
+++ b/searx/templates/index.html
@@ -4,8 +4,8 @@
<div class="title"><h1>searx</h1></div>
{% include 'search.html' %}
<p class="top_margin">
- <a href="/about" class="hmarg">about</a>
- <a href="/preferences" class="hmarg">preferences</a>
+ <a href="/about" class="hmarg">{{ _('about') }}</a>
+ <a href="/preferences" class="hmarg">{{ _('preferences') }}</a>
</p>
</div>
{% endblock %}
diff --git a/searx/templates/preferences.html b/searx/templates/preferences.html
index 705139e58..d47dd4834 100644
--- a/searx/templates/preferences.html
+++ b/searx/templates/preferences.html
@@ -2,18 +2,18 @@
{% block head %} {% endblock %}
{% block content %}
<div class="row">
- <h2>Preferences</h2>
+ <h2>{{ _('Preferences') }}</h2>
<fieldset>
- <legend>Default categories</legend>
+ <legend>{{ _('Default categories') }}</legend>
<form method="post" action="/preferences" id="search_form">
<p>
{% include 'categories.html' %}
</p>
- <input type="submit" value="save" />
+ <input type="submit" value="{{ _('save') }}" />
</form>
</fieldset>
- <div class="right"><a href="/">back</a></div>
+ <div class="right"><a href="/">{{ _('back') }}</a></div>
</div>
{% endblock %}
diff --git a/searx/templates/results.html b/searx/templates/results.html
index 0fb9250ca..238671878 100644
--- a/searx/templates/results.html
+++ b/searx/templates/results.html
@@ -7,12 +7,12 @@
</div>
<div id="results">
{% if suggestions %}
- <div id="suggestions"><span>Suggestions: </span>{% for suggestion in suggestions %}<form method="post" action="/"><input type="hidden" name="q" value="{{suggestion}}"><input type="submit" value="{{ suggestion }}" /></form>{% endfor %}</div>
+ <div id="suggestions"><span>{{ _('Suggestions') }}:</span>{% for suggestion in suggestions %}<form method="post" action="/"><input type="hidden" name="q" value="{{suggestion}}"><input type="submit" value="{{ suggestion }}" /></form>{% endfor %}</div>
{% endif %}
<div id ="result_count">
- Number of results: {{ number_of_results }}
+ {{ _('Number of results') }}: {{ number_of_results }}
</div>
{% for result in results %}
@@ -23,7 +23,7 @@
{% endif %}
{% endfor %}
<div id="apis">
- Download results
+ {{ _('Download results') }}
<form method="post" action="/">
<div class="left">
<input type="hidden" name="q" value="{{ q }}" />
diff --git a/searx/templates/stats.html b/searx/templates/stats.html
index 933616e32..cb5757b31 100644
--- a/searx/templates/stats.html
+++ b/searx/templates/stats.html
@@ -1,7 +1,7 @@
{% extends "base.html" %}
{% block head %} {% endblock %}
{% block content %}
-<h2>Engine stats</h2>
+<h2>{{ _('Engine stats') }}</h2>
{% for stat_name,stat_category in stats %}
<div class="left">