From f122cb0e27dbb07cb3b5926ae7910cdc65c8fcbb Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Thu, 3 Jun 2021 18:02:47 +0200 Subject: [PATCH] [fix] typo: online_dictionnary --> online_dictionary Signed-off-by: Markus Heiser --- searx/engines/dictzone.py | 2 +- searx/engines/translated.py | 2 +- searx/search/processors/online_dictionary.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/searx/engines/dictzone.py b/searx/engines/dictzone.py index eaa8b6ab4..4a92a22c3 100644 --- a/searx/engines/dictzone.py +++ b/searx/engines/dictzone.py @@ -17,7 +17,7 @@ about = { "results": 'HTML', } -engine_type = 'online_dictionnary' +engine_type = 'online_dictionary' categories = ['general'] url = 'https://dictzone.com/{from_lang}-{to_lang}-dictionary/{query}' weight = 100 diff --git a/searx/engines/translated.py b/searx/engines/translated.py index 9c53d70ad..8d67ca0bb 100644 --- a/searx/engines/translated.py +++ b/searx/engines/translated.py @@ -13,7 +13,7 @@ about = { "results": 'JSON', } -engine_type = 'online_dictionnary' +engine_type = 'online_dictionary' categories = ['general'] url = 'https://api.mymemory.translated.net/get?q={query}&langpair={from_lang}|{to_lang}{key}' web_url = 'https://mymemory.translated.net/en/{from_lang}/{to_lang}/{query}' diff --git a/searx/search/processors/online_dictionary.py b/searx/search/processors/online_dictionary.py index 11ca0335d..72941d57a 100644 --- a/searx/search/processors/online_dictionary.py +++ b/searx/search/processors/online_dictionary.py @@ -12,9 +12,9 @@ from .online import OnlineProcessor parser_re = re.compile('.*?([a-z]+)-([a-z]+) ([^ ]+)$', re.I) class OnlineDictionaryProcessor(OnlineProcessor): - """Processor class used by ``online_dictionnary`` engines.""" + """Processor class used by ``online_dictionary`` engines.""" - engine_type = 'online_dictionnary' + engine_type = 'online_dictionary' def get_params(self, search_query, engine_category): params = super().get_params(search_query, engine_category)