diff options
author | marc <a01200356@itesm.mx> | 2016-10-29 21:04:01 -0500 |
---|---|---|
committer | marc <a01200356@itesm.mx> | 2016-12-13 19:32:43 -0600 |
commit | a11948c71bfe7b2aac6e50e7634874d5073c7d84 (patch) | |
tree | c5d5c52ca459ba89b2e36d2e87ce3e250be6c896 /searx/engines/swisscows.py | |
parent | a11230819ff76312b4528b2bfb6e03d0560075b1 (diff) | |
download | searxng-a11948c71bfe7b2aac6e50e7634874d5073c7d84.tar.gz searxng-a11948c71bfe7b2aac6e50e7634874d5073c7d84.zip |
Add language support for more engines.
Diffstat (limited to 'searx/engines/swisscows.py')
-rw-r--r-- | searx/engines/swisscows.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/searx/engines/swisscows.py b/searx/engines/swisscows.py index 68632a15a..5c6b051a9 100644 --- a/searx/engines/swisscows.py +++ b/searx/engines/swisscows.py @@ -18,6 +18,12 @@ import re categories = ['general', 'images'] paging = True language_support = True +supported_languages = ["ar-SA", "es-AR", "en-AU", "de-AT", "fr-BE", "nl-BE", "pt-BR", "bg-BG", "en-CA", "fr-CA", + "es-CL", "zh-CN", "hr-HR", "cs-CZ", "da-DK", "et-EE", "fi-FI", "fr-FR", "de-DE", "el-GR", + "zh-HK", "hu-HU", "en-IN", "en-IE", "he-IL", "it-IT", "ja-JP", "ko-KR", "lv-LV", "lt-LT", + "en-MY", "es-MX", "nl-NL", "en-NZ", "nb-NO", "en-PH", "pl-PL", "pt-PT", "ro-RO", "ru-RU", + "en-SG", "sk-SK", "sl-SI", "en-ZA", "es-ES", "sv-SE", "de-CH", "fr-CH", "zh-TW", "th-TH", + "tr-TR", "uk-UA", "en-GB", "en-US", "es-US"] # search-url base_url = 'https://swisscows.ch/' @@ -35,6 +41,8 @@ def request(query, params): if params['language'] == 'all': ui_language = 'browser' region = 'browser' + elif params['language'].split('-')[0] == 'no': + region = 'nb-NO' else: region = params['language'] ui_language = params['language'].split('-')[0] |