[mod] settings.yml: remove locales

There are detected from the searx/translations directory
This commit is contained in:
Alexandre Flament 2021-08-03 15:13:00 +02:00
parent bd17544f82
commit f30d01ffab
7 changed files with 70 additions and 63 deletions

View file

@ -8,6 +8,7 @@ from lxml.html import fromstring
from searx.engines.wikidata import send_wikidata_query
from searx.utils import extract_text
from searx.locales import LOCALE_NAMES
import searx
import searx.search
import searx.network
@ -35,7 +36,7 @@ WHERE {
ORDER BY ?itemLang
"""
LANGUAGES = searx.settings['locales'].keys()
LANGUAGES = LOCALE_NAMES.keys()
LANGUAGES_SPARQL = ', '.join(set(map(lambda l: repr(l.split('_')[0]), LANGUAGES)))
IDS = None