mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	[fix] typo in get_engine_locale
Due to a typo in get_engine_locale, a language selection like `!qw :de siemens` did not work. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
		
							parent
							
								
									649d1a144d
								
							
						
					
					
						commit
						ac7776663b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -217,7 +217,7 @@ def get_engine_locale(searxng_locale, engine_locales, default=None): | |||
|         locale = babel.Locale.parse(searxng_locale, sep='-') | ||||
|     except babel.core.UnknownLocaleError: | ||||
|         try: | ||||
|             locale = babel.Locale.parse(searxng_locale.split('-')[1]) | ||||
|             locale = babel.Locale.parse(searxng_locale.split('-')[0]) | ||||
|         except babel.core.UnknownLocaleError: | ||||
|             return default | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Markus Heiser
						Markus Heiser