diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-03-16 11:07:04 +0100 |
|---|---|---|
| committer | Alexandre Flament <alex@al-f.net> | 2021-03-16 11:22:21 +0100 |
| commit | 6553c7902925809fd1cbc904dd08db035466a6b2 (patch) | |
| tree | b19fa74d6027dd64bd9f3b04b3b71f627940d20b /searx/templates/simple | |
| parent | cb3b379161e3351d4829b2e37478125582b9fc08 (diff) | |
[mod] replace /translations.js by embedded JSON
In webapp.py, there is a new function "get_translations" lists available translations
Close #2064
Diffstat (limited to 'searx/templates/simple')
| -rw-r--r-- | searx/templates/simple/base.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/searx/templates/simple/base.html b/searx/templates/simple/base.html index a7255e672..17c9785e7 100644 --- a/searx/templates/simple/base.html +++ b/searx/templates/simple/base.html @@ -12,7 +12,6 @@ <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 %} @@ -26,7 +25,7 @@ data-search-on-category-select="{{ 'true' if 'plugins/js/search_on_category_select.js' in scripts else 'false'}}" data-infinite-scroll="{{ 'true' if 'plugins/js/infinite_scroll.js' in scripts else 'false' }}" data-static-path="{{ url_for('static', filename='themes/simple') }}/" - data-no-item-found="{{ _('No item found') }}"></script> + data-translations="{{ translations }}"></script> <!--<![endif]--> {% block head %} <link title="{{ instance_name }}" type="application/opensearchdescription+xml" rel="search" href="{{ opensearch_url }}"/> |