瀏覽代碼

revert language support column in preferences

marc 8 年之前
父節點
當前提交
896c0c3734
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      searx/templates/oscar/preferences.html

+ 3
- 3
searx/templates/oscar/preferences.html 查看文件

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