mirror of https://github.com/searxng/searxng.git
small fixes
This commit is contained in:
parent
727c287856
commit
92c6e88ad3
|
@ -43,7 +43,7 @@ generally made searx better:
|
||||||
- Kang-min Liu
|
- Kang-min Liu
|
||||||
- Kirill Isakov
|
- Kirill Isakov
|
||||||
- Guilhem Bonnefille
|
- Guilhem Bonnefille
|
||||||
- Marc Abonce Seguin
|
- Marc Abonce Seguin @a01200356
|
||||||
- @jibe-b
|
- @jibe-b
|
||||||
- Christian Pietsch @pietsch
|
- Christian Pietsch @pietsch
|
||||||
- @Maxqia
|
- @Maxqia
|
||||||
|
@ -55,7 +55,6 @@ generally made searx better:
|
||||||
- Ammar Najjar @ammarnajjar
|
- Ammar Najjar @ammarnajjar
|
||||||
- @stepshal
|
- @stepshal
|
||||||
- François Revol @mmuman
|
- François Revol @mmuman
|
||||||
- marc @a01200356
|
|
||||||
- Harry Wood @harry-wood
|
- Harry Wood @harry-wood
|
||||||
- Thomas Renard @threnard
|
- Thomas Renard @threnard
|
||||||
- Pydo `<https://github.com/pydo>`_
|
- Pydo `<https://github.com/pydo>`_
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
from json import loads
|
from json import loads
|
||||||
from string import Formatter
|
from string import Formatter
|
||||||
from urllib import urlencode, quote
|
from urllib import urlencode, quote
|
||||||
from searx.engines.wikipedia import supported_engines
|
from searx.engines.wikipedia import supported_languages
|
||||||
|
|
||||||
# engine dependent config
|
# engine dependent config
|
||||||
categories = ['general']
|
categories = ['general']
|
||||||
|
|
|
@ -176,9 +176,7 @@ language_codes = (
|
||||||
(u"sh", u"Srpskohrvatski / Српскохрватски", u"", u"Serbo-Croatian"),
|
(u"sh", u"Srpskohrvatski / Српскохрватски", u"", u"Serbo-Croatian"),
|
||||||
(u"si", u"සිංහල", u"", u"Sinhalese"),
|
(u"si", u"සිංහල", u"", u"Sinhalese"),
|
||||||
(u"sk-SK", u"Slovenčina", u"Slovenská republika", u"Slovak"),
|
(u"sk-SK", u"Slovenčina", u"Slovenská republika", u"Slovak"),
|
||||||
(u"sl", u"Slovenščina", u"", u"Slovenian"),
|
|
||||||
(u"sl-SI", u"Slovenščina", u"Slovenija", u"Slovenian"),
|
(u"sl-SI", u"Slovenščina", u"Slovenija", u"Slovenian"),
|
||||||
(u"sl-SL", u"Slovenščina", u"Sierra Leone", u"Slovenian"),
|
|
||||||
(u"sn", u"Chishona", u"", u""),
|
(u"sn", u"Chishona", u"", u""),
|
||||||
(u"so", u"Soomaali", u"", u""),
|
(u"so", u"Soomaali", u"", u""),
|
||||||
(u"sq", u"Shqip", u"", u"Albanian"),
|
(u"sq", u"Shqip", u"", u"Albanian"),
|
||||||
|
|
|
@ -101,11 +101,11 @@ Change search language
|
||||||
Page Should Contain about
|
Page Should Contain about
|
||||||
Page Should Contain preferences
|
Page Should Contain preferences
|
||||||
Go To http://localhost:11111/preferences
|
Go To http://localhost:11111/preferences
|
||||||
List Selection Should Be language Automatic
|
List Selection Should Be language Default language
|
||||||
Select From List language Turkish (Turkey) - tr_TR
|
Select From List language Türkçe (Türkiye) - tr-TR
|
||||||
Submit Preferences
|
Submit Preferences
|
||||||
Go To http://localhost:11111/preferences
|
Go To http://localhost:11111/preferences
|
||||||
List Selection Should Be language Turkish (Turkey) - tr_TR
|
List Selection Should Be language Türkçe (Türkiye) - tr-TR
|
||||||
|
|
||||||
Change autocomplete
|
Change autocomplete
|
||||||
Page Should Contain about
|
Page Should Contain about
|
||||||
|
|
|
@ -35,7 +35,9 @@ languages = {}
|
||||||
# To filter out invalid codes and dialects.
|
# To filter out invalid codes and dialects.
|
||||||
def valid_code(lang_code):
|
def valid_code(lang_code):
|
||||||
# filter invalid codes
|
# filter invalid codes
|
||||||
|
# sl-SL is technically not invalid, but still a mistake
|
||||||
if lang_code[:2] == 'xx'\
|
if lang_code[:2] == 'xx'\
|
||||||
|
or lang_code == 'sl-SL'\
|
||||||
or lang_code == 'jw'\
|
or lang_code == 'jw'\
|
||||||
or lang_code[-2:] == 'UK'\
|
or lang_code[-2:] == 'UK'\
|
||||||
or lang_code[-2:] == 'XA'\
|
or lang_code[-2:] == 'XA'\
|
||||||
|
|
Loading…
Reference in New Issue