Browse Source

[fix] typo: online_dictionnary --> online_dictionary

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Markus Heiser 3 years ago
parent
commit
f122cb0e27

+ 1 - 1
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

+ 1 - 1
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}'

+ 2 - 2
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)