Commit 6eb95038 authored by Adam Tauber's avatar Adam Tauber

[fix] use english in google engine if no language was set - this prevents...

[fix] use english in google engine if no language was set - this prevents guessing the language by the IP of the instance
parent 6fdb6640
...@@ -165,10 +165,9 @@ def request(query, params): ...@@ -165,10 +165,9 @@ def request(query, params):
offset = (params['pageno'] - 1) * 10 offset = (params['pageno'] - 1) * 10
if params['language'] == 'all': if params['language'] == 'all':
language = 'en' params['language'] = 'en-GB'
country = 'US'
url_lang = 'lang_en' if params['language'][:2] == 'jv':
elif params['language'][:2] == 'jv':
language = 'jw' language = 'jw'
country = 'ID' country = 'ID'
url_lang = 'lang_jw' url_lang = 'lang_jw'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment