summaryrefslogtreecommitdiff
path: root/searx/templates
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2014-01-31 04:35:23 +0100
committerasciimoo <asciimoo@gmail.com>2014-01-31 04:35:23 +0100
commit2a788c8f29f63bc069436f1a12343a47d66f2523 (patch)
treecc44113f213cd565797d3c9a87e8afe72ccf5539 /searx/templates
parent90a93422865b81ce256ab02a367a4d3529eb2d18 (diff)
[enh] search language support init
Diffstat (limited to 'searx/templates')
-rw-r--r--searx/templates/preferences.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/searx/templates/preferences.html b/searx/templates/preferences.html
index caa957052..249cebe63 100644
--- a/searx/templates/preferences.html
+++ b/searx/templates/preferences.html
@@ -12,6 +12,17 @@
</p>
</fieldset>
<fieldset>
+ <legend>{{ _('Search language') }}</legend>
+ <p>
+ <select name='language'>
+ <option value="all" {% if current_language == 'all' %}selected="selected"{% endif %}>{{ _('Automatic') }}</option>
+ {% for lang_id,lang_name,country_name in language_codes %}
+ <option value={{ lang_id }} {% if lang_id == current_language %}selected="selected"{% endif %}>{{ lang_name}} ({{ country_name }})</option>
+ {% endfor %}
+ </select>
+ </p>
+ </fieldset>
+ <fieldset>
<legend>{{ _('Interface language') }}</legend>
<p>
<select name='locale'>