diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2016-12-29 10:41:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-29 10:41:14 +0100 |
| commit | d08108be6293c8764f0d1d950a7aab283cddffed (patch) | |
| tree | 8c56885e21ec92109bfaaadca2af3a43b5f7c11d /searx/templates | |
| parent | 7388067f1546f560830a25d0082c0ab9fc1cba34 (diff) | |
| parent | 896c0c3734ae369eca4ba9592595e1b5395dbc88 (diff) | |
Merge pull request #794 from a01200356/languages
Changes in search language list (continuation of #748)
Diffstat (limited to 'searx/templates')
| -rw-r--r-- | searx/templates/oscar/preferences.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html index c1d2c787b..e5477e737 100644 --- a/searx/templates/oscar/preferences.html +++ b/searx/templates/oscar/preferences.html @@ -148,7 +148,7 @@ <th>{{ _("Allow") }}</th> <th>{{ _("Engine name") }}</th> <th>{{ _("Shortcut") }}</th> - <th>{{ _("Language support") }}</th> + <th>{{ _("Supports selected language") }}</th> <th>{{ _("SafeSearch") }}</th> <th>{{ _("Time range") }}</th> <th>{{ _("Avg. time") }}</th> @@ -157,7 +157,7 @@ <th>{{ _("Max time") }}</th> <th>{{ _("Avg. time") }}</th> <th>{{ _("SafeSearch") }}</th> - <th>{{ _("Language support") }}</th> + <th>{{ _("Supports selected language") }}</th> <th>{{ _("Shortcut") }}</th> <th>{{ _("Engine name") }}</th> <th>{{ _("Allow") }}</th> @@ -172,7 +172,7 @@ </td> <th>{{ search_engine.name }}</th> <td>{{ shortcuts[search_engine.name] }}</td> - <td><input type="checkbox" {{ "checked" if search_engine.supported_languages else ""}} readonly="readonly" disabled="disabled"></td> + <td><input type="checkbox" {{ "checked" if current_language == 'all' or current_language in search_engine.supported_languages or current_language.split('-')[0] in search_engine.supported_languages else ""}} readonly="readonly" disabled="disabled"></td> <td><input type="checkbox" {{ "checked" if search_engine.safesearch==True else ""}} readonly="readonly" disabled="disabled"></td> <td><input type="checkbox" {{ "checked" if search_engine.time_range_support==True else ""}} readonly="readonly" disabled="disabled"></td> <td class="{{ 'danger' if stats[search_engine.name]['warn_time'] else '' }}">{{ 'N/A' if stats[search_engine.name].time==None else stats[search_engine.name].time }}</td> |