mirror of
https://github.com/searxng/searxng.git
synced 2025-07-13 00:09:18 +02:00
[mod] settings.yml: remove locales
There are detected from the searx/translations directory
This commit is contained in:
parent
bd17544f82
commit
f30d01ffab
7 changed files with 70 additions and 63 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue