Browse Source

revert language support column in preferences

marc 8 years ago
parent
commit
896c0c3734
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      searx/templates/oscar/preferences.html

+ 3
- 3
searx/templates/oscar/preferences.html View File

@@ -148,7 +148,7 @@
148 148
 				    <th>{{ _("Allow") }}</th>
149 149
 				    <th>{{ _("Engine name") }}</th>
150 150
 				    <th>{{ _("Shortcut") }}</th>
151
-				    <th>{{ _("Language support") }}</th>
151
+				    <th>{{ _("Supports selected language") }}</th>
152 152
 				    <th>{{ _("SafeSearch") }}</th>
153 153
 				    <th>{{ _("Time range") }}</th>
154 154
 				    <th>{{ _("Avg. time") }}</th>
@@ -157,7 +157,7 @@
157 157
 				    <th>{{ _("Max time") }}</th>
158 158
 				    <th>{{ _("Avg. time") }}</th>
159 159
 				    <th>{{ _("SafeSearch") }}</th>
160
-				    <th>{{ _("Language support") }}</th>
160
+				    <th>{{ _("Supports selected language") }}</th>
161 161
 				    <th>{{ _("Shortcut") }}</th>
162 162
 				    <th>{{ _("Engine name") }}</th>
163 163
 				    <th>{{ _("Allow") }}</th>
@@ -172,7 +172,7 @@
172 172
                                     </td>
173 173
                                     <th>{{ search_engine.name }}</th>
174 174
 				    <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>
176 176
 				    <td><input type="checkbox" {{ "checked" if search_engine.safesearch==True else ""}} readonly="readonly" disabled="disabled"></td>
177 177
 				    <td><input type="checkbox" {{ "checked" if search_engine.time_range_support==True else ""}} readonly="readonly" disabled="disabled"></td>
178 178
 				    <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>