Noémi Ványi
b63d645a52
Revert "remove 'all' option from search languages"
...
This reverts commit 4d1770398a
.
6 years ago
Marc Abonce Seguin
5568f24d6c
[fix] check language aliases when setting search language
6 years ago
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
marc
4d1770398a
remove 'all' option from search languages
7 years ago
marc
44085e31d0
update engines_languages.json and languages.py
...
Also, fix fetch_languages.py so it can run on python3.
7 years ago
Adam Tauber
52e615dede
[enh] py3 compatibility
7 years ago
marc
fd65c12921
make search language handling less strict
...
languages.py can change, so users may query on a language that is not
on the list anymore, even if it is still recognized by a few engines.
also made no and nb the same because they seem to return the same,
though most engines will only support one or the other.
8 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
a11948c71b
Add language support for more engines.
8 years ago
marc
149802c569
[enh] add supported_languages on engines and auto-generate languages.py
8 years ago
Adam Tauber
16bdc0baf4
[mod] do not escape html content in engines
8 years ago
stepshal
b3ab221b98
Fix anomalous backslash in string
8 years ago
Adam Tauber
e061c6e059
[fix] swisscow and yandex escaping - fixes #499
9 years ago
Thomas Pointhuber
2d81079384
[enh] implement image support for swisscows engine
9 years ago
Thomas Pointhuber
d923b2a420
[enh] implement swisscows engine, FIX #347
...
TODO: implement image engine
9 years ago