Fix missing UI translations on flatpak
This commit is contained in:
		
							parent
							
								
									588e5eded7
								
							
						
					
					
						commit
						90a44f61e9
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -152,6 +152,8 @@ for dir_ in iter_locale_dirs():
 | 
			
		|||
    try:
 | 
			
		||||
        _translation = gettext.translation(DOMAIN, dir_)
 | 
			
		||||
        _ = _translation.gettext
 | 
			
		||||
        if hasattr(locale, 'bindtextdomain'):
 | 
			
		||||
            locale.bindtextdomain(DOMAIN, dir_)  # type: ignore
 | 
			
		||||
    except OSError:
 | 
			
		||||
        continue
 | 
			
		||||
    else:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue