diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py index 79bdfbc075b195bc42b6d74fb3d2329095dc8816..49f478440b38bdf88ed58cefb0558d3f6f11f330 100644 --- a/searx/engines/__init__.py +++ b/searx/engines/__init__.py @@ -110,7 +110,9 @@ def load_engine(engine_data): sys.exit(1) # assign supported languages from json file - if engine_data['engine'] in ENGINES_LANGUAGES: + if engine_data['name'] in ENGINES_LANGUAGES: + setattr(engine, 'supported_languages', ENGINES_LANGUAGES[engine_data['name']]) + elif engine_data['engine'] in ENGINES_LANGUAGES: setattr(engine, 'supported_languages', ENGINES_LANGUAGES[engine_data['engine']]) # find custom aliases for non standard language codes