mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	android: find the translations
As we switched to the qmake based build we now bundle the translations via the Qt resource system instead of explicitly as Android assets. This adjusts the code that opens the translations accordingly. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									feb4ec2f6a
								
							
						
					
					
						commit
						f4ef9565a7
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
					@ -79,9 +79,7 @@ void init_qt_late()
 | 
				
			||||||
	QLocale::setDefault(loc);
 | 
						QLocale::setDefault(loc);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	QString translationLocation;
 | 
						QString translationLocation;
 | 
				
			||||||
#if defined(Q_OS_ANDROID)
 | 
					#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
 | 
				
			||||||
	translationLocation = QLatin1String("assets:/translations");
 | 
					 | 
				
			||||||
#elif defined(Q_OS_IOS)
 | 
					 | 
				
			||||||
	translationLocation = QLatin1String(":/");
 | 
						translationLocation = QLatin1String(":/");
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
	translationLocation = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
 | 
						translationLocation = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue