mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	translations: use German translation for non-Swiss German locales
Unless a German speaker explicitly asks for the Swiss localization, give them the German localization. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									0d2ec0802d
								
							
						
					
					
						commit
						e6cbb28a9f
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -69,6 +69,9 @@ void init_qt_late() | ||||||
| 	} else if (loc.language() == QLocale::Spanish) { | 	} else if (loc.language() == QLocale::Spanish) { | ||||||
| 		loc.setDefault(QLocale("es_ES")); | 		loc.setDefault(QLocale("es_ES")); | ||||||
| 		loc = QLocale(); | 		loc = QLocale(); | ||||||
|  | 	} else if (loc.language() == QLocale::German && loc.country() != QLocale::Switzerland) { | ||||||
|  | 		loc.setDefault(QLocale("de_DE")); | ||||||
|  | 		loc = QLocale(); | ||||||
| 	} | 	} | ||||||
| 	initUiLanguage(); | 	initUiLanguage(); | ||||||
| 	QString uiLang = getUiLanguage(); | 	QString uiLang = getUiLanguage(); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue