[fix] typo: online_dictionnary --> online_dictionary

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2021-06-03 18:02:47 +02:00
parent 97d801e8a0
commit f122cb0e27
3 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ about = {
"results": 'HTML', "results": 'HTML',
} }
engine_type = 'online_dictionnary' engine_type = 'online_dictionary'
categories = ['general'] categories = ['general']
url = 'https://dictzone.com/{from_lang}-{to_lang}-dictionary/{query}' url = 'https://dictzone.com/{from_lang}-{to_lang}-dictionary/{query}'
weight = 100 weight = 100

View File

@ -13,7 +13,7 @@ about = {
"results": 'JSON', "results": 'JSON',
} }
engine_type = 'online_dictionnary' engine_type = 'online_dictionary'
categories = ['general'] categories = ['general']
url = 'https://api.mymemory.translated.net/get?q={query}&langpair={from_lang}|{to_lang}{key}' 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}' web_url = 'https://mymemory.translated.net/en/{from_lang}/{to_lang}/{query}'

View File

@ -12,9 +12,9 @@ from .online import OnlineProcessor
parser_re = re.compile('.*?([a-z]+)-([a-z]+) ([^ ]+)$', re.I) parser_re = re.compile('.*?([a-z]+)-([a-z]+) ([^ ]+)$', re.I)
class OnlineDictionaryProcessor(OnlineProcessor): 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): def get_params(self, search_query, engine_category):
params = super().get_params(search_query, engine_category) params = super().get_params(search_query, engine_category)