Fix gettext not supporting Pathlib yet
This commit is contained in:
		
							parent
							
								
									a04637105d
								
							
						
					
					
						commit
						488f3c55aa
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -150,7 +150,7 @@ if os.name == 'nt':
 | 
			
		|||
# Search for the translation in all locale dirs
 | 
			
		||||
for dir_ in iter_locale_dirs():
 | 
			
		||||
    try:
 | 
			
		||||
        _translation = gettext.translation(DOMAIN, dir_)
 | 
			
		||||
        _translation = gettext.translation(DOMAIN, str(dir_))
 | 
			
		||||
        _ = _translation.gettext
 | 
			
		||||
    except OSError:
 | 
			
		||||
        continue
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue