on master help sign in
revert language support column in preferences
commit896c0c3734ae369eca4ba9592595e1b5395dbc88 authormarc <a01200356@itesm.mx> dateThu 29 Dec 2016, 01:56 (10 years ago) parent1175b39
1 file changed+3−3
searx/templates/oscar/preferences.html+3−3
searx/templates/oscar/preferences.html+3−3
@@ -148,7 +148,7 @@
148148 <th>{{ _("Allow") }}</th>
149149 <th>{{ _("Engine name") }}</th>
150150 <th>{{ _("Shortcut") }}</th>
151− <th>{{ _("Language support") }}</th>
151+ <th>{{ _("Supports selected language") }}</th>
152152 <th>{{ _("SafeSearch") }}</th>
153153 <th>{{ _("Time range") }}</th>
154154 <th>{{ _("Avg. time") }}</th>
@@ -157,7 +157,7 @@
157157 <th>{{ _("Max time") }}</th>
158158 <th>{{ _("Avg. time") }}</th>
159159 <th>{{ _("SafeSearch") }}</th>
160− <th>{{ _("Language support") }}</th>
160+ <th>{{ _("Supports selected language") }}</th>
161161 <th>{{ _("Shortcut") }}</th>
162162 <th>{{ _("Engine name") }}</th>
163163 <th>{{ _("Allow") }}</th>
@@ -172,7 +172,7 @@
172172 </td>
173173 <th>{{ search_engine.name }}</th>
174174 <td>{{ shortcuts[search_engine.name] }}</td>
175− <td><input type="checkbox" {{ "checked" if search_engine.supported_languages else ""}} readonly="readonly" disabled="disabled"></td>
175+ <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>
176176 <td><input type="checkbox" {{ "checked" if search_engine.safesearch==True else ""}} readonly="readonly" disabled="disabled"></td>
177177 <td><input type="checkbox" {{ "checked" if search_engine.time_range_support==True else ""}} readonly="readonly" disabled="disabled"></td>
178178 <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>