mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	qt: Fix default language not being set to the main one the system uses (#236)
* qt: Fix default language not being set to the main one the system uses * cleanup code
This commit is contained in:
		
							parent
							
								
									e1ff3b8dbe
								
							
						
					
					
						commit
						d8760dee6a
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -3093,8 +3093,8 @@ void GMainWindow::LoadTranslation() { | |||
|     bool loaded; | ||||
| 
 | ||||
|     if (UISettings::values.language.isEmpty()) { | ||||
|         // If the selected language is empty, use system locale
 | ||||
|         loaded = translator.load(QLocale(), {}, {}, QStringLiteral(":/languages/")); | ||||
|         // Use the system's default locale
 | ||||
|         loaded = translator.load(QLocale::system(), {}, {}, QStringLiteral(":/languages/")); | ||||
|     } else { | ||||
|         // Otherwise load from the specified file
 | ||||
|         loaded = translator.load(UISettings::values.language, QStringLiteral(":/languages/")); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue