Commit Graph

19 Commits (1a1f9852f11429d3f8f47d5c0c8ef5176f202c27)

Author SHA1 Message Date
Marc Abonce Seguin 772c048d01 refactor engine's search language handling
Add match_language function in utils to match any user given
language code with a list of engine's supported languages.

Also add language_aliases dict on each engine to translate
standard language codes into the custom codes used by the engine.
7 years ago
Adam Tauber 52e615dede [enh] py3 compatibility 7 years ago
marc af35eee10b tests for _fetch_supported_languages in engines
and refactor method to make it testable without making requests
8 years ago
marc f62ce21f50 [mod] fetch supported languages for several engines
utils/fetch_languages.py gets languages supported by each engine and
generates engines_languages.json with each engine's supported language.
8 years ago
marc 149802c569 [enh] add supported_languages on engines and auto-generate languages.py 8 years ago
a01200356 a44faa7716 [fix] compile regex in ddg_definitions 9 years ago
a01200356 6dca14e95d [enh] multilingual duckduckgo_definitions 9 years ago
Cqoicebordel 8c2a5f0492 DDG Definitions' unit tests 10 years ago
Adam Tauber 2181c4384e [mod] purge local html_to_text 10 years ago
dalf ffcec383b7 [fix] pep8 : duckduckgo_definitions and wikidata engines 10 years ago
dalf cac1761a54 [enh] infoboxes : if the result doesn't contain anything except one link, use the normal result template 10 years ago
Dalf 6bfd566353 [enh] add infoboxes and answers 10 years ago
asciimoo b2492c94f4 [fix] pep/flake8 compatibility 11 years ago
rhapsodhy 74ca542a02 [enh] set up special css classes for highlighting results + highlight definitions with dark grey border 11 years ago
Dalf e88cf0a0a8 [mod] minor fixes (duckduck_definitions : if a ddg bang is in the query, avoid a useless redirect) 11 years ago
asciimoo 74b6be3991 [enh] engine cfg compatibilty 11 years ago
asciimoo d793c2733c [enh] engine types 11 years ago
asciimoo cfba30f1ba [fix] comments removed 11 years ago
asciimoo e91e4e7fdb [enh] duckduckgo definitions 11 years ago