summaryrefslogtreecommitdiff
path: root/searx/templates
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2020-06-16 10:17:03 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2020-06-16 10:17:03 +0200
commitcc721b5d864bcc0bf58d29337aaa1ec774bd70b5 (patch)
treed6fb4b2b5bc495233a1ee0240201c12467110d45 /searx/templates
parent220e6e6bfdcda1b9ba1164f8159dda07da853af4 (diff)
parent0dc5bdb6ef602d00456eb1db96d45e2f42b2b7a4 (diff)
downloadsearxng-cc721b5d864bcc0bf58d29337aaa1ec774bd70b5.tar.gz
searxng-cc721b5d864bcc0bf58d29337aaa1ec774bd70b5.zip
Merge branch 'master' of https://github.com/asciimoo/searx into csp-oscar-theme
Diffstat (limited to 'searx/templates')
-rw-r--r--searx/templates/__common__/translations.js.tpl1
-rw-r--r--searx/templates/oscar/base.html2
-rw-r--r--searx/templates/simple/base.html1
3 files changed, 3 insertions, 1 deletions
diff --git a/searx/templates/__common__/translations.js.tpl b/searx/templates/__common__/translations.js.tpl
new file mode 100644
index 000000000..8453aba69
--- /dev/null
+++ b/searx/templates/__common__/translations.js.tpl
@@ -0,0 +1 @@
+var could_not_load = '{{ _('could not load data') }}!';
diff --git a/searx/templates/oscar/base.html b/searx/templates/oscar/base.html
index cd3d23df5..839619976 100644
--- a/searx/templates/oscar/base.html
+++ b/searx/templates/oscar/base.html
@@ -10,7 +10,7 @@
<meta name="referrer" content="no-referrer">
<meta name="viewport" content="width=device-width, initial-scale=1 , maximum-scale=1.0, user-scalable=1" />
{% block meta %}{% endblock %}
-
+ <script src="{{ url_for('js_translations') }}"></script>
<title>{% block title %}{% endblock %}{{ instance_name }}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}" type="text/css" />
{% if preferences.get_value('oscar-style') -%}
diff --git a/searx/templates/simple/base.html b/searx/templates/simple/base.html
index 650ef771c..5cb1e1757 100644
--- a/searx/templates/simple/base.html
+++ b/searx/templates/simple/base.html
@@ -12,6 +12,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<title>{% block title %}{% endblock %}{{ instance_name }}</title>
{% block meta %}{% endblock %}
+ <script src="{{ url_for('js_translations') }}"></script>
{% if rtl %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/searx-rtl.min.css') }}" type="text/css" media="screen" />
{% else %}