mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	[fix] use english in google engine if no language was set - this prevents guessing the language by the IP of the instance
This commit is contained in:
		
							parent
							
								
									6fdb6640d9
								
							
						
					
					
						commit
						6eb9503896
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		|  | @ -165,10 +165,9 @@ def request(query, params): | |||
|     offset = (params['pageno'] - 1) * 10 | ||||
| 
 | ||||
|     if params['language'] == 'all': | ||||
|         language = 'en' | ||||
|         country = 'US' | ||||
|         url_lang = 'lang_en' | ||||
|     elif params['language'][:2] == 'jv': | ||||
|         params['language'] = 'en-GB' | ||||
| 
 | ||||
|     if params['language'][:2] == 'jv': | ||||
|         language = 'jw' | ||||
|         country = 'ID' | ||||
|         url_lang = 'lang_jw' | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Adam Tauber
						Adam Tauber